facebookincubator / FioSynth
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 68 units with 1,323 lines of code in units (68.3% of code).
    • 1 very long units (156 lines of code)
    • 4 long units (268 lines of code)
    • 11 medium size units (318 lines of code)
    • 32 small units (480 lines of code)
    • 20 very small units (101 lines of code)
11% | 20% | 24% | 36% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py11% | 20% | 24% | 36% | 7%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
fiosynth_lib11% | 20% | 24% | 35% | 7%
ROOT0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
156 1 0
91 4 3
63 1 0
59 12 6
55 11 6
48 16 1
40 11 3
34 12 3
34 13 3
26 4 1
25 5 2
24 4 4
23 3 4
22 4 2
21 4 1
21 4 1
20 5 1
19 5 5
19 2 1
19 3 4
19 7 4
19 4 2
19 5 2
19 8 3
18 4 2
18 8 3
17 4 2
17 7 3
16 4 1
16 2 1
15 1 0
15 3 2
14 5 1
14 1 0
14 3 0
14 1 0
13 5 1
12 6 1
12 3 2
12 1 3
12 3 1
12 8 7
11 4 1
11 4 1
11 5 3
11 7 3
11 1 1
11 3 7
10 3 2
9 2 1