openai / tart
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 356 units with 3,445 lines of code in units (35.0% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (259 lines of code)
    • 3 medium complex units (209 lines of code)
    • 17 simple units (587 lines of code)
    • 334 very simple units (2,390 lines of code)
0% | 7% | 6% | 17% | 69%
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
swift0% | 8% | 2% | 16% | 73%
go0% | 0% | 34% | 24% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Sources0% | 8% | 2% | 16% | 73%
benchmark0% | 0% | 34% | 24% | 40%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
189 37 0
70 33 0
78 14 2
73 12 4
58 12 2
37 10 0
25 10 0
55 9 0
59 9 5
68 9 4
29 8 0
33 8 0
24 7 1
24 7 1
50 7 0
36 7 0
20 6 0
32 6 0
12 6 0
22 6 0
32 6 1
29 6 1
26 5 3
23 5 1
18 5 0
18 5 1
13 5 0
19 5 0
13 5 0
24 5 0
32 5 0
12 4 3
14 4 1
15 4 1
11 4 0
28 4 0
17 4 1
25 4 0
27 4 1
17 4 1
13 4 0
11 4 1
11 4 1
34 4 3
36 4 1
11 4 1
24 4 1
19 4 0
24 4 1
17 3 1