microsoft / MRDL_Unity_PeriodicTable
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 5,276 units with 82,191 lines of code in units (12.9% of code).
    • 2 very complex units (470 lines of code)
    • 18 complex units (2,267 lines of code)
    • 245 medium complex units (15,921 lines of code)
    • 537 simple units (17,249 lines of code)
    • 4,474 very simple units (46,284 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
cs<1% | 2% | 19% | 20% | 56%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Assets/MRTK/Core1% | 2% | 19% | 20% | 56%
Assets/MRTK/Tools1% | 4% | 24% | 25% | 43%
Assets/MRTK/SDK0% | 3% | 18% | 19% | 59%
Assets/MRTK/Providers0% | 2% | 23% | 24% | 48%
Assets/MRTK/Services0% | 0% | 17% | 20% | 62%
Assets/MRTK/Extensions0% | 0% | 15% | 31% | 53%
Assets/MRDL_PeriodicTable/Scripts0% | 0% | 0% | 32% | 67%
Assets/MRTK/StandardAssets0% | 0% | 0% | 32% | 67%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void RenderInteractionList()
in Assets/MRTK/Core/Inspectors/ControllerPopupWindow.cs
374 79 2
private void Update()
in Assets/MRTK/Tools/RuntimeTools/Tools/MixedRealityInteractionTool/MixedRealityInteractionTool.cs
96 51 0
public override void DrawInspectorGUI()
in Assets/MRTK/Core/Inspectors/ServiceInspectors/HandJointServiceInspector.cs
142 48 1
private void UpdateHandData()
in Assets/MRTK/Providers/OpenXR/Scripts/MicrosoftArticulatedHand.cs
100 44 1
private void RenderControllerList()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealityControllerMappingProfileInspector.cs
207 43 1
public void LoadInfo()
in Assets/MRTK/SDK/Features/UX/Scripts/Controllers/MixedRealityControllerInfo.cs
127 38 2
private void ManageVisibility()
in Assets/MRTK/SDK/Features/UX/Scripts/ScrollingObjectCollection/ScrollingObjectCollection.cs
121 38 1
protected void ResolveGridLayout()
in Assets/MRTK/SDK/Features/UX/Scripts/Collections/GridObjectCollection.cs
110 36 2
private void FindPlacementPlane()
in Assets/MRTK/SDK/Features/Utilities/Solvers/SurfaceMagnetism.cs
148 36 11
private void InitializeServiceLocator()
in Assets/MRTK/Core/Services/MixedRealityToolkit.cs
136 32 0
public static void DrawProperty()
in Assets/MRTK/Core/Inspectors/PropertyDrawers/SceneInfoDrawer.cs
169 31 5
private static void UpdateMetaFiles()
in Assets/MRTK/Tools/MSBuild/Scripts/AssetScriptReferenceRetargeter.cs
103 29 1
private void TransformTarget()
in Assets/MRTK/SDK/Features/UX/Scripts/BoundsControl/BoundsControl.cs
103 28 1
private void RenderAppxBuildView()
in Assets/MRTK/Tools/BuildWindow/BuildDeployWindow.cs
168 28 0
private TrackedHandJoint ConvertHandJointKindToTrackedHandJoint()
in Assets/MRTK/Providers/WindowsMixedReality/XR2018/Controllers/WindowsMixedRealityArticulatedHand.cs
33 27 1
public virtual void UpdatePointers()
in Assets/MRTK/SDK/Features/UX/Scripts/Pointers/DefaultPointerMediator.cs
107 27 0
public override void OnInputChanged()
in Assets/MRTK/SDK/Features/UX/Scripts/Pointers/TeleportPointer.cs
91 27 1
protected void FluentOptions()
in Assets/MRTK/Core/Inspectors/MixedRealityStandardShaderGUI.cs
99 26 2
private void UpdateInstantiatedSceneObject()
in Assets/MRTK/Providers/Experimental/WindowsSceneUnderstanding/WindowsSceneUnderstandingObserver.cs
94 26 2
public override void OnInspectorGUI()
in Assets/MRTK/SDK/Features/UX/Scripts/Buttons/ButtonIconSet.cs
209 26 0