primer / view_components
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 416 units with 2,931 lines of code in units (27.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (219 lines of code)
    • 23 simple units (383 lines of code)
    • 387 very simple units (2,329 lines of code)
0% | 0% | 7% | 13% | 79%
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
rb0% | 0% | 8% | 14% | 76%
thor0% | 0% | 0% | 0% | 100%
rake0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib0% | 0% | 14% | 21% | 64%
app0% | 0% | 2% | 8% | 88%
ROOT0% | 0% | 0% | 0% | 100%
script0% | 0% | 0% | 0% | 100%
stories0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
39 18 1
30 14 1
30 14 2
49 14 1
33 12 1
38 11 5
15 10 0
16 10 3
17 10 1
14 9 1
18 8 4
16 8 1
31 8 1
13 8 1
21 7 0
27 7 7
13 7 1
7 6 2
14 6 0
18 6 1
22 6 1
15 6 1
11 6 1
9 6 1
25 6 2
9 6 2
12 6 1
16 6 0
24 6 2
5 5 0
14 5 4
7 5 2
3 5 0
16 5 1
16 5 1
15 5 0
12 5 1
13 5 1
9 5 2
13 5 2
11 5 4
4 5 1
3 4 0
17 4 1
11 4 1
19 4 3
4 4 1
18 4 1
3 4 1
4 4 1