openai / openai-deno-build
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 246 units with 3,848 lines of code in units (27.9% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (481 lines of code)
    • 13 medium complex units (909 lines of code)
    • 28 simple units (806 lines of code)
    • 201 very simple units (1,652 lines of code)
0% | 12% | 23% | 20% | 42%
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
ts0% | 12% | 23% | 20% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
internal0% | 51% | 27% | 3% | 17%
_vendor0% | 21% | 27% | 24% | 25%
lib0% | 0% | 34% | 4% | 61%
ROOT0% | 0% | 9% | 51% | 38%
_shims0% | 0% | 0% | 0% | 100%
resources0% | 0% | 0% | 0% | 100%
helpers0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
149 48 4
170 39 2
104 36 1
58 30 0
112 25 3
71 24 2
67 24 5
71 22 2
71 17 3
66 16 2
111 13 2
91 13 2
28 12 4
70 12 2
88 12 2
41 11 2
22 11 1
24 10 1
39 10 4
39 10 2
32 9 3
26 9 2
31 9 1
23 8 3
36 8 0
30 8 3
54 8 2
40 8 3
32 8 0
19 8 1
22 7 2
38 7 1
20 7 3
10 7 1
26 7 0
35 7 2
47 7 2
31 7 2
30 6 5
13 6 2
20 6 1
27 6 3
19 6 1
24 6 2
19 6 1
11 5 1
16 5 1
15 5 1
19 5 1
46 5 2