facebook / transform360
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 40 units with 2,000 lines of code in units (75.8% of code).
    • 2 very complex units (580 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (638 lines of code)
    • 8 simple units (342 lines of code)
    • 22 very simple units (440 lines of code)
29% | 0% | 31% | 17% | 22%
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
cpp29% | 0% | 29% | 12% | 28%
c28% | 0% | 34% | 22% | 13%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Transform360/Library29% | 0% | 29% | 12% | 28%
Transform_V139% | 0% | 33% | 19% | 7%
Transform3600% | 0% | 37% | 30% | 31%
Most Complex Units
Top 40 most complex units
Unit# linesMcCabe index# params
259 82 7
321 79 6
65 25 5
81 21 1
123 21 5
62 19 5
88 17 1
80 15 6
69 12 4
70 11 4
66 10 8
74 9 3
56 9 2
29 8 2
35 7 7
51 7 2
16 6 2
15 6 2
18 5 4
22 5 4
58 5 4
28 4 6
17 3 1
22 3 6
14 3 1
27 3 3
36 3 8
39 3 7
17 2 1
30 2 9
39 2 10
8 1 4
3 1 2
3 1 1
3 1 2
3 1 1
14 1 6
24 1 11
8 1 5
7 1 1