facebookincubator / Facebook-For-OpenCart
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 265 units with 5,230 lines of code in units (70.8% of code).
    • 3 very complex units (1,313 lines of code)
    • 0 complex units (0 lines of code)
    • 12 medium complex units (690 lines of code)
    • 25 simple units (831 lines of code)
    • 225 very simple units (2,396 lines of code)
25% | 0% | 13% | 15% | 45%
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
php25% | 0% | 13% | 16% | 44%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
2.3.x-and-above/upload/catalog/model52% | 0% | 23% | 6% | 17%
2.0.x-2.2.x/upload/catalog/model53% | 0% | 23% | 6% | 16%
3.0.x-and-above/upload/catalog/model52% | 0% | 23% | 6% | 17%
3.0.x-and-above/upload/catalog/controller0% | 0% | 6% | 19% | 73%
2.3.x-and-above/upload/catalog/controller0% | 0% | 6% | 19% | 73%
2.0.x-2.2.x/upload/catalog/controller0% | 0% | 6% | 20% | 72%
3.0.x-and-above/upload/admin/controller0% | 0% | 0% | 45% | 54%
2.3.x-and-above/upload/admin/controller0% | 0% | 0% | 45% | 54%
2.0.x-2.2.x/upload/admin/controller0% | 0% | 0% | 50% | 49%
2.0.x-2.2.x/upload/admin/model0% | 0% | 0% | 0% | 100%
3.0.x-and-above/upload/admin/model0% | 0% | 0% | 0% | 100%
2.3.x-and-above/upload/admin/model0% | 0% | 0% | 0% | 100%
3.0.x-and-above/upload/catalog/view0% | 0% | 0% | 0% | 100%
2.0.x-2.2.x/upload/catalog/view0% | 0% | 0% | 0% | 100%
2.3.x-and-above/upload/catalog/view0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
437 53 0
438 53 0
438 53 0
84 21 3
84 21 3
84 21 3
68 20 1
68 20 1
68 20 1
43 18 0
43 18 0
43 18 0
35 11 0
35 11 0
35 11 0
36 10 1
80 10 0
35 10 1
79 10 0
35 10 1
79 10 0
55 9 0
55 9 0
38 8 0
7 8 3
38 8 0
38 8 0
7 8 3
13 7 1
18 7 4
13 7 1
18 7 4
13 7 1
18 7 4
18 6 1
34 6 1
18 6 1
34 6 1
18 6 1
34 6 1
24 5 0
19 5 1
19 5 2
15 5 1
21 5 0
24 5 0
19 5 1
19 5 2
15 5 1
21 5 0