facebook / facebook-instant-articles-sdk-php
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 750 units with 6,371 lines of code in units (83.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 9 medium complex units (463 lines of code)
    • 31 simple units (938 lines of code)
    • 710 very simple units (4,970 lines of code)
0% | 0% | 7% | 14% | 78%
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% | 0% | 7% | 14% | 78%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Facebook/InstantArticles/Elements0% | 0% | 6% | 9% | 83%
src/Facebook/InstantArticles/Transformer/Rules0% | 0% | 7% | 23% | 69%
src/Facebook/InstantArticles/Transformer0% | 0% | 32% | 20% | 47%
src/Facebook/InstantArticles/Transformer/Getters0% | 0% | 0% | 12% | 87%
src/Facebook/InstantArticles/Validators0% | 0% | 0% | 16% | 83%
src/Facebook/InstantArticles/Transformer/Rules/Compat0% | 0% | 0% | 52% | 47%
src/Facebook/InstantArticles/Transformer/Warnings0% | 0% | 0% | 10% | 89%
src/Facebook/InstantArticles/Transformer/Settings0% | 0% | 0% | 14% | 85%
src/Facebook/InstantArticles/Client0% | 0% | 0% | 0% | 100%
src/Facebook/InstantArticles/Transformer/Logs0% | 0% | 0% | 0% | 100%
src/Facebook/InstantArticles/Parser0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
82 22 2
73 18 1
44 14 1
32 13 1
36 12 1
42 12 3
48 12 1
36 12 0
70 11 3
26 10 1
72 10 3
58 10 3
27 10 0
42 10 1
32 10 1
31 9 3
20 9 3
46 8 3
29 8 3
21 8 1
48 8 3
29 8 3
14 7 2
57 7 1
24 7 3
33 7 3
45 7 3
25 7 3
29 7 1
29 7 1
21 7 0
19 6 1
21 6 1
22 6 3
19 6 0
16 6 0
22 6 1
22 6 1
23 6 1
16 6 2
20 5 0
11 5 2
29 5 0
15 5 1
18 5 1
16 5 1
31 5 3
25 5 3
31 5 0
22 5 0