microsoft / GalaxyExplorer
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,167 units with 47,542 lines of code in units (10.8% of code).
    • 2 very complex units (707 lines of code)
    • 14 complex units (1,928 lines of code)
    • 140 medium complex units (8,969 lines of code)
    • 311 simple units (9,755 lines of code)
    • 2,700 very simple units (26,183 lines of code)
1% | 4% | 18% | 20% | 55%
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% | 4% | 18% | 20% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Assets/MixedRealityToolkit2% | 4% | 24% | 18% | 50%
Assets/MixedRealityToolkit.SDK2% | 5% | 19% | 18% | 54%
Assets/DefaultPlayables0% | 12% | 7% | 19% | 59%
Assets/MixedRealityToolkit.Services0% | 2% | 9% | 27% | 59%
Assets/scripts0% | 1% | 10% | 22% | 65%
Assets/MixedRealityToolkit.Providers0% | <1% | 27% | 23% | 47%
Assets/SpritePlayable0% | 0% | 0% | 52% | 47%
Assets/RotationPlayable0% | 0% | 0% | 0% | 100%
Assets/build_scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void RenderInteractionList()
in Assets/MixedRealityToolkit/Inspectors/ControllerPopupWindow.cs
385 88 2
public virtual void RenderCustomInspector()
in Assets/MixedRealityToolkit.SDK/Inspectors/UX/Interactable/InteractableInspector.cs
322 54 0
void OnGUI()
in Assets/DefaultPlayables/Editor/TimelinePlayableWizard.cs
179 41 0
public void LoadInfo()
in Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/Controllers/MixedRealityControllerInfo.cs
127 38 2
private void FindPlacementPlane()
in Assets/MixedRealityToolkit.SDK/Features/Utilities/Solvers/SurfaceMagnetism.cs
147 36 11
private void AppxBuildGUI()
in Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/BuildDeployWindow.cs
188 35 0
public static SerializedProperty ChangeThemeProperty()
in Assets/MixedRealityToolkit.SDK/Inspectors/UX/Interactable/ThemeInspector.cs
159 34 5
public static void RenderThemeSettings()
in Assets/MixedRealityToolkit.SDK/Inspectors/UX/Interactable/ThemeInspector.cs
182 33 6
private void DeployGUI()
in Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/BuildDeployWindow.cs
225 33 0
private void RenderControllerList()
in Assets/MixedRealityToolkit/Inspectors/Profiles/MixedRealityControllerMappingProfileInspector.cs
168 31 1
void ClipCapsGUI()
in Assets/DefaultPlayables/Editor/TimelinePlayableWizard.cs
75 30 0
private void InitializeServiceLocator()
in Assets/MixedRealityToolkit/Services/MixedRealityToolkit.cs
127 29 0
private TrackedHandJoint ConvertHandJointKindToTrackedHandJoint()
in Assets/MixedRealityToolkit.Providers/WindowsMixedReality/WindowsMixedRealityArticulatedHand.cs
33 27 1
private void AdvanceStateMachine()
in Assets/scripts/OnboardingManager.cs
99 27 0
public override void OnInputChanged()
in Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/Pointers/TeleportPointer.cs
88 26 1
private static async Task ConstructMeshPrimitiveAsync()
in Assets/MixedRealityToolkit/Utilities/Gltf/Serialization/ConstructGltf.cs
131 26 2
private void InvokeStateUpdateFunctions()
in Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/ManipulationHandler.cs
56 24 2
public override void OnInspectorGUI()
in Assets/MixedRealityToolkit/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs
161 24 0
public static void RenderThemeStates()
in Assets/MixedRealityToolkit.SDK/Inspectors/UX/Interactable/ThemeInspector.cs
111 23 3
protected override void UpdateControllerData()
in Assets/MixedRealityToolkit.Providers/WindowsMixedReality/WindowsMixedRealityArticulatedHand.cs
114 22 1