openai / role-specific-plugins
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 2,072 units with 32,040 lines of code in units (48.3% of code).
    • 8 very complex units (2,781 lines of code)
    • 18 complex units (1,564 lines of code)
    • 151 medium complex units (6,902 lines of code)
    • 338 simple units (7,426 lines of code)
    • 1,557 very simple units (13,367 lines of code)
8% | 4% | 21% | 23% | 41%
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
py9% | 5% | 23% | 24% | 37%
tsx10% | 3% | 16% | 21% | 48%
cjs7% | 7% | 16% | 16% | 52%
js0% | 0% | 15% | 32% | 51%
ts0% | 0% | 19% | 15% | 64%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
plugins8% | 4% | 21% | 23% | 41%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
1000 162 0
249 98 2
430 91 0
408 77 0
173 63 2
226 63 1
223 61 10
72 55 2
96 47 5
168 45 1
106 42 3
134 38 2
117 37 2
53 34 2
95 34 2
62 33 3
77 32 1
60 31 4
58 29 2
139 28 2
73 28 2
63 28 4
63 27 2
63 27 1
52 26 2
85 26 2
100 25 0
134 25 2
71 24 3
65 24 1
72 24 0
165 24 0
72 24 4
61 24 3
16 24 3
74 24 0
78 23 2
54 23 2
82 23 3
60 23 2
26 23 1
63 22 1
44 22 4
68 22 2
39 21 2
54 21 2
57 21 2
64 21 4
31 20 3
44 20 3