facebook / between-meals
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 139 units with 1,092 lines of code in units (52.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (30 lines of code)
    • 7 simple units (283 lines of code)
    • 131 very simple units (779 lines of code)
0% | 0% | 2% | 25% | 71%
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% | 2% | 25% | 71%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lib/between_meals0% | 0% | 6% | 26% | 67%
lib/between_meals/repo0% | 0% | 0% | 26% | 73%
lib/between_meals/changes0% | 0% | 0% | 35% | 64%
lib/between_meals/repo/hg0% | 0% | 0% | 0% | 100%
lib/between_meals/repo/svn0% | 0% | 0% | 0% | 100%
lib/between_meals/repo/git0% | 0% | 0% | 0% | 100%
spec0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
30 14 1
38 9 1
41 8 3
44 8 1
56 7 1
20 6 5
15 6 1
69 6 0
17 4 2
5 4 1
18 4 3
9 4 2
13 4 0
24 3 2
9 3 3
9 3 3
20 3 1
17 3 2
18 3 2
17 3 0
17 3 2
8 3 2
10 2 2
14 2 1
10 2 2
10 2 2
18 2 0
6 2 1
6 2 3
5 2 3
7 2 0
11 2 0
10 2 0
5 2 0
5 2 1
5 2 0
5 2 0
7 2 1
6 2 1
6 2 0
6 2 0
5 2 1
13 2 1
5 2 1
7 2 1
7 2 0
9 2 1
8 2 1
7 2 1
9 2 1