microsoft / Windows-AppConsult-Samples-UWP
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 126 units with 1,209 lines of code in units (34.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 2 simple units (69 lines of code)
    • 124 very simple units (1,140 lines of code)
0% | 0% | 0% | 5% | 94%
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% | 0% | 4% | 95%
java0% | 0% | 0% | 30% | 69%
cpp0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
m0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
UWP-Advanced-Inking/UnprocessedInput0% | 0% | 0% | 24% | 75%
GeolocationSample/android0% | 0% | 0% | 46% | 53%
UWP-Advanced-Inking/XAMLShapesAdvancedManipulations0% | 0% | 0% | 0% | 100%
UWP-Advanced-Inking/XAMLShapesLineCurving0% | 0% | 0% | 0% | 100%
PlaneIdentifier/PlaneIdentifier0% | 0% | 0% | 0% | 100%
UWP-Advanced-Inking/XAMLShapesManipulations0% | 0% | 0% | 0% | 100%
PlaneIdentifier/PlaneIdentifier.Desktop0% | 0% | 0% | 0% | 100%
UWP-Advanced-Inking/CurveALine0% | 0% | 0% | 0% | 100%
UWP-Advanced-Inking/StrokesToShapes0% | 0% | 0% | 0% | 100%
GeolocationSample/windows0% | 0% | 0% | 0% | 100%
UWP-Advanced-Inking/InkingAndZoom0% | 0% | 0% | 0% | 100%
NativeModulesSample/android0% | 0% | 0% | 0% | 100%
XamlIslands/ComplexCustomControl0% | 0% | 0% | 0% | 100%
NativeModulesSample0% | 0% | 0% | 0% | 100%
GeolocationSample/ios0% | 0% | 0% | 0% | 100%
NativeModulesSample/windows0% | 0% | 0% | 0% | 100%
GeolocationSample0% | 0% | 0% | 0% | 100%
XamlIslands/SimpleCustomControl0% | 0% | 0% | 0% | 100%
NativeModulesSample/ios0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void FindIntersection()
in UWP-Advanced-Inking/UnprocessedInput/UnprocessedInput/MainPage.xaml.cs
50 9 9
private static void initializeFlipper()
in GeolocationSample/android/app/src/main/java/com/geolocationsample/MainApplication.java
19 6 2
protected override void OnLaunched()
in PlaneIdentifier/PlaneIdentifier/App.xaml.cs
21 5 1
protected override void OnLaunched()
in UWP-Advanced-Inking/CurveALine/CurveALine/App.xaml.cs
21 5 1
protected override void OnLaunched()
in UWP-Advanced-Inking/InkingAndZoom/InkingAndZoom/App.xaml.cs
21 5 1
protected override void OnLaunched()
in UWP-Advanced-Inking/StrokesToShapes/StrokesToShapes/App.xaml.cs
21 5 1
protected override void OnLaunched()
in UWP-Advanced-Inking/UnprocessedInput/UnprocessedInput/App.xaml.cs
21 5 1
protected override void OnLaunched()
in UWP-Advanced-Inking/XAMLShapesAdvancedManipulations/XAMLShapesAdvancedManipulations/App.xaml.cs
21 5 1
protected override void OnLaunched()
in UWP-Advanced-Inking/XAMLShapesLineCurving/XAMLShapesLineCurving/App.xaml.cs
21 5 1
protected override void OnLaunched()
in UWP-Advanced-Inking/XAMLShapesManipulations/XAMLShapesManipulations/App.xaml.cs
21 5 1
private async Task EvaluateVideoFrameAsync()
in PlaneIdentifier/PlaneIdentifier.Desktop/MainWindow.xaml.cs
28 4 1
private async Task EvaluateVideoFrameAsync()
in PlaneIdentifier/PlaneIdentifier/MainPage.xaml.cs
28 4 1
private void UnprocessedInput_PointerReleased()
in UWP-Advanced-Inking/UnprocessedInput/UnprocessedInput/MainPage.xaml.cs
32 4 2
public void UnselectActiveLine()
in UWP-Advanced-Inking/XAMLShapesAdvancedManipulations/XAMLShapesAdvancedManipulations/MainPage.xaml.cs
12 4 0
public void UnselectActiveLine()
in UWP-Advanced-Inking/XAMLShapesLineCurving/XAMLShapesLineCurving/MainPage.xaml.cs
11 3 0
private void WindowsXamlHost_ChildChanged()
in XamlIslands/ComplexCustomControl/ComplexCustomControl.Wpf/MainWindow.xaml.cs
8 3 2
public async void GetCoordinatesWithPromise()
in GeolocationSample/windows/GeolocationModule/GeolocationModule.cs
14 2 1
public async void GetCoordinatesWithCallback()
in GeolocationSample/windows/GeolocationModule/GeolocationModule.cs
14 2 2
private async void OnRecognize()
in PlaneIdentifier/PlaneIdentifier.Desktop/MainWindow.xaml.cs
19 2 2
private void ToggleSwitch_Toggled()
in UWP-Advanced-Inking/UnprocessedInput/UnprocessedInput/MainPage.xaml.cs
19 2 2