github / depstubber
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 85 units with 1,460 lines of code in units (86.3% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (202 lines of code)
    • 7 medium complex units (355 lines of code)
    • 13 simple units (380 lines of code)
    • 63 very simple units (523 lines of code)
0% | 13% | 24% | 26% | 35%
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
go0% | 13% | 24% | 26% | 35%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
model0% | 16% | 22% | 26% | 34%
ROOT0% | 11% | 25% | 25% | 36%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
92 28 2
110 26 1
67 17 0
65 17 1
58 15 4
56 13 1
39 13 3
40 11 0
30 11 3
38 10 1
55 10 0
25 9 1
34 9 1
21 9 1
42 9 2
28 8 1
29 8 1
21 7 1
29 7 1
17 6 1
21 6 1
20 6 1
21 5 2
19 4 2
17 4 2
17 4 1
11 4 1
20 4 2
14 4 1
21 4 2
11 3 1
6 3 1
10 3 1
21 3 1
23 3 1
20 3 1
9 3 1
10 3 1
11 3 1
11 3 1
11 3 1
9 3 1
10 3 1
8 3 1
8 3 1
9 3 1
9 3 1
22 3 3
9 2 0
7 2 2