openai / GABRIEL
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 446 units with 4,976 lines of code in units (20.4% of code).
    • 0 very complex units (0 lines of code)
    • 5 complex units (397 lines of code)
    • 26 medium complex units (1,017 lines of code)
    • 56 simple units (1,134 lines of code)
    • 359 very simple units (2,428 lines of code)
0% | 7% | 20% | 22% | 48%
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
py0% | 7% | 20% | 22% | 48%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 7% | 20% | 22% | 48%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
103 47 2
106 36 1
80 36 1
54 28 4
54 28 1
55 25 4
84 24 0
86 22 1
94 22 3
43 20 1
50 19 1
35 19 1
32 18 0
20 17 1
29 15 2
33 14 2
79 14 2
27 13 1
30 13 1
25 12 2
28 12 1
28 12 1
37 12 5
24 12 1
12 11 1
51 11 1
25 11 1
17 11 1
21 11 1
17 11 1
35 11 1
20 10 2
18 10 3
20 10 1
25 10 4
26 10 1
26 10 2
20 10 1
10 10 1
34 10 0
22 10 1
18 9 1
21 9 1
42 9 3
17 9 1
22 9 1
23 9 2
34 9 0
24 8 3
19 8 1