openai / orion-multistep-analysis
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 275 units with 3,065 lines of code in units (40.9% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (280 lines of code)
    • 15 medium complex units (576 lines of code)
    • 17 simple units (371 lines of code)
    • 240 very simple units (1,838 lines of code)
0% | 9% | 18% | 12% | 59%
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
tsx0% | 30% | 27% | 6% | 35%
py0% | 2% | 18% | 16% | 63%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
frontend0% | 21% | 19% | 4% | 53%
src0% | 2% | 18% | 16% | 63%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
121 35 1
116 35 1
43 27 3
46 20 1
38 16 2
50 15 1
26 15 7
20 15 1
52 13 1
56 13 1
51 13 2
31 13 1
31 12 1
57 12 1
34 12 3
30 12 1
25 12 1
29 11 1
25 10 1
20 9 1
25 9 1
49 9 1
31 8 4
9 8 1
34 7 2
13 7 1
17 7 5
16 7 1
15 7 3
24 7 1
20 7 5
14 6 1
27 6 4
20 6 3
12 6 4
6 5 1
11 5 1
46 5 2
11 5 2
21 5 1
12 5 2
8 5 3
12 5 3
18 5 4
25 5 0
24 5 4
31 5 3
10 5 1
13 5 3
11 5 1