microsoft / DataStreamerSamples
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 47 units with 718 lines of code in units (63.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (98 lines of code)
    • 2 simple units (40 lines of code)
    • 44 very simple units (580 lines of code)
0% | 0% | 13% | 5% | 80%
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% | 20% | 0% | 80%
js0% | 0% | 0% | 17% | 82%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
MiddlemanElectronSampleApp/AppServiceHost/AppServiceUWP0% | 0% | 35% | 0% | 64%
MiddlemanElectronSampleApp/Electron0% | 0% | 0% | 17% | 82%
DataStreamerAppServiceUWPCommSample/DataStreamerAppServiceUWPCommSample0% | 0% | 0% | 0% | 100%
MiddlemanElectronSampleApp/PackagingProject/ElectronLauncher0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private async void DataServiceRequestReceived()
in MiddlemanElectronSampleApp/AppServiceHost/AppServiceUWP/App.xaml.cs
98 15 2
function AppServiceConnectionStatusString()
in MiddlemanElectronSampleApp/Electron/renderer.js
22 9 1
function AppServiceResponseStatusString()
in MiddlemanElectronSampleApp/Electron/renderer.js
18 7 1
protected override void OnLaunched()
in DataStreamerAppServiceUWPCommSample/DataStreamerAppServiceUWPCommSample/App.xaml.cs
21 5 1
private async void OnAppServiceRequestReceived()
in DataStreamerAppServiceUWPCommSample/DataStreamerAppServiceUWPCommSample/App.xaml.cs
39 5 2
protected override void OnLaunched()
in MiddlemanElectronSampleApp/AppServiceHost/AppServiceUWP/App.xaml.cs
21 5 1
protected override void OnBackgroundActivated()
in MiddlemanElectronSampleApp/AppServiceHost/AppServiceUWP/App.xaml.cs
34 5 1
function Connect()
in MiddlemanElectronSampleApp/Electron/renderer.js
28 5 0
private async Task ReceiveDataAsync()
in DataStreamerAppServiceUWPCommSample/DataStreamerAppServiceUWPCommSample/MainPage.xaml.cs
25 4 0
private async Task SendDataAsync()
in DataStreamerAppServiceUWPCommSample/DataStreamerAppServiceUWPCommSample/MainPage.xaml.cs
18 4 0
private async void ExcelOnAppServiceRequestReceived()
in MiddlemanElectronSampleApp/AppServiceHost/AppServiceUWP/App.xaml.cs
33 4 2
function AppServiceStatus()
in MiddlemanElectronSampleApp/Electron/renderer.js
20 4 0
private async Task WriteDataAsync()
in DataStreamerAppServiceUWPCommSample/DataStreamerAppServiceUWPCommSample/App.xaml.cs
16 3 1
private async Task ReadDataAsync()
in DataStreamerAppServiceUWPCommSample/DataStreamerAppServiceUWPCommSample/App.xaml.cs
16 3 0
private void ExcelResetConnection()
in MiddlemanElectronSampleApp/AppServiceHost/AppServiceUWP/App.xaml.cs
14 3 0
private void DataConnectionResetConnection()
in MiddlemanElectronSampleApp/AppServiceHost/AppServiceUWP/App.xaml.cs
14 3 0
private async void SendStatusAsync()
in MiddlemanElectronSampleApp/AppServiceHost/AppServiceUWP/App.xaml.cs
14 3 0
function Send()
in MiddlemanElectronSampleApp/Electron/renderer.js
17 3 0
function sleep()
in MiddlemanElectronSampleApp/Electron/renderer.js
7 3 1
function Write()
in MiddlemanElectronSampleApp/Electron/renderer.js
20 3 1