facebook / facebook-php-business-sdk
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 3,302 units with 42,085 lines of code in units (69.1% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (163 lines of code)
    • 7 medium complex units (209 lines of code)
    • 17 simple units (414 lines of code)
    • 3,276 very simple units (41,299 lines of code)
0% | <1% | <1% | <1% | 98%
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% | <1% | <1% | <1% | 98%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
FacebookAds/Object/ServerSide0% | 6% | 5% | 3% | 84%
FacebookAds0% | 7% | 5% | 7% | 79%
FacebookAds/Http/Adapter0% | 0% | 23% | 0% | 76%
FacebookAds/Object/BusinessDataAPI0% | 0% | 5% | 3% | 90%
FacebookAds/Object0% | 0% | 0% | <1% | 99%
FacebookAds/Logger/CurlLogger0% | 0% | 0% | 44% | 55%
FacebookAds/Logger0% | 0% | 0% | 19% | 80%
FacebookAds/Http/Exception0% | 0% | 0% | 18% | 81%
FacebookAds/Object/Fields0% | 0% | 0% | 0% | 100%
FacebookAds/Object/Signal0% | 0% | 0% | 0% | 100%
FacebookAds/Http0% | 0% | 0% | 0% | 100%
FacebookAds/Object/CustomAudienceNormalizers0% | 0% | 0% | 0% | 100%
FacebookAds/Enum0% | 0% | 0% | 0% | 100%
FacebookAds/Object/Traits0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
103 47 1
60 30 3
59 19 2
44 17 1
17 16 1
13 12 1
13 12 1
51 12 1
12 11 1
40 10 4
40 10 4
10 9 1
29 9 3
27 9 1
10 9 1
22 8 1
10 8 2
33 8 3
37 7 0
41 7 0
8 7 1
23 6 3
18 6 1
27 6 2
19 6 1
20 6 1
15 5 1
17 5 0
23 5 0
14 5 1
14 5 1
13 5 0
10 5 1
18 5 1
16 4 1
16 4 0
16 4 0
14 4 0
16 4 1
20 4 1
11 4 1
11 4 1
11 4 1
13 4 1
23 4 1
13 4 0
12 4 0
11 4 2
5 4 1
5 4 1