openai / imagegencam
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 252 units with 3,811 lines of code in units (82.5% of code).
    • 2 very complex units (480 lines of code)
    • 1 complex units (131 lines of code)
    • 6 medium complex units (255 lines of code)
    • 35 simple units (922 lines of code)
    • 208 very simple units (2,023 lines of code)
12% | 3% | 6% | 24% | 53%
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
py12% | 3% | 6% | 24% | 53%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
software12% | 3% | 6% | 24% | 53%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
362 73 1
118 53 2
131 44 1
58 17 1
35 16 2
41 16 2
30 14 1
59 13 1
32 11 2
10 10 3
17 10 3
55 10 1
45 10 1
19 9 1
19 9 1
22 9 1
49 9 1
35 9 3
21 9 2
63 8 2
34 8 1
52 8 1
21 8 1
25 8 1
20 8 1
26 7 1
23 7 2
25 7 2
31 7 1
21 7 1
11 7 1
31 7 1
27 7 1
34 7 1
20 7 3
11 6 1
12 6 1
18 6 2
13 6 1
10 6 2
18 6 1
24 6 1
47 6 1
13 6 3
19 5 1
17 5 1
7 5 1
7 5 1
13 5 1
22 5 1