openai / vetu
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 180 units with 3,209 lines of code in units (77.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (111 lines of code)
    • 16 medium complex units (924 lines of code)
    • 24 simple units (797 lines of code)
    • 139 very simple units (1,377 lines of code)
0% | 3% | 28% | 24% | 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
go0% | 3% | 28% | 24% | 42%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
internal0% | 3% | 29% | 23% | 43%
cmd0% | 0% | 0% | 100% | 0%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
111 26 2
57 17 1
63 17 2
68 16 4
48 15 0
62 15 2
84 15 6
73 14 1
27 14 1
60 13 1
75 13 9
53 12 2
73 12 4
55 11 2
46 11 2
40 11 2
40 11 4
52 10 1
37 10 0
33 10 0
46 9 2
27 9 1
63 9 6
52 9 5
25 8 0
60 7 3
20 7 3
26 7 0
43 7 2
26 7 2
28 7 3
22 7 2
41 7 0
25 6 1
19 6 1
24 6 1
24 6 1
25 6 2
32 6 2
25 6 2
22 6 2
19 5 1
27 5 1
19 5 2
27 5 1
18 5 0
16 5 2
19 5 2
18 5 2
19 5 1