korosuke613 / BWDM
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 33 units with 453 lines of code in units (23.7% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (60 lines of code)
    • 4 medium size units (105 lines of code)
    • 11 small units (185 lines of code)
    • 17 very small units (103 lines of code)
0% | 13% | 23% | 40% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 21% | 37% | 32% | 7%
kt0% | 0% | 0% | 53% | 46%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 13% | 23% | 40% | 22%
Alternative Visuals
Longest Units
Top 33 longest units
Unit# linesMcCabe index# params
60 3 1
35 5 1
25 2 0
23 2 0
22 2 1
20 2 0
20 2 0
19 3 0
19 4 0
19 4 0
17 2 0
17 3 0
15 2 0
14 3 1
13 3 0
12 1 1
10 2 1
9 1 1
9 2 1
9 1 2
9 2 4
9 2 0
8 2 1
6 1 2
6 1 2
5 2 1
5 1 0
3 1 0
3 1 1
3 1 0
3 1 1
3 1 0
3 1 2