microsoft / WindowsDevicePortalWrapper
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 429 units with 5,767 lines of code in units (61.5% of code).
    • 3 very long units (369 lines of code)
    • 7 long units (511 lines of code)
    • 57 medium size units (1,636 lines of code)
    • 129 small units (1,788 lines of code)
    • 233 very small units (1,463 lines of code)
6% | 8% | 28% | 31% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs6% | 8% | 28% | 31% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
MockDataGenerator65% | 0% | 12% | 13% | 8%
WindowsDevicePortalWrapper.UniversalWindows/Core64% | 35% | 0% | 0% | 0%
WindowsDevicePortalWrapper.Shared40% | 32% | 0% | 11% | 15%
WindowsDevicePortalWrapper.Shared/Core0% | 12% | 15% | 32% | 40%
UnitTestProject/Device-VersionTests0% | 6% | 22% | 52% | 18%
WindowsDevicePortalWrapper/Core0% | 100% | 0% | 0% | 0%
WindowsDevicePortalWrapper.Shared/Exceptions0% | 59% | 23% | 13% | 4%
WindowsDevicePortalWrapper/HttpRest0% | 17% | 43% | 20% | 18%
WindowsDevicePortalWrapper.UniversalWindows/HttpRest0% | 0% | 70% | 12% | 17%
UnitTestProject/Core0% | 0% | 60% | 17% | 21%
UnitTestProject/WDPMockImplementations0% | 0% | 64% | 9% | 25%
WindowsDevicePortalWrapper.Shared/HoloLens0% | 0% | 23% | 55% | 20%
WindowsDevicePortalWrapper.Shared/HttpRest0% | 0% | 38% | 40% | 20%
WindowsDevicePortalWrapper0% | 0% | 53% | 31% | 14%
WindowsDevicePortalWrapper.Shared/IoT0% | 0% | 16% | 24% | 59%
WindowsDevicePortalWrapper.UniversalWindows0% | 0% | 73% | 0% | 26%
UnitTestProject0% | 0% | 17% | 44% | 38%
WindowsDevicePortalWrapper.Shared/Xbox0% | 0% | 11% | 22% | 65%
WindowsDevicePortalWrapper.Shared/Events0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static void Main()
in WindowsDevicePortalWrapper/MockDataGenerator/Program.cs
129 18 1
public async Task InstallApplicationAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/Core/AppDeployment.cs
121 10 7
public async Task SaveEndpointResponseToFileAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/DevicePortal.cs
119 10 5
public async Task ConnectAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/DevicePortal.cs
97 10 4
public async Task InstallApplicationAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppDeployment.cs
87 8 7
public void AppFileExplorerGetFolderContentsTest_XboxOne_1608()
in WindowsDevicePortalWrapper/UnitTestProject/Device-VersionTests/XboxOne/XboxOne_rs1_xbox_rel_1608.cs
82 1 0
public async Task GetInstallStatusAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/Core/AppDeployment.cs
66 9 0
public async Task GetInstallStatusAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/Core/AppDeployment.cs
64 7 0
public static async Task CreateAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Exceptions/DevicePortalException.cs
58 9 3
private void StartListeningForMessagesInternal()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/HttpRest/WebSocket.cs
57 9 0
public async Task GetHolographicSimulationPlaybackStateAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/HoloLens/PerceptionSimulationPlayback.cs
43 5 1
private static void ValidateRunningProcessesAsync()
in WindowsDevicePortalWrapper/UnitTestProject/Device-VersionTests/XboxOne/XboxOne_rs1_xbox_rel_1608.cs
42 1 1
public async Task StopHolographicSimulationRecordingAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/HoloLens/PerceptionSimulationRecording.cs
41 6 0
private static void ValidateRunningProcessesAsync()
in WindowsDevicePortalWrapper/UnitTestProject/Core/PerformanceDataTests.cs
39 1 1
private bool ServerCertificateValidation()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/CertificateHandling.cs
39 14 4
public async Task PostAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/HttpRest/RestPost.cs
37 4 2
public void AppFileExplorerGetFolderContentsTest()
in WindowsDevicePortalWrapper/UnitTestProject/Core/AppFileExplorerTests.cs
36 1 0
private async Task PostAsync()
in WindowsDevicePortalWrapper/UnitTestProject/WDPMockImplementations/RestPost.cs
36 3 2
private async Task PutAsync()
in WindowsDevicePortalWrapper/UnitTestProject/WDPMockImplementations/RestPut.cs
36 3 2
public async Task PutAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/HttpRest/RestPut.cs
36 4 2