microsoft / appcenter-sdk-unity
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 1,110 units with 8,084 lines of code in units (9.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (279 lines of code)
    • 21 simple units (662 lines of code)
    • 1,085 very simple units (7,143 lines of code)
0% | 0% | 3% | 8% | 88%
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
cs0% | 0% | 1% | 8% | 89%
java0% | 0% | 64% | 0% | 35%
cake0% | 0% | 11% | 6% | 82%
mm0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
AppCenterLoaderApp/appcenter-loader/src0% | 0% | 64% | 0% | 35%
Assets/AppCenter0% | 0% | 37% | 0% | 62%
ROOT0% | 0% | 11% | 6% | 82%
Assets/AppCenter/Editor0% | 0% | 5% | 13% | 80%
AppCenterDemoApp/Assets/Puppet0% | 0% | 0% | 16% | 83%
Assets/Puppet0% | 0% | 0% | 19% | 80%
Assets/AppCenter/Plugins0% | 0% | 0% | 1% | 98%
Assets/Puppet/Editor0% | 0% | 0% | 0% | 100%
Assets/Puppet/Utility0% | 0% | 0% | 0% | 100%
Assets/AppCenter/Properties0% | 0% | 0% | 0% | 100%
BreakpadSupport/breakpad-support/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public boolean onCreate()
in AppCenterLoaderApp/appcenter-loader/src/main/java/com/microsoft/appcenter/loader/AppCenterLoader.java
88 25 0
private void StartAppCenter()
in Assets/AppCenter/AppCenterBehavior.cs
70 16 0
private void AddStartupCode()
in Assets/AppCenter/Editor/AppCenterPreBuild.cs
57 16 1
64 11 2
public void OnPreprocessBuild()
in Assets/AppCenter/Editor/AppCenterPreBuild.cs
44 9 2
private static void AddInternetClientCapability()
in Assets/AppCenter/Editor/AppCenterPostBuild.cs
41 8 1
public static string ParseAndSaveSecretForPlatform()
in Assets/AppCenter/Plugins/AppCenterSDK/Core/Shared/AppCenter.cs
38 8 1
private static int LogLevelToUnity()
in Assets/AppCenter/Plugins/AppCenterSDK/Core/UWP/AppCenterInternal.cs
22 8 1
private IEnumerator OnEnableCoroutine()
in AppCenterDemoApp/Assets/Puppet/PuppetAppCenter.cs
41 7 0
public void OnPostprocessBuild()
in Assets/AppCenter/Editor/AppCenterPostBuild.cs
31 7 2
private static void OnPostprocessInfo()
in Assets/AppCenter/Editor/AppCenterPostBuild.cs
28 7 2
private IEnumerator OnEnableCoroutine()
in Assets/Puppet/PuppetAppCenter.cs
41 7 0
34 7 1
public void Set()
in AppCenterDemoApp/Assets/Puppet/PuppetEventProperty.cs
21 6 1
public void Set()
in AppCenterDemoApp/Assets/Puppet/PuppetEventProperty.cs
21 6 1
public void Set()
in AppCenterDemoApp/Assets/Puppet/PuppetEventProperty.cs
15 6 1
public void SetType()
in AppCenterDemoApp/Assets/Puppet/PuppetEventProperty.cs
30 6 1
public void TrackEventStringPropertiesChildTransmission()
in AppCenterDemoApp/Assets/Puppet/PuppetTransmission.cs
42 6 0
public void TrackEventTypedPropertiesChildTransmission()
in AppCenterDemoApp/Assets/Puppet/PuppetTransmission.cs
42 6 0
public void Set()
in Assets/Puppet/PuppetEventProperty.cs
21 6 1