facebook / IT-CPE
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 518 units with 5,343 lines of code in units (40.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (420 lines of code)
    • 48 simple units (1,154 lines of code)
    • 464 very simple units (3,769 lines of code)
0% | 0% | 7% | 21% | 70%
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% | 0% | 17% | 19% | 62%
rb0% | 0% | <1% | 22% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
legacy/autodmg_cache_builder0% | 0% | 33% | 14% | 51%
pantri/scripts0% | 0% | 73% | 22% | 3%
pantri/scripts/lib0% | 0% | 12% | 24% | 63%
itchef/cookbooks/fb_helpers0% | 0% | 2% | 23% | 73%
itchef/cookbooks/cpe_helpers0% | 0% | 0% | 43% | 56%
itchef/cookbooks/cpe_nomad0% | 0% | 0% | 52% | 47%
legacy/autopkg_tools0% | 0% | 0% | 24% | 75%
itchef/cookbooks/cpe_applocker0% | 0% | 0% | 21% | 78%
legacy/adobe_tools0% | 0% | 0% | 13% | 86%
itchef/cookbooks/cpe_chrome0% | 0% | 0% | 10% | 89%
itchef/cookbooks/cpe_launchd0% | 0% | 0% | 45% | 54%
itchef/cookbooks/cpe_logger0% | 0% | 0% | 24% | 75%
itchef/cookbooks/cpe_munki0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_remote0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_flatpak0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_windows_update_for_business0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_profiles_local0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_profiles0% | 0% | 0% | 0% | 100%
itchef/cookbooks/fb_launchd0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_gnome_software0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_hosts0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_deprecation_notifier0% | 0% | 0% | 0% | 100%
itchef/cookbooks/cpe_symlinks0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
175 15 0
44 15 2
43 13 1
115 12 1
19 11 1
24 11 2
18 10 1
16 10 1
64 10 1
32 10 3
20 10 0
21 9 2
27 9 0
54 9 2
30 8 2
15 8 1
25 8 0
27 8 0
29 8 3
32 8 3
19 8 1
23 8 4
23 7 1
23 7 3
15 7 2
12 7 1
8 7 1
32 7 2
14 7 2
22 7 0
26 7 1
35 7 0
23 7 0
14 7 2
13 7 0
19 6 2
19 6 2
35 6 1
16 6 1
3 6 1
19 6 1
27 6 2
25 6 1
10 6 2
13 6 3
38 6 0
23 6 0
16 6 0
24 6 0
29 6 3