Conditional Complexity Overall
  • There are 1,152 units with 28,414 lines of code in units (64.4% of code).
    • 2 very complex units (452 lines of code)
    • 6 complex units (731 lines of code)
    • 64 medium complex units (2,829 lines of code)
    • 426 simple units (16,751 lines of code)
    • 654 very simple units (7,651 lines of code)
1% | 2% | 9% | 58% | 26%
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
go1% | 2% | 9% | 58% | 26%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
pkg2% | 2% | 2% | 73% | 18%
internal0% | 2% | 23% | 30% | 43%
cmd0% | 0% | 0% | 86% | 13%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
269 101 2
183 56 5
252 50 2
157 47 3
114 33 2
73 27 1
64 26 1
71 26 2
52 24 1
61 21 1
60 20 3
59 20 1
52 20 2
65 19 1
51 19 2
80 19 3
46 18 2
60 18 1
50 18 5
69 18 2
42 17 1
49 17 3
42 17 1
59 17 1
64 17 3
57 17 1
59 17 1
57 16 4
50 16 1
51 15 2
29 15 2
48 14 1
36 14 3
51 14 1
50 14 1
22 14 1
53 14 1
42 14 2
48 14 2
33 14 1
47 14 2
47 13 1
37 13 1
39 13 1
46 13 1
40 13 2
47 13 1
30 13 2
47 13 1
35 13 1
About This Analysis
  • 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...