hhvm / fbmarkdown
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 374 units with 4,143 lines of code in units (84.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (140 lines of code)
    • 14 medium complex units (908 lines of code)
    • 25 simple units (796 lines of code)
    • 334 very simple units (2,299 lines of code)
0% | 3% | 21% | 19% | 55%
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
php0% | 3% | 21% | 19% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/inlines0% | 11% | 24% | 20% | 43%
src/unparsed-blocks0% | 0% | 25% | 23% | 50%
src/_Private0% | 0% | 55% | 28% | 16%
src/render0% | 0% | 12% | 10% | 77%
src/inlines/_Private0% | 0% | 0% | 26% | 73%
src/blocks0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
src/unparsed-blocks/_Private0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
140 34 4
101 25 1
111 21 2
76 19 2
112 16 2
52 14 2
60 13 2
44 13 1
46 12 1
38 12 1
44 12 1
72 12 3
49 11 2
50 11 3
53 11 2
35 10 2
34 10 3
37 10 3
47 9 3
32 9 2
35 9 1
29 9 1
38 9 2
33 8 2
39 8 2
38 8 2
47 8 3
22 8 3
22 8 3
36 7 3
39 7 2
43 7 3
25 7 2
38 7 4
23 7 3
18 6 1
18 6 1
24 6 2
22 6 3
22 6 3
17 5 2
19 5 0
29 5 1
15 5 2
26 5 1
17 5 3
32 5 3
16 5 3
21 4 3
46 4 5