microsoft / SimpleRemote
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 171 units with 2,625 lines of code in units (73.4% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (250 lines of code)
    • 47 medium size units (1,346 lines of code)
    • 33 small units (494 lines of code)
    • 87 very small units (535 lines of code)
0% | 9% | 51% | 18% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 9% | 52% | 18% | 20%
py0% | 0% | 0% | 57% | 42%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
SimpleRemoteConsole/ServiceInterop0% | 42% | 38% | 19% | 0%
SimpleRemoteConsole0% | 46% | 47% | 0% | 5%
SimpleDUTClientLibrary0% | 13% | 42% | 12% | 32%
DUTRemoteTests0% | 0% | 48% | 33% | 18%
SimpleDUTRemote0% | 0% | 50% | 18% | 31%
SimpleDUTRemote/JobSystem0% | 0% | 73% | 5% | 21%
SimpleDUTRemote/HelperFunctions0% | 0% | 83% | 0% | 16%
SimpleJsonRpc0% | 0% | 74% | 11% | 13%
SimpleDUTCommonLibrary0% | 0% | 61% | 0% | 38%
ROOT0% | 0% | 0% | 57% | 42%
PluginExample0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public void CreateService()
in SimpleRemoteConsole/ServiceInterop/Service.cs
70 12 1
static void Main()
in SimpleRemoteConsole/Program.cs
66 10 1
public void RemoveService()
in SimpleRemoteConsole/ServiceInterop/Service.cs
59 11 0
private async Task _RunJob()
in SimpleDUTClientLibrary/RpcClient.cs
55 8 7
public int StartJobWithProgress()
in SimpleDUTClientLibrary/RpcClient.cs
50 2 5
45 6 0
public static void Upload()
in SimpleDUTRemote/HelperFunctions/LargeFileTransfers.cs
44 5 3
private void InitializeService()
in SimpleRemoteConsole/ServiceInterop/Service.cs
44 4 2
40 2 0
39 2 0
static bool CheckUserWarning()
in SimpleRemoteConsole/Program.cs
37 6 0
36 2 0
private bool CreateProgressStream()
in SimpleDUTRemote/JobSystem/Job.cs
36 6 1
35 2 0
public Job()
in SimpleDUTRemote/JobSystem/Job.cs
35 4 3
public int StartJobWithProgress()
in SimpleDUTRemote/Functions.cs
31 6 5
public static void Download()
in SimpleDUTRemote/HelperFunctions/LargeFileTransfers.cs
31 3 2
private object CallMethod()
in SimpleJsonRpc/SimpleRpcServer.cs
31 6 2
public async Task Start()
in SimpleJsonRpc/SimpleRpcServer.cs
30 4 3
static void InitializeServer()
in SimpleRemoteConsole/Program.cs
30 4 1