facebookincubator / below
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 521 units with 10,098 lines of code in units (49.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (443 lines of code)
    • 16 simple units (826 lines of code)
    • 500 very simple units (8,829 lines of code)
0% | 0% | 4% | 8% | 87%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
rs0% | 0% | 4% | 8% | 87%
c0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
below/src0% | 0% | 11% | 6% | 81%
below/dump0% | 0% | 5% | 10% | 83%
below/store0% | 0% | 4% | 15% | 80%
below/common0% | 0% | 16% | 0% | 83%
below/model0% | 0% | 1% | 1% | 96%
below/procfs0% | 0% | 0% | 10% | 89%
below/view0% | 0% | 0% | 4% | 95%
below/below_derive0% | 0% | 0% | 32% | 67%
below/render0% | 0% | 0% | 0% | 100%
below/cgroupfs0% | 0% | 0% | 0% | 100%
below/config0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
below0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
71 19 2
159 15 14
99 13 3
100 12 6
14 12 1
45 10 6
92 9 6
48 9 2
90 8 6
70 8 5
51 8 1
93 8 5
19 7 1
49 7 2
104 7 0
29 7 3
17 6 1
21 6 3
41 6 3
30 6 2
27 6 2
56 5 0
78 5 0
56 5 0
55 5 0
84 5 2
28 5 2
19 5 1
46 5 2
31 5 0
19 5 1
33 5 1
58 5 5
14 5 1
51 4 0
11 4 1
36 4 2
22 4 2
37 4 3
41 4 3
26 4 5
22 4 1
40 4 2
14 4 3
11 4 2
20 4 3
15 4 1
20 4 1
25 4 4
28 3 2