Conditional Complexity Overall
  • There are 16,673 units with 281,672 lines of code in units (32.0% of code).
    • 7 very complex units (2,215 lines of code)
    • 42 complex units (7,945 lines of code)
    • 314 medium complex units (23,476 lines of code)
    • 941 simple units (36,212 lines of code)
    • 15,369 very simple units (211,824 lines of code)
<1% | 2% | 8% | 12% | 75%
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
rs<1% | 2% | 7% | 12% | 76%
py0% | 12% | 19% | 16% | 50%
ts0% | 0% | 44% | 9% | 46%
js0% | 0% | 0% | 53% | 46%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
codex-rs<1% | 2% | 7% | 12% | 75%
scripts0% | 17% | 16% | 9% | 56%
.github0% | 0% | 34% | 25% | 40%
sdk0% | 0% | 17% | 19% | 62%
codex-cli0% | 0% | 57% | 12% | 29%
tools0% | 0% | 26% | 9% | 64%
bazel0% | 0% | 0% | 27% | 72%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
437 97 4
395 84 4
329 74 4
444 69 1
225 56 3
147 54 2
238 53 0
238 49 2
193 49 2
150 48 3
330 47 3
132 47 3
181 45 2
341 45 3
119 44 2
194 41 2
149 39 1
147 37 1
203 35 2
151 34 3
257 34 1
98 33 3
111 33 2
133 33 2
122 32 4
280 32 3
100 32 2
190 31 0
486 31 3
146 31 3
201 30 4
148 30 6
150 30 3
73 29 1
37 29 2
181 29 2
80 29 2
220 29 1
132 28 2
243 28 2
132 28 2
578 28 0
84 27 2
212 27 4
94 27 1
139 26 2
195 26 2
394 26 1
201 26 1
420 25 1
About This Analysis
  • 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...