openai / build-hours
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 1,690 units with 30,853 lines of code in units (33.1% of code).
    • 5 very complex units (2,584 lines of code)
    • 10 complex units (1,593 lines of code)
    • 70 medium complex units (4,152 lines of code)
    • 160 simple units (5,133 lines of code)
    • 1,445 very simple units (17,391 lines of code)
8% | 5% | 13% | 16% | 56%
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
ts11% | 0% | 15% | 19% | 53%
tsx10% | 10% | 6% | 11% | 61%
py0% | 2% | 21% | 20% | 55%
js0% | 12% | 28% | 23% | 35%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
25-realtime-219% | 3% | 17% | 13% | 46%
16-built-in-tools35% | 0% | 0% | 17% | 46%
21-agentic-memory0% | 7% | 6% | 10% | 75%
24-api-codex0% | 18% | 28% | 29% | 24%
13-image-gen0% | 47% | 0% | 30% | 21%
22-chatgptapp-pingpong0% | 86% | 0% | 0% | 13%
18-responses-api0% | 0% | 24% | 18% | 57%
05-4o_fine_tuning0% | 0% | 51% | 9% | 39%
07-reasoning0% | 0% | 53% | 10% | 35%
09-realtime0% | 0% | 17% | 40% | 42%
14-voice-agents0% | 0% | 9% | 24% | 66%
20-agent-rft0% | 0% | 18% | 23% | 58%
15-reinforcement-fine-tuning0% | 0% | 19% | 24% | 55%
11-recommendation0% | 0% | 13% | 28% | 57%
12-agentic-tool-calling0% | 0% | 13% | 4% | 81%
02-assistants0% | 0% | 10% | 37% | 52%
26-agents-sdk0% | 0% | 0% | 13% | 86%
04-mmrag_tooluse0% | 0% | 0% | 28% | 71%
06-structured_outputs0% | 0% | 0% | 9% | 90%
17-gpt-50% | 0% | 0% | 33% | 66%
03-4o_mini_fine_tuning0% | 0% | 0% | 0% | 100%
08-evals0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
661 112 0
339 87 4
334 87 4
764 70 0
486 55 0
277 49 7
204 42 0
63 35 1
77 34 1
173 30 6
141 29 2
29 29 1
162 28 0
298 28 0
169 27 0
62 25 1
39 24 1
52 24 1
106 24 0
21 23 1
40 23 1
28 23 1
33 20 1
115 20 2
86 20 2
68 19 0
33 19 1
87 19 1
155 19 8
70 19 5
52 19 1
56 19 1
20 18 1
37 18 1
62 18 2
105 17 1
214 17 13
57 17 0
37 17 1
209 16 7
60 16 0
44 16 4
95 15 8
24 15 1
19 15 1
42 15 1
44 14 1
33 14 1
33 14 3
61 14 2