openai / 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 3,195 units with 54,813 lines of code in units (51.5% of code).
    • 5 very complex units (1,163 lines of code)
    • 43 complex units (5,265 lines of code)
    • 314 medium complex units (16,627 lines of code)
    • 486 simple units (11,965 lines of code)
    • 2,347 very simple units (19,793 lines of code)
2% | 9% | 30% | 21% | 36%
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
py2% | 10% | 32% | 20% | 34%
js0% | 4% | 17% | 29% | 48%
tsx0% | 30% | 32% | 9% | 27%
cjs0% | 0% | 43% | 32% | 23%
ts0% | 0% | 2% | 26% | 70%
swift0% | 0% | 0% | 0% | 100%
smk0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
plugins2% | 9% | 30% | 21% | 35%
.agents0% | 0% | 0% | 23% | 76%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
380 112 2
370 101 1
209 60 0
94 57 1
110 52 1
150 49 1
238 48 0
199 46 0
133 46 5
116 45 1
108 44 1
157 43 0
67 43 4
144 42 1
119 41 1
205 41 0
193 41 1
167 40 0
74 38 1
214 38 1
124 36 0
265 33 1
136 33 1
104 32 4
69 32 4
80 31 1
61 31 1
402 31 1
58 31 2
72 31 0
68 31 3
53 30 2
59 29 1
42 29 4
109 29 0
90 29 1
56 28 2
106 28 3
125 28 1
87 28 2
69 28 3
60 27 3
116 27 0
104 27 0
74 27 1
141 27 1
213 27 0
38 26 1
131 25 1
85 25 1