novifinancial / opaque-ke
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 113 units with 1,733 lines of code in units (36.8% of code).
    • 0 very long units (0 lines of code)
    • 6 long units (378 lines of code)
    • 29 medium size units (915 lines of code)
    • 13 small units (163 lines of code)
    • 65 very small units (277 lines of code)
0% | 21% | 52% | 9% | 15%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs0% | 21% | 52% | 9% | 15%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/serialization0% | 22% | 63% | 5% | 7%
src/key_exchange0% | 28% | 33% | 23% | 14%
src0% | 20% | 49% | 5% | 24%
benches0% | 18% | 70% | 4% | 6%
src/key_exchange/group0% | 0% | 24% | 12% | 62%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
91 3 0
70 1 0
59 1 9
56 1 0
51 2 1
51 1 9
48 1 0
47 2 1
46 1 2
44 1 0
41 2 1
40 1 0
37 1 0
35 1 0
33 2 4
33 1 1
32 1 0
32 1 0
32 1 0
31 2 1
31 2 1
30 2 3
29 1 2
29 1 3
27 1 2
27 3 2
27 1 0
26 2 4
24 1 0
24 1 2
24 1 2
23 2 1
21 2 1
21 4 1
21 1 1
17 1 1
16 1 1
13 1 0
13 1 3
12 2 1
12 1 0
12 1 2
12 1 3
12 1 1
11 1 2
11 1 2
11 1 1
11 1 1
10 1 0
9 2 1