novifinancial / hashwires
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 38 units with 617 lines of code in units (38.2% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (60 lines of code)
    • 5 medium size units (161 lines of code)
    • 17 small units (286 lines of code)
    • 15 very small units (110 lines of code)
0% | 9% | 26% | 46% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs0% | 9% | 26% | 46% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 9% | 26% | 46% | 17%
Alternative Visuals
Longest Units
Top 38 longest units
Unit# linesMcCabe index# params
60 1 0
47 1 0
41 1 3
26 3 1
24 1 0
23 1 0
20 1 0
20 3 4
19 4 2
19 1 5
18 1 4
18 1 5
18 1 4
17 1 0
17 1 0
17 2 2
17 1 0
16 4 2
16 1 3
16 1 0
15 1 0
12 1 4
11 2 4
10 2 1
10 1 2
10 1 3
9 1 0
9 1 1
8 1 0
8 1 0
8 3 2
7 1 0
7 1 0
6 1 0
6 1 0
5 1 2
4 1 1
3 1 2