facebook / SoLoader
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 208 units with 2,097 lines of code in units (58.2% of code).
    • 0 very long units (0 lines of code)
    • 5 long units (375 lines of code)
    • 18 medium size units (532 lines of code)
    • 39 small units (562 lines of code)
    • 146 very small units (628 lines of code)
0% | 17% | 25% | 26% | 29%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 17% | 25% | 26% | 29%
py0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
java/com/facebook/soloader0% | 18% | 26% | 26% | 29%
java/com/facebook/soloader/nativeloader0% | 0% | 0% | 54% | 45%
scripts0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
94 23 5
91 21 3
77 12 1
57 13 4
56 8 2
50 9 3
42 9 3
40 11 3
35 7 5
35 9 2
35 3 6
31 7 2
28 6 0
27 12 1
25 7 0
25 10 1
24 4 3
24 5 2
24 4 1
23 6 1
22 6 3
21 7 2
21 7 3
20 7 2
20 4 0
20 4 2
20 5 3
19 3 2
18 7 2
17 3 4
17 6 2
17 2 1
17 4 0
16 2 0
16 2 0
16 5 1
16 4 4
15 2 2
15 6 2
15 4 1
15 5 1
14 4 1
14 3 1
14 2 0
13 4 1
13 2 0
13 3 4
13 3 2
13 4 0
12 2 0