microsoft / WindowsDevicePortalWrapper
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 429 units with 5,767 lines of code in units (61.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (168 lines of code)
    • 15 simple units (884 lines of code)
    • 412 very simple units (4,715 lines of code)
0% | 0% | 2% | 15% | 81%
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% | 0% | 2% | 15% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
MockDataGenerator0% | 0% | 65% | 0% | 34%
WindowsDevicePortalWrapper0% | 0% | 28% | 25% | 46%
WindowsDevicePortalWrapper.Shared0% | 0% | 0% | 72% | 27%
WindowsDevicePortalWrapper.UniversalWindows/Core0% | 0% | 0% | 100% | 0%
WindowsDevicePortalWrapper.Shared/Core0% | 0% | 0% | 12% | 87%
WindowsDevicePortalWrapper/Core0% | 0% | 0% | 100% | 0%
WindowsDevicePortalWrapper.Shared/HoloLens0% | 0% | 0% | 10% | 89%
WindowsDevicePortalWrapper.Shared/Exceptions0% | 0% | 0% | 59% | 40%
WindowsDevicePortalWrapper/HttpRest0% | 0% | 0% | 17% | 82%
WindowsDevicePortalWrapper.UniversalWindows0% | 0% | 0% | 44% | 55%
WindowsDevicePortalWrapper.UniversalWindows/HttpRest0% | 0% | 0% | 10% | 89%
WindowsDevicePortalWrapper.Shared/HttpRest0% | 0% | 0% | 9% | 90%
UnitTestProject0% | 0% | 0% | 17% | 82%
UnitTestProject/Device-VersionTests0% | 0% | 0% | 0% | 100%
WindowsDevicePortalWrapper.Shared/IoT0% | 0% | 0% | 0% | 100%
UnitTestProject/Core0% | 0% | 0% | 0% | 100%
UnitTestProject/WDPMockImplementations0% | 0% | 0% | 0% | 100%
WindowsDevicePortalWrapper.Shared/Xbox0% | 0% | 0% | 0% | 100%
WindowsDevicePortalWrapper.Shared/Events0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static void Main()
in WindowsDevicePortalWrapper/MockDataGenerator/Program.cs
129 18 1
private bool ServerCertificateValidation()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/CertificateHandling.cs
39 14 4
public async Task ConnectAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/DevicePortal.cs
97 10 4
public async Task SaveEndpointResponseToFileAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/DevicePortal.cs
119 10 5
public async Task InstallApplicationAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/Core/AppDeployment.cs
121 10 7
public static async Task CreateAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Exceptions/DevicePortalException.cs
58 9 3
public async Task GetInstallStatusAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/Core/AppDeployment.cs
66 9 0
private void StartListeningForMessagesInternal()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/HttpRest/WebSocket.cs
57 9 0
public async Task InstallApplicationAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppDeployment.cs
87 8 7
public void UpdateConnection()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/DefaultDevicePortalConnection.cs
35 8 3
public void UpdateConnection()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/DefaultDevicePortalConnection.cs
35 8 3
public void AddMockResponse()
in WindowsDevicePortalWrapper/UnitTestProject/MockHttpResponder.cs
25 7 4
private async Task ConnectInternalAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/HttpRest/WebSocket.cs
32 7 1
public async Task GetInstallStatusAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/Core/AppDeployment.cs
64 7 0
public async Task StartHolographicSimulationRecordingAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/HoloLens/PerceptionSimulationRecording.cs
20 6 5
public async Task StopHolographicSimulationRecordingAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/HoloLens/PerceptionSimulationRecording.cs
41 6 0
private void RetrieveCsrfToken()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/HttpRest/HttpHeadersHelper.cs
27 6 1
public void ParseCommandLine()
in WindowsDevicePortalWrapper/MockDataGenerator/ParameterHelper.cs
24 5 1
private Dictionary BuildCommonFilePayload()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppFileExplorer.cs
22 5 3
public async Task GetHolographicSimulationPlaybackStateAsync()
in WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/HoloLens/PerceptionSimulationPlayback.cs
43 5 1