openai / realtime-voice-component
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 136 units with 2,114 lines of code in units (44.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (359 lines of code)
    • 5 medium complex units (374 lines of code)
    • 18 simple units (458 lines of code)
    • 112 very simple units (923 lines of code)
0% | 16% | 17% | 21% | 43%
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% | 19% | 11% | 23% | 45%
tsx0% | 0% | 54% | 11% | 33%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 16% | 17% | 21% | 43%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
359 39 9
120 21 1
151 20 2
41 17 1
39 13 1
23 11 1
26 10 4
37 9 3
29 9 2
23 8 4
16 8 2
12 8 1
29 8 1
25 8 2
26 8 2
71 7 3
29 7 1
13 7 1
20 6 1
11 6 1
36 6 1
29 6 5
13 6 1
13 6 1
11 5 1
9 5 1
13 5 1
11 5 2
6 5 0
13 5 1
15 5 1
49 4 3
9 4 1
26 4 2
11 4 2
36 4 2
11 4 1
11 4 1
15 4 1
11 4 1
13 4 1
10 4 1
10 4 1
10 3 1
6 3 1
17 3 1
7 3 1
7 3 1
10 3 0
14 3 1