microsoft / GalaxyExplorer
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 3,167 units with 47,542 lines of code in units (10.8% of code).
    • 24 very long units (3,735 lines of code)
    • 114 long units (7,903 lines of code)
    • 487 medium size units (14,784 lines of code)
    • 757 small units (10,942 lines of code)
    • 1,785 very small units (10,178 lines of code)
7% | 16% | 31% | 23% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs7% | 16% | 31% | 23% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Assets/MixedRealityToolkit11% | 23% | 26% | 19% | 18%
Assets/MixedRealityToolkit.SDK10% | 14% | 28% | 24% | 21%
Assets/DefaultPlayables8% | 8% | 37% | 23% | 21%
Assets/MixedRealityToolkit.Services2% | 13% | 36% | 25% | 22%
Assets/MixedRealityToolkit.Providers3% | 18% | 39% | 18% | 20%
Assets/scripts0% | 10% | 34% | 27% | 26%
Assets/SpritePlayable0% | 0% | 52% | 15% | 32%
Assets/RotationPlayable0% | 0% | 46% | 0% | 53%
Assets/build_scripts0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 20 longest 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
private void DeployGUI()
in Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/BuildDeployWindow.cs
225 33 0
private void AppxBuildGUI()
in Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/BuildDeployWindow.cs
188 35 0
public static void RenderThemeSettings()
in Assets/MixedRealityToolkit.SDK/Inspectors/UX/Interactable/ThemeInspector.cs
182 33 6
void OnGUI()
in Assets/DefaultPlayables/Editor/TimelinePlayableWizard.cs
179 41 0
private void RenderControllerList()
in Assets/MixedRealityToolkit/Inspectors/Profiles/MixedRealityControllerMappingProfileInspector.cs
168 31 1
public override void OnInspectorGUI()
in Assets/MixedRealityToolkit/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs
161 24 0
public static SerializedProperty ChangeThemeProperty()
in Assets/MixedRealityToolkit.SDK/Inspectors/UX/Interactable/ThemeInspector.cs
159 34 5
private void FindPlacementPlane()
in Assets/MixedRealityToolkit.SDK/Features/Utilities/Solvers/SurfaceMagnetism.cs
147 36 11
private void RenderCriteriaField()
in Assets/MixedRealityToolkit/Inspectors/Profiles/MixedRealityInputActionRulesInspector.cs
133 21 2
private static async Task ConstructMeshPrimitiveAsync()
in Assets/MixedRealityToolkit/Utilities/Gltf/Serialization/ConstructGltf.cs
131 26 2
public void LoadInfo()
in Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/Controllers/MixedRealityControllerInfo.cs
127 38 2
private void InitializeServiceLocator()
in Assets/MixedRealityToolkit/Services/MixedRealityToolkit.cs
127 29 0
private void AddLinks()
in Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/BoundingBox/BoundingBox.cs
119 16 0
public override void OnInspectorGUI()
in Assets/MixedRealityToolkit/Inspectors/Utilities/Lines/DataProviders/BaseLineDataProviderInspector.cs
118 19 0
protected override void UpdateControllerData()
in Assets/MixedRealityToolkit.Providers/WindowsMixedReality/WindowsMixedRealityArticulatedHand.cs
114 22 1
public static void RenderThemeStates()
in Assets/MixedRealityToolkit.SDK/Inspectors/UX/Interactable/ThemeInspector.cs
111 23 3
public InscribedRectangle()
in Assets/MixedRealityToolkit/Definitions/BoundarySystem/InscribedRectangle.cs
109 20 2
public override void OnInspectorGUI()
in Assets/MixedRealityToolkit.SDK/Inspectors/UX/Tooltips/ToolTipConnectorInspector.cs
108 16 0