novifinancial / akd
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 143 units with 2,027 lines of code in units (17.3% of code).
    • 3 very long units (359 lines of code)
    • 3 long units (179 lines of code)
    • 15 medium size units (473 lines of code)
    • 32 small units (491 lines of code)
    • 90 very small units (525 lines of code)
17% | 8% | 23% | 24% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs17% | 8% | 23% | 24% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
akd_client/src27% | 0% | 35% | 28% | 7%
akd_mysql/src19% | 30% | 36% | 11% | 2%
akd/src13% | 0% | 5% | 32% | 48%
benches0% | 0% | 100% | 0% | 0%
poc/src0% | 0% | 21% | 12% | 66%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
133 10 6
113 10 6
113 5 1
67 2 1
61 1 1
51 4 1
43 2 1
42 3 2
40 7 2
39 4 1
36 3 1
33 3 0
31 5 2
30 4 1
29 1 0
28 1 0
28 3 1
26 2 3
23 2 1
23 3 2
22 1 3
20 5 1
20 2 0
20 1 1
19 1 2
19 1 1
18 1 1
18 1 2
17 3 1
17 1 1
17 1 1
17 2 2
17 1 1
17 2 1
16 1 2
16 1 2
16 1 1
16 1 1
14 1 1
14 3 1
14 1 3
14 1 0
13 2 1
13 1 4
13 3 2
13 1 2
13 1 2
13 1 1
12 3 1
12 2 1