openai / openai-dotnet
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,130 units with 12,149 lines of code in units (45.4% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (142 lines of code)
    • 12 medium complex units (546 lines of code)
    • 58 simple units (1,810 lines of code)
    • 1,058 very simple units (9,651 lines of code)
0% | 1% | 4% | 14% | 79%
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
cs0% | 1% | 4% | 14% | 79%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
codegen0% | 9% | 14% | 44% | 31%
OpenAI0% | 0% | 3% | 11% | 85%
OpenAI.Responses0% | 0% | 1% | 7% | 90%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
54 27 1
88 26 1
66 20 1
37 15 1
58 14 2
59 14 4
53 14 1
23 12 1
53 11 3
57 11 3
50 11 1
37 11 1
26 11 1
27 11 1
54 10 2
12 10 1
24 10 1
61 10 2
52 9 1
52 9 1
44 9 2
59 9 1
78 9 2
25 9 0
22 9 1
24 9 1
41 9 2
48 9 2
47 9 1
50 8 1
48 8 3
37 8 2
31 8 0
15 8 1
24 8 1
27 8 1
32 8 1
42 7 1
40 7 1
32 7 3
42 7 3
40 7 1
22 7 2
35 7 2
18 7 2
18 7 2
18 7 2
18 7 2
18 7 2
21 7 1