microsoft / SealPIR
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 34 units with 716 lines of code in units (82.5% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (269 lines of code)
    • 9 medium size units (273 lines of code)
    • 5 small units (76 lines of code)
    • 16 very small units (98 lines of code)
0% | 37% | 38% | 10% | 13%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 37% | 38% | 10% | 13%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 37% | 38% | 10% | 13%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
87 18 2
int main()
in main.cpp
70 5 2
57 7 3
55 7 3
44 7 1
32 3 7
32 6 1
32 6 0
31 5 1
27 5 3
27 4 1
24 6 4
24 5 3
20 6 2
16 3 2
15 3 3
14 5 5
11 2 4
9 3 1
9 2 0