novifinancial / voprf
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 63 units with 785 lines of code in units (32.0% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (57 lines of code)
    • 11 medium size units (321 lines of code)
    • 18 small units (272 lines of code)
    • 33 very small units (135 lines of code)
0% | 7% | 40% | 34% | 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% | 7% | 40% | 34% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 9% | 52% | 29% | 8%
src/group0% | 0% | 0% | 51% | 48%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
57 3 5
47 3 0
39 2 0
36 1 5
32 1 4
29 5 2
24 1 0
24 1 2
23 1 1
23 1 0
22 1 0
22 1 0
20 1 0
20 1 2
19 1 2
18 1 4
17 1 3
17 1 0
16 1 0
16 1 0
15 1 0
14 1 2
14 1 2
14 1 0
13 1 2
13 1 2
12 1 0
12 3 1
11 1 2
11 1 2
10 1 2
8 1 1
8 1 1
6 1 0
6 1 0
6 1 1
6 1 1
6 1 1
5 1 1
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 0