facebookincubator / Bowler
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 90 units with 1,045 lines of code in units (52.1% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (52 lines of code)
    • 8 medium complex units (437 lines of code)
    • 8 simple units (132 lines of code)
    • 73 very simple units (424 lines of code)
0% | 4% | 41% | 12% | 40%
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% | 5% | 44% | 13% | 36%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
bowler0% | 5% | 44% | 13% | 36%
website/pages/en0% | 0% | 0% | 0% | 100%
website/core0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
52 26 2
51 19 4
42 18 3
45 17 2
164 12 2
38 12 2
23 12 4
54 12 3
20 12 3
18 9 3
21 7 3
12 7 4
23 6 3
14 6 1
5 6 1
18 6 4
21 6 1
17 5 2
22 5 2
8 5 1
12 5 3
21 4 1
8 4 2
20 4 1
10 4 3
16 3 3
8 3 1
10 3 1
6 3 2
7 3 3
7 3 3
6 3 1
6 3 2
12 3 3
5 3 2
4 2 2
4 2 2
3 2 2
3 2 2
15 2 0
3 2 2
4 2 1
5 2 1
5 2 1
8 2 3
8 2 3
9 2 3
8 2 1
2 2 1
6 2 1