microsoft / plcrashreporter
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 303 units with 6,833 lines of code in units (35.7% of code).
    • 2 very complex units (744 lines of code)
    • 6 complex units (720 lines of code)
    • 31 medium complex units (2,261 lines of code)
    • 32 simple units (981 lines of code)
    • 232 very simple units (2,127 lines of code)
10% | 10% | 33% | 14% | 31%
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
cpp38% | 18% | 23% | 4% | 14%
c0% | 13% | 40% | 17% | 29%
m0% | 0% | 35% | 11% | 53%
mm0% | 0% | 50% | 25% | 24%
hpp0% | 0% | 0% | 35% | 64%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source11% | 11% | 34% | 13% | 29%
Other Sources0% | 0% | 0% | 46% | 53%
Dependencies0% | 0% | 0% | 67% | 32%
Tools0% | 0% | 0% | 0% | 100%
include0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
468 146 10
276 72 9
191 45 5
190 36 3
39 35 2
39 35 3
162 31 6
99 29 4
94 25 5
105 23 4
120 22 5
77 22 3
50 22 2
49 22 3
142 21 4
107 21 8
83 19 5
22 18 2
22 18 3
124 18 6
60 17 3
71 17 4
40 17 2
39 17 3
96 16 5
94 16 6
120 16 6
87 16 6
36 16 2
83 15 6
66 14 5
68 14 3
63 13 3
46 13 2
59 13 5
45 12 5
80 12 5
58 12 5
55 11 9
35 10 2
37 10 1
65 10 2
45 9 1
41 9 6
50 9 7
52 8 2
25 8 3
31 8 5
30 8 3
22 7 3