microsoft / BluetoothLEExplorer
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 396 units with 5,258 lines of code in units (40.3% of code).
    • 2 very complex units (267 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (282 lines of code)
    • 33 simple units (1,299 lines of code)
    • 357 very simple units (3,410 lines of code)
5% | 0% | 5% | 24% | 64%
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
cs5% | 0% | 5% | 24% | 64%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
BluetoothLEExplorer/BluetoothLEExplorer/Models12% | 0% | 0% | 32% | 54%
BluetoothLEExplorer/BluetoothLEExplorer/ViewModels0% | 0% | 12% | 33% | 53%
BluetoothLEExplorer/BluetoothLEExplorer/Services0% | 0% | 22% | 0% | 77%
GattServicesLibrary/GattServicesLibrary/Helpers0% | 0% | 38% | 0% | 61%
GattServicesLibrary/GattServicesLibrary/Services0% | 0% | 0% | 46% | 53%
SortedObservableCollection/SortedObservableCollection0% | 0% | 0% | 43% | 56%
BluetoothLEExplorer/BluetoothLEExplorer0% | 0% | 0% | 26% | 73%
GattServicesLibrary/GattServicesLibrary/Characteristics0% | 0% | 0% | 0% | 100%
BluetoothLEExplorer/BluetoothLEExplorer/Views0% | 0% | 0% | 0% | 100%
BluetoothLEExplorer/GattHelper/Converters0% | 0% | 0% | 0% | 100%
GattServicesLibrary/GattServicesLibrary0% | 0% | 0% | 0% | 100%
BluetoothLEExplorer/BluetoothLEExplorer/CustomControls0% | 0% | 0% | 0% | 100%
GattServicesLibrary/GattServicesLibrary/CharacteristicParameterValues0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static byte GetHidUsageFromPs2Set1()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/HidHelper.cs
116 109 1
private void SetValue()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/ObservableGattCharacteristics.cs
151 51 0
public static string GetErrorString()
in BluetoothLEExplorer/BluetoothLEExplorer/Services/Other/GattProtocolErrorParser.cs
77 19 1
public static string ConvertValueBufferToString()
in GattServicesLibrary/GattServicesLibrary/Helpers/ValueConverter.cs
55 19 2
public async void WriteValue()
in BluetoothLEExplorer/BluetoothLEExplorer/ViewModels/CharacteristicPageViewModel.cs
65 12 0
private async void CharacteristicPageViewModel_PropertyChanged()
in BluetoothLEExplorer/BluetoothLEExplorer/ViewModels/CharacteristicPageViewModel.cs
85 11 2
private void ChangeKeyState()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/VirtualKeyboard.cs
64 10 2
public override async Task OnNavigatedToAsync()
in BluetoothLEExplorer/BluetoothLEExplorer/ViewModels/CharacteristicPageViewModel.cs
42 10 3
private async Task GetAllCharacteristics()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/ObservableGattDeviceService.cs
47 9 0
private void Advertisements_MapChanged()
in BluetoothLEExplorer/BluetoothLEExplorer/ViewModels/AdvertisementMonitorPageViewModel.cs
36 9 2
private async void ServicePageViewModel_PropertyChanged()
in BluetoothLEExplorer/BluetoothLEExplorer/ViewModels/ServicePageViewModel.cs
69 9 2
private async Task AddDeviceToList()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/GattSampleContext.cs
44 8 1
public async void CreateService()
in BluetoothLEExplorer/BluetoothLEExplorer/ViewModels/VirtualPeripheralPageViewModel.cs
38 8 0
public void NavigateToService()
in BluetoothLEExplorer/BluetoothLEExplorer/ViewModels/VirtualPeripheralPageViewModel.cs
37 8 0
private int FindNewIndex()
in SortedObservableCollection/SortedObservableCollection/SortedObservableCollection.cs
44 8 2
private async void NotifyableItem_PropertyChanged()
in SortedObservableCollection/SortedObservableCollection/SortedObservableCollection.cs
27 8 2
private async void DeviceWatcher_Updated()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/GattSampleContext.cs
59 7 2
public ObservableBluetoothLEAdvertisement()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/ObservableBluetoothLEAdvertisement.cs
42 7 1
public int Compare()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/ObservableBluetoothLEDevice.cs
25 7 2
private async Task GetAllDescriptors()
in BluetoothLEExplorer/BluetoothLEExplorer/Models/ObservableGattCharacteristics.cs
38 7 0