openai / skills
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 537 units with 8,017 lines of code in units (59.2% of code).
    • 2 very complex units (639 lines of code)
    • 2 complex units (310 lines of code)
    • 29 medium complex units (1,481 lines of code)
    • 75 simple units (1,797 lines of code)
    • 429 very simple units (3,790 lines of code)
7% | 3% | 18% | 22% | 47%
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
py8% | 4% | 16% | 21% | 48%
js0% | 0% | 34% | 31% | 33%
swift0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
skills7% | 3% | 18% | 22% | 47%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
485 89 1
154 68 0
145 40 0
165 30 0
94 23 0
186 23 0
65 21 1
67 20 1
75 19 0
39 18 3
70 17 1
54 17 1
64 16 1
69 16 1
72 15 2
43 14 2
60 14 0
45 14 2
47 14 3
28 13 4
44 13 0
36 13 1
38 13 4
23 13 2
46 12 5
31 12 0
25 12 2
21 12 1
28 12 4
30 11 1
42 11 1
17 11 1
22 11 2
24 10 1
20 10 3
33 10 0
69 10 2
27 10 2
70 10 0
38 10 2
23 9 1
17 9 1
55 9 0
19 9 2
18 9 2
76 9 0
21 9 1
11 9 3
11 9 4
20 9 2