facebookincubator / dispenso
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 463 units with 4,161 lines of code in units (53.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (290 lines of code)
    • 15 simple units (403 lines of code)
    • 444 very simple units (3,468 lines of code)
0% | 0% | 6% | 9% | 83%
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
h0% | 0% | 13% | 12% | 73%
cpp0% | 0% | 0% | 6% | 93%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
dispenso0% | 0% | 16% | 14% | 69%
dispenso/detail0% | 0% | 6% | 18% | 75%
benchmarks0% | 0% | 0% | 2% | 97%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
58 22 3
90 22 6
82 21 4
60 16 5
24 8 2
19 8 1
32 7 1
25 7 1
61 6 1
28 6 3
20 6 2
18 6 2
32 6 1
17 6 0
16 6 1
48 6 6
24 6 1
19 6 1
20 6 3
11 5 1
11 5 2
12 5 1
12 5 1
19 5 2
31 5 2
21 5 0
42 5 4
15 5 2
28 5 1
16 5 4
28 5 1
16 5 4
28 5 1
19 4 1
14 4 1
10 4 0
9 4 1
11 4 1
7 4 1
9 4 1
14 4 0
11 4 4
6 4 4
20 4 1
12 4 2
14 4 1
14 4 2
15 4 0
18 4 2
10 4 1