aws / aws-sdk-php-v3-bridge
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 32 units with 331 lines of code in units (75.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (26 lines of code)
    • 11 small units (156 lines of code)
    • 20 very small units (149 lines of code)
0% | 0% | 7% | 47% | 45%
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% | 7% | 47% | 45%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/Signature0% | 0% | 59% | 0% | 40%
build0% | 0% | 0% | 59% | 40%
src0% | 0% | 0% | 34% | 65%
src/Api0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public function signRequest()
in src/Signature/SignatureV2.php
26 2 2
private function buildUpdatedDocBlock()
in build/ClassAnnotationUpdater.php
19 3 0
private function getMethodAnnotations()
in build/ClientAnnotator.php
18 3 0
private function getMethods()
in build/ClientAnnotator.php
18 5 0
private function getTranspiledPhp()
in build/JsonCompiler.php
16 1 0
public function update()
in build/ClassAnnotationUpdater.php
14 3 0
private function getEndpoint()
in build/ClientAnnotator.php
13 2 0
13 3 0
public function compile()
in build/JsonCompiler.php
12 2 1
public function __construct()
in build/ClassAnnotationUpdater.php
11 1 4
private function stripOutExistingDocBlock()
in build/ClassAnnotationUpdater.php
11 2 1
private function lintFile()
in build/PhpFileLinterTrait.php
11 4 1
10 1 0
private function getAnnotationLine()
in build/ClientAnnotator.php
10 2 3
10 2 1
private function getVersions()
in build/ClientAnnotator.php
9 2 0
public static function getArguments()
in src/AwsCompatibilityClient.php
9 1 0
private function getService()
in src/AwsCompatibilityClient.php
9 2 0
private function splitClassFile()
in build/ClassAnnotationUpdater.php
8 1 1
private function writeClassFile()
in build/ClassAnnotationUpdater.php
8 1 1