microsoft / MixedRealityLearning
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 10,558 units with 159,007 lines of code in units (12.6% of code).
    • 6 very complex units (1,650 lines of code)
    • 31 complex units (3,651 lines of code)
    • 471 medium complex units (31,314 lines of code)
    • 1,035 simple units (32,889 lines of code)
    • 9,015 very simple units (89,503 lines of code)
1% | 2% | 19% | 20% | 56%
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
cs1% | 2% | 19% | 20% | 56%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
MRTK Tutorials/Assets/Photon5% | 3% | 19% | 24% | 46%
Azure Cloud Tutorials/Assets/MRTK<1% | 1% | 20% | 20% | 55%
PC Holographic Remoting/Assets/MRTK<1% | 1% | 20% | 20% | 56%
Azure Cloud Tutorials/Assets/AzureSpatialAnchors.SDK0% | 9% | 1% | 6% | 82%
Azure Cloud Tutorials/Assets/MRTK.Tutorials.AzureCloudServices0% | 5% | 2% | 23% | 68%
MRTK Tutorials/Assets/MRTK.Tutorials.GettingStarted0% | 0% | 0% | 34% | 65%
MRTK Tutorials/Assets/MRTK.Tutorials.AzureSpatialAnchors0% | 0% | 0% | 9% | 90%
AzureFunction/TrackedObjectsService/Data0% | 0% | 0% | 52% | 47%
MRTK Tutorials/Assets/MRTK.Tutorials.MultiUserCapabilities0% | 0% | 0% | 0% | 100%
PC Holographic Remoting/Assets/MRTK.Tutorials.PCHolographicRemoting0% | 0% | 0% | 0% | 100%
BotComposerProject/TrackedObjectsBot/scripts0% | 0% | 0% | 0% | 100%
AzureFunction/TrackedObjectsService0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void RenderInteractionList()
in Azure Cloud Tutorials/Assets/MRTK/Core/Inspectors/ControllerPopupWindow.cs
374 79 2
private void RenderInteractionList()
in PC Holographic Remoting/Assets/MRTK/Core/Inspectors/ControllerPopupWindow.cs
374 79 2
public virtual void OnOperationResponse()
in MRTK Tutorials/Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs
262 63 1
internal static void ExecuteRpc()
in MRTK Tutorials/Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs
255 59 2
public virtual void OnStatusChanged()
in MRTK Tutorials/Assets/Photon/PhotonRealtime/Code/LoadBalancingClient.cs
191 53 1
private static void OnEvent()
in MRTK Tutorials/Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs
194 53 1
public override void DrawInspectorGUI()
in Azure Cloud Tutorials/Assets/MRTK/Core/Inspectors/ServiceInspectors/HandJointServiceInspector.cs
142 48 1
public override void DrawInspectorGUI()
in PC Holographic Remoting/Assets/MRTK/Core/Inspectors/ServiceInspectors/HandJointServiceInspector.cs
142 48 1
public static JSONNode Parse()
in Azure Cloud Tutorials/Assets/MRTK.Tutorials.AzureCloudServices/Scripts/BotDirectLine/SimpleJSON.cs
144 42 1
void OnGUI()
in MRTK Tutorials/Assets/Photon/PhotonUnityNetworking/UtilityScripts/Debugging/StatesGui.cs
116 42 0
private void RenderControllerList()
in Azure Cloud Tutorials/Assets/MRTK/Core/Inspectors/Profiles/MixedRealityControllerMappingProfileInspector.cs
185 39 1
private void RenderControllerList()
in PC Holographic Remoting/Assets/MRTK/Core/Inspectors/Profiles/MixedRealityControllerMappingProfileInspector.cs
185 39 1
public void LoadInfo()
in Azure Cloud Tutorials/Assets/MRTK/SDK/Features/UX/Scripts/Controllers/MixedRealityControllerInfo.cs
127 38 2
public void LoadInfo()
in PC Holographic Remoting/Assets/MRTK/SDK/Features/UX/Scripts/Controllers/MixedRealityControllerInfo.cs
127 38 2
protected void ResolveGridLayout()
in Azure Cloud Tutorials/Assets/MRTK/SDK/Features/UX/Scripts/Collections/GridObjectCollection.cs
110 36 2
private void FindPlacementPlane()
in Azure Cloud Tutorials/Assets/MRTK/SDK/Features/Utilities/Solvers/SurfaceMagnetism.cs
148 36 11
protected void ResolveGridLayout()
in PC Holographic Remoting/Assets/MRTK/SDK/Features/UX/Scripts/Collections/GridObjectCollection.cs
110 36 2
private void FindPlacementPlane()
in PC Holographic Remoting/Assets/MRTK/SDK/Features/Utilities/Solvers/SurfaceMagnetism.cs
148 36 11
internal static void CheckStatus()
in Azure Cloud Tutorials/Assets/AzureSpatialAnchors.SDK/Plugins/Common/AzureSpatialAnchorsBridge.cs
83 32 2
internal static void CheckStatus()
in Azure Cloud Tutorials/Assets/AzureSpatialAnchors.SDK/Plugins/Common/AzureSpatialAnchorsBridge.cs
83 32 2