microsoft / Tx
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 584 units with 8,229 lines of code in units (24.0% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (370 lines of code)
    • 8 medium complex units (577 lines of code)
    • 44 simple units (1,697 lines of code)
    • 529 very simple units (5,585 lines of code)
0% | 4% | 7% | 20% | 67%
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
cs0% | 4% | 7% | 20% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source0% | 4% | 7% | 20% | 67%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
61 33 1
142 30 1
167 27 1
60 25 3
96 22 3
95 15 1
57 15 1
84 13 3
76 12 5
52 11 1
57 11 1
47 10 1
27 10 1
29 10 1
27 10 6
47 9 4
30 9 1
30 9 1
47 9 0
26 8 0
43 8 6
43 8 6
50 8 0
50 8 0
41 8 3
27 8 2
34 8 0
22 7 1
37 7 0
37 7 0
23 7 0
84 7 5
38 7 3
72 7 1
62 7 1
46 7 1
49 7 1
25 7 1
44 7 2
46 6 1
25 6 1
23 6 2
15 6 0
32 6 3
45 6 1
31 6 1
34 6 1
74 6 3
33 6 2
28 6 0