microsoft / php-sdk-binary-tools
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 309 units with 3,809 lines of code in units (33.7% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (358 lines of code)
    • 10 medium complex units (423 lines of code)
    • 20 simple units (562 lines of code)
    • 277 very simple units (2,466 lines of code)
0% | 9% | 11% | 14% | 64%
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
java0% | 45% | 9% | 5% | 39%
d0% | 47% | 10% | 7% | 35%
php0% | 0% | 12% | 17% | 70%
c0% | 0% | 0% | 0% | 100%
cc0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
msys20% | 40% | 8% | 5% | 45%
lib0% | 0% | 11% | 19% | 68%
pgo0% | 0% | 14% | 11% | 73%
doc0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
189 39 0
169 36 0
79 18 3
52 17 0
36 16 2
38 16 2
42 15 0
49 12 2
40 12 0
31 11 0
27 11 0
29 11 0
34 10 1
36 10 0
28 10 0
32 10 0
17 9 5
36 9 3
37 9 3
26 9 1
25 9 1
36 8 3
36 8 1
24 8 1
25 7 0
34 7 0
13 7 3
40 7 2
23 6 0
19 6 0
20 6 1
21 6 2
15 5 2
19 5 1
24 5 1
29 5 0
22 5 0
17 5 2
20 5 1
22 5 0
19 5 0
18 5 2
27 5 3
41 5 0
15 4 0
24 4 0
11 4 0
15 4 1
14 4 2
14 4 3