microsoft / mixed-reality-extension-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,357 units with 17,297 lines of code in units (74.7% of code).
    • 0 very complex units (0 lines of code)
    • 5 complex units (840 lines of code)
    • 46 medium complex units (3,220 lines of code)
    • 93 simple units (3,343 lines of code)
    • 1,213 very simple units (9,894 lines of code)
0% | 4% | 18% | 19% | 57%
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% | 4% | 18% | 19% | 57%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
MREUnityRuntimeLib/ProceduralToolkit0% | 7% | 18% | 18% | 55%
MREUnityRuntimeLib/Core0% | 7% | 24% | 22% | 45%
MREUnityRuntimeLib/Assets0% | 0% | 26% | 34% | 38%
MREUnityRuntimeLib/Animation0% | 0% | 31% | 21% | 47%
MREUnityRuntimeLib/App0% | 0% | 17% | 17% | 64%
MREUnityRuntimeLib/IPC0% | 0% | 38% | 15% | 46%
MREUnityRuntimeLib/Patching0% | 0% | 9% | 21% | 68%
MREUnityRuntimeLib/Factories0% | 0% | 35% | 23% | 41%
MREUnityRuntimeLib/Messaging0% | 0% | 0% | 14% | 85%
MREUnityRuntimeLib/Util0% | 0% | 0% | 7% | 92%
MREUnityRuntimeLib/Behaviors0% | 0% | 0% | 0% | 100%
MREUnityRuntimeLib/RPC0% | 0% | 0% | 0% | 100%
MREUnityRuntimeLib/API0% | 0% | 0% | 0% | 100%
tools/PostBuildTool0% | 0% | 0% | 0% | 100%
MREUnityRuntimeLib0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
internal ActorPatch GeneratePatch()
in MREUnityRuntimeLib/Core/Actor.cs
118 50 2
public static float SegmentSegment()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Distance2D.cs
181 40 4
public static void SegmentSegment()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Closest2D.cs
210 37 6
internal void Interpolate()
in MREUnityRuntimeLib/Core/Components/AnimationComponent.cs
184 36 5
public static void RaySegment()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Closest2D.cs
147 29 6
internal async void OnCreateAsset()
in MREUnityRuntimeLib/Assets/AssetLoader.cs
128 24 2
public static void SegmentCircle()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Closest2D.cs
122 24 6
public static void SegmentSphere()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Closest3D.cs
122 24 6
public static float RaySegment()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Distance2D.cs
118 24 4
private async Task ReadTask()
in MREUnityRuntimeLib/IPC/Connections/WebSocket.cs
105 21 0
public static float SegmentCircle()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Distance2D.cs
77 21 4
public static float SegmentSphere()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Distance3D.cs
77 21 4
public static async Task LoadTask()
in MREUnityRuntimeLib/Assets/AssetFetcher.cs
100 20 2
internal override void Update()
in MREUnityRuntimeLib/Animation/Animation.cs
111 19 1
private void ProcessCreatedActors()
in MREUnityRuntimeLib/App/MixedRealityExtensionApp.cs
90 19 4
private void PatchAppearance()
in MREUnityRuntimeLib/Core/Actor.cs
65 19 1
public static void RayRay()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Closest2D.cs
125 19 6
internal void OnAssetUpdate()
in MREUnityRuntimeLib/Assets/AssetLoader.cs
43 18 2
public void PredictAllRemoteBodiesWithOwnedBodies()
in MREUnityRuntimeLib/Core/Physics/PredictionInterpolation.cs
147 18 2
public static float RayRay()
in MREUnityRuntimeLib/ProceduralToolkit/Geometry/Distance2D.cs
84 18 4