microsoft / php-sdk-binary-tools
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 309 units with 3,809 lines of code in units (33.7% of code).
    • 2 very long units (358 lines of code)
    • 2 long units (131 lines of code)
    • 40 medium size units (1,245 lines of code)
    • 63 small units (926 lines of code)
    • 202 very small units (1,149 lines of code)
9% | 3% | 32% | 24% | 30%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java45% | 0% | 25% | 11% | 18%
d47% | 0% | 24% | 12% | 15%
php0% | 4% | 34% | 28% | 33%
c0% | 0% | 67% | 27% | 5%
cc0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
msys240% | 0% | 24% | 13% | 22%
lib0% | 5% | 27% | 32% | 33%
pgo0% | 0% | 55% | 13% | 30%
doc0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
189 39 0
169 36 0
79 18 3
52 17 0
49 12 2
45 2 0
43 2 0
42 3 4
42 15 0
41 5 0
40 12 0
40 7 2
38 16 2
37 9 3
36 8 3
36 8 1
36 10 0
36 9 3
36 16 2
34 10 1
34 7 0
32 10 0
31 11 0
29 5 0
29 11 0
28 10 0
28 3 0
27 5 3
27 11 0
26 9 1
25 7 0
25 9 1
25 2 0
24 4 0
24 5 1
24 8 1
24 3 2
23 6 0
22 5 0
22 5 0
22 4 0
21 2 3
21 2 3
21 6 2
20 6 1
20 5 1
20 4 3
19 6 0
19 5 1
19 3 0