openai / gpt-oss
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 430 units with 8,398 lines of code in units (48.5% of code).
    • 1 very complex units (372 lines of code)
    • 3 complex units (844 lines of code)
    • 21 medium complex units (1,571 lines of code)
    • 51 simple units (2,379 lines of code)
    • 354 very simple units (3,232 lines of code)
4% | 10% | 18% | 28% | 38%
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
c10% | 19% | 8% | 43% | 18%
py0% | 6% | 23% | 11% | 58%
ts0% | 0% | 69% | 0% | 30%
cc0% | 0% | 13% | 56% | 29%
m0% | 0% | 17% | 28% | 53%
h0% | 0% | 53% | 0% | 46%
hpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
gpt_oss4% | 10% | 15% | 30% | 38%
compatibility-test0% | 0% | 69% | 0% | 30%
gpt-oss-mcp-server0% | 0% | 0% | 22% | 77%
_build0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
372 67 2
198 43 1
550 36 5
96 29 2
91 24 1
128 24 4
175 24 0
73 22 4
76 21 2
111 19 2
53 19 3
50 18 2
107 16 4
144 15 1
24 15 2
34 13 1
35 12 6
72 12 1
55 12 3
39 12 2
55 11 4
74 11 3
45 11 2
87 11 0
43 11 4
88 10 27
88 10 20
89 10 19
40 10 1
34 10 2
50 9 2
57 9 2
57 9 2
57 9 2
57 9 2
57 9 2
57 9 2
57 9 2
55 9 2
90 9 20
87 9 19
52 9 1
114 9 6
30 8 6
71 8 23
69 8 22
43 8 3
41 8 1
49 8 2
17 8 2