korosuke613 / poac
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 277 units with 3,053 lines of code in units (58.2% of code).
    • 0 very long units (0 lines of code)
    • 7 long units (571 lines of code)
    • 32 medium size units (952 lines of code)
    • 56 small units (809 lines of code)
    • 182 very small units (721 lines of code)
0% | 18% | 31% | 26% | 23%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
hpp0% | 19% | 30% | 26% | 24%
cpp0% | 0% | 69% | 30% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
include0% | 19% | 30% | 26% | 24%
ROOT0% | 0% | 69% | 30% | 0%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
95 19 1
94 18 1
88 17 1
85 14 1
82 23 1
64 4 4
63 12 3
44 7 1
43 7 1
40 10 4
39 10 2
37 15 2
37 15 2
37 8 2
37 8 0
35 17 1
33 6 1
32 7 2
32 6 1
31 7 5
31 1 1
31 5 0
30 11 0
28 11 0
27 9 2
26 9 2
25 5 1
25 6 1
24 6 1
24 4 4
24 3 1
23 9 3
23 6 1
23 4 0
23 4 1
23 3 0
22 7 2
22 5 1
21 7 2
20 4 2
20 5 1
20 7 1
19 5 2
19 4 1
19 2 1
18 4 1
18 4 0
18 2 1
18 5 1
18 3 0