microsoft / Windows-Camera
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 35 units with 614 lines of code in units (68.4% 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)
    • 6 simple units (204 lines of code)
    • 29 very simple units (410 lines of code)
0% | 0% | 0% | 33% | 66%
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% | 33% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Cam3600% | 0% | 0% | 33% | 66%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private async void cmbCamera_SelectionChanged()
in Tools/Cam360/MainPage.xaml.cs
47 10 2
private async Task InitializeCameraAsync()
in Tools/Cam360/MainPage.xaml.cs
46 8 0
17 7 2
private async void RecordButton_Tapped()
in Tools/Cam360/MainPage.xaml.cs
39 6 2
private void ResetView_Click()
in Tools/Cam360/MainPage.xaml.cs
17 6 2
private async Task StartPreviewAsync()
in Tools/Cam360/MainPage.xaml.cs
38 6 0
protected override void OnLaunched()
in Tools/Cam360/App.xaml.cs
21 5 1
28 5 2
private void InitializeResolutionSettings()
in Tools/Cam360/MainPage.xaml.cs
38 5 0
private async Task CaptureLowLagPhotoAsync()
in Tools/Cam360/MainPage.xaml.cs
40 5 0
private string GetAspectRatio()
in Tools/Cam360/MainPage.xaml.cs
23 5 2
private void SliderFieldOfView_ValueChanged()
in Tools/Cam360/MainPage.xaml.cs
11 4 2
private void PreviewElement_ManipulationDelta()
in Tools/Cam360/MainPage.xaml.cs
14 4 2
private async Task CleanupCameraAsync()
in Tools/Cam360/MainPage.xaml.cs
19 4 0
private async void Application_Suspending()
in Tools/Cam360/MainPage.xaml.cs
17 3 2
private async Task StartVideoRecordingAsync()
in Tools/Cam360/MainPage.xaml.cs
26 3 0
private async Task StopVideoRecordingAsync()
in Tools/Cam360/MainPage.xaml.cs
23 3 0
private async void PhotoButton_Tapped()
in Tools/Cam360/MainPage.xaml.cs
11 2 2
8 2 2
private async Task StopPreviewAsync()
in Tools/Cam360/MainPage.xaml.cs
17 2 0