microsoft / SimpleRemote
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 171 units with 2,625 lines of code in units (73.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (129 lines of code)
    • 8 simple units (309 lines of code)
    • 161 very simple units (2,187 lines of code)
0% | 0% | 4% | 11% | 83%
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% | 4% | 11% | 83%
py0% | 0% | 0% | 20% | 80%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
SimpleRemoteConsole/ServiceInterop0% | 0% | 42% | 0% | 57%
SimpleRemoteConsole0% | 0% | 0% | 73% | 26%
SimpleDUTClientLibrary0% | 0% | 0% | 13% | 86%
DUTRemoteTests0% | 0% | 0% | 5% | 94%
SimpleDUTRemote/JobSystem0% | 0% | 0% | 18% | 81%
SimpleDUTRemote0% | 0% | 0% | 9% | 90%
SimpleJsonRpc0% | 0% | 0% | 20% | 79%
ROOT0% | 0% | 0% | 20% | 80%
SimpleDUTRemote/HelperFunctions0% | 0% | 0% | 0% | 100%
SimpleDUTCommonLibrary0% | 0% | 0% | 0% | 100%
PluginExample0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void CreateService()
in SimpleRemoteConsole/ServiceInterop/Service.cs
70 12 1
public void RemoveService()
in SimpleRemoteConsole/ServiceInterop/Service.cs
59 11 0
static void Main()
in SimpleRemoteConsole/Program.cs
66 10 1
private async Task _RunJob()
in SimpleDUTClientLibrary/RpcClient.cs
55 8 7
45 6 0
def GetFilesToModify()
in SetVersion.py
8 6 0
public int StartJobWithProgress()
in SimpleDUTRemote/Functions.cs
31 6 5
private bool CreateProgressStream()
in SimpleDUTRemote/JobSystem/Job.cs
36 6 1
private object CallMethod()
in SimpleJsonRpc/SimpleRpcServer.cs
31 6 2
static bool CheckUserWarning()
in SimpleRemoteConsole/Program.cs
37 6 0
public Assembly ResolveAssembly()
in SimpleDUTClientLibrary/AssemblyRedirectResolver.cs
25 5 2
public static int Upload()
in SimpleDUTRemote/Functions.cs
27 5 3
public static void Upload()
in SimpleDUTRemote/HelperFunctions/LargeFileTransfers.cs
44 5 3
internal static bool CheckReadFromFileOrDir()
in SimpleDUTRemote/HelperFunctions/ReadWriteChecks.cs
26 5 1
internal static bool CheckWriteToDir()
in SimpleDUTRemote/HelperFunctions/ReadWriteChecks.cs
24 5 1
private void StreamingLoopHandler()
in SimpleDUTRemote/JobSystem/Job.cs
26 5 0
private void CloseStreams()
in SimpleDUTRemote/JobSystem/Job.cs
27 5 0
private void ReportSvcStatus()
in SimpleRemoteConsole/ServiceInterop/Service.cs
28 5 3
def ModifyCsprojFiles()
in SetVersion.py
12 4 2
def ModifyIssFiles()
in SetVersion.py
11 4 2