microsoft / msphpsql
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 505 units with 10,856 lines of code in units (52.9% of code).
    • 1 very complex units (160 lines of code)
    • 21 complex units (2,336 lines of code)
    • 46 medium complex units (2,391 lines of code)
    • 61 simple units (2,149 lines of code)
    • 376 very simple units (3,820 lines of code)
1% | 21% | 22% | 19% | 35%
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
cpp1% | 25% | 24% | 19% | 27%
h0% | 0% | 5% | 15% | 79%
py0% | 0% | 9% | 31% | 59%
hpp0% | 0% | 0% | 26% | 73%
php0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
source1% | 22% | 22% | 19% | 33%
buildscripts0% | 0% | 9% | 31% | 59%
sample0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
160 54 3
184 44 3
143 43 3
142 37 4
97 35 4
127 34 1
184 34 2
95 34 4
75 32 3
120 32 5
121 32 5
74 32 3
48 30 4
124 29 3
75 29 3
40 28 1
135 28 5
125 28 5
144 27 2
129 27 4
120 27 2
34 26 1
85 23 8
64 21 9
61 21 5
57 19 2
68 17 5
111 16 2
46 16 1
78 16 3
52 16 5
75 16 5
64 16 0
80 16 1
55 15 4
67 15 3
44 15 2
71 15 1
55 15 7
45 14 4
55 14 3
20 14 1
43 14 1
24 14 2
65 13 1
45 13 2
122 13 4
67 13 2
46 13 5
39 12 4