facebook / PathPicker
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 198 units with 1,166 lines of code in units (50.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 10 medium size units (301 lines of code)
    • 16 small units (224 lines of code)
    • 172 very small units (641 lines of code)
0% | 0% | 25% | 19% | 54%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 25% | 19% | 54%
rb0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/pathpicker0% | 0% | 25% | 17% | 56%
src0% | 0% | 30% | 39% | 29%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
41 14 1
41 11 2
39 28 2
30 14 2
29 13 2
25 5 1
25 4 0
24 3 2
24 10 1
23 8 2
20 6 0
17 1 2
16 3 1
16 5 1
15 6 1
15 1 3
15 8 2
14 6 1
14 3 4
13 2 1
13 4 1
12 2 1
11 2 1
11 2 1
11 3 1
11 4 0
10 3 1
10 5 2
10 1 1
10 2 2
9 3 1
9 4 1
9 4 0
9 2 0
9 2 1
9 3 2
8 2 1
8 3 2
8 2 1
8 3 2
8 2 3
8 7 1
7 3 4
7 3 2
7 1 1
7 1 0
7 4 1
7 1 0
7 1 0
7 3 1