korosuke613 / grpshuffle
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 47 units with 691 lines of code in units (46.0% of code).
    • 1 very long units (104 lines of code)
    • 3 long units (220 lines of code)
    • 3 medium size units (91 lines of code)
    • 10 small units (135 lines of code)
    • 30 very small units (141 lines of code)
15% | 31% | 13% | 19% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
go15% | 31% | 13% | 19% | 20%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
go15% | 31% | 13% | 19% | 20%
Alternative Visuals
Longest Units
Top 47 longest units
Unit# linesMcCabe index# params
104 19 2
81 6 0
78 8 0
61 12 0
35 6 1
29 5 2
27 1 0
17 3 3
17 3 3
16 2 1
15 2 3
15 2 1
11 2 2
11 4 1
11 4 1
11 4 1
11 1 1
10 4 1
9 2 3
8 2 1
8 2 1
8 2 1
8 2 1
7 2 1
7 1 1
6 2 1
6 2 1
6 2 1
6 2 1
6 2 1
6 1 0
5 1 1
3 1 1
3 1 1
3 1 1
3 1 1
3 1 1
3 1 1
3 1 1
3 1 1
3 1 1
3 1 2
1 1 1
1 1 1
1 1 1
1 1 0
1 1 1