instagram / Fixit
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 289 units with 2,742 lines of code in units (42.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 9 medium complex units (361 lines of code)
    • 34 simple units (873 lines of code)
    • 246 very simple units (1,508 lines of code)
0% | 0% | 13% | 31% | 54%
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
py0% | 0% | 13% | 31% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
fixit/rules0% | 0% | 23% | 44% | 32%
fixit/common0% | 0% | 5% | 17% | 77%
fixit/cli0% | 0% | 0% | 21% | 78%
fixit0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
30 15 2
25 13 2
15 13 2
38 12 2
62 12 2
32 12 3
41 12 2
52 11 1
66 11 2
44 10 1
16 10 0
23 10 2
63 9 1
22 9 2
24 9 2
31 9 2
45 9 2
19 8 2
69 8 2
20 8 2
32 8 2
4 8 1
23 8 2
97 8 2
9 7 2
11 7 2
19 7 2
25 7 2
22 7 2
34 7 2
10 6 2
6 6 1
16 6 3
13 6 3
11 6 2
26 6 1
57 6 2
11 6 2
23 6 2
11 6 1
13 6 3
15 6 2
9 6 1
38 5 1
10 5 1
12 5 2
21 5 2
19 5 2
9 5 2
21 5 2