openai / euphony
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 277 units with 4,652 lines of code in units (26.3% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (605 lines of code)
    • 9 medium complex units (622 lines of code)
    • 22 simple units (906 lines of code)
    • 243 very simple units (2,519 lines of code)
0% | 13% | 13% | 19% | 54%
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% | 13% | 12% | 19% | 54%
py0% | 0% | 52% | 23% | 24%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 13% | 12% | 19% | 54%
server0% | 0% | 52% | 23% | 24%
ROOT0% | 0% | 0% | 19% | 80%
.fttemplates0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
218 47 0
173 37 1
214 27 0
61 24 2
54 17 1
77 14 1
81 13 0
50 12 0
68 12 0
81 11 0
96 11 0
54 11 0
51 10 1
87 10 1
27 9 1
25 9 2
43 9 2
37 9 0
84 9 1
39 9 0
29 9 1
32 8 0
54 8 0
63 7 1
39 7 0
17 6 1
18 6 1
103 6 2
33 6 3
29 6 1
20 6 0
28 6 0
25 6 0
23 6 1
22 5 0
9 5 1
26 5 1
16 5 1
13 5 0
16 5 1
16 5 0
31 5 0
18 5 2
28 5 1
28 5 0
24 5 0
20 5 0
12 4 1
20 4 1
15 4 0