aws / aws-php-sns-message-validator
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 18 units with 181 lines of code in units (83.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (76 lines of code)
    • 2 small units (30 lines of code)
    • 13 very small units (75 lines of code)
0% | 0% | 41% | 16% | 41%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
php0% | 0% | 41% | 16% | 41%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 41% | 16% | 41%
Alternative Visuals
Longest Units
Top 18 longest units
Unit# linesMcCabe index# params
public function validate()
in src/MessageValidator.php
26 5 1
25 7 2
public function getStringToSign()
in src/MessageValidator.php
25 4 1
16 3 1
private function validateUrl()
in src/MessageValidator.php
14 6 1
10 3 1
public function __construct()
in src/MessageValidator.php
9 1 2
public function isValid()
in src/MessageValidator.php
9 2 1
8 3 1
7 2 0
4 1 1
4 1 0
4 1 1
public function offsetGet()
in src/Message.php
4 2 1
public function offsetSet()
in src/Message.php
4 1 2
4 1 1
public function toArray()
in src/Message.php
4 1 0
private static function isLambdaStyle()
in src/MessageValidator.php
4 1 1