github / s3gof3r
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 104 units with 1,710 lines of code in units (76.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (189 lines of code)
    • 19 simple units (649 lines of code)
    • 81 very simple units (872 lines of code)
0% | 0% | 11% | 37% | 50%
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% | 0% | 11% | 37% | 50%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
internal0% | 0% | 45% | 9% | 45%
ROOT0% | 0% | 3% | 40% | 55%
gof3r0% | 0% | 0% | 59% | 40%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
41 14 1
39 12 1
53 12 2
56 11 1
42 10 0
37 10 1
39 10 1
48 9 1
42 9 1
49 9 4
32 9 1
40 9 3
28 9 1
39 8 1
29 8 1
42 8 1
29 7 0
32 7 1
31 7 1
21 6 1
21 6 1
27 6 1
21 6 1
22 5 1
13 5 1
19 5 1
20 5 1
27 5 1
22 5 1
22 5 1
37 5 3
16 4 1
10 4 0
13 4 1
12 4 1
18 4 1
48 4 3
19 3 1
11 3 0
7 3 1
12 3 0
8 3 2
11 3 0
14 3 1
14 3 1
12 3 1
10 3 1
31 3 4
16 3 1
22 3 1