microsoft / Windows-appsample-familynotes
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 169 units with 2,474 lines of code in units (59.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (303 lines of code)
    • 14 simple units (537 lines of code)
    • 151 very simple units (1,634 lines of code)
0% | 0% | 12% | 21% | 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% | 12% | 21% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
FamilyNotes0% | 0% | 19% | 28% | 52%
FamilyNotes/Speech0% | 0% | 12% | 19% | 68%
FamilyNotes/UserDetection0% | 0% | 11% | 24% | 64%
FamilyNotes/Controls0% | 0% | 0% | 9% | 90%
FamilyNotes/AppDialogs0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
111 14 2
87 12 1
private async void CountDetectedFaces()
in FamilyNotes/UserDetection/UserPresence.cs
47 12 1
58 11 2
private CommandVerb GetPhraseIntent()
in FamilyNotes/Speech/SpeechManager.cs
33 10 1
private async void UpdateGreeting()
in FamilyNotes/MainPage.xaml.cs
28 9 1
private async Task LoadModelAsync()
in FamilyNotes/App.xaml.cs
64 8 0
public static async Task TrainDetectionAsync()
in FamilyNotes/UserDetection/FacialSimilarity.cs
73 8 0
public async Task SaveModelAsync()
in FamilyNotes/App.xaml.cs
52 7 0
public object Convert()
in FamilyNotes/Controls/Converters.cs
19 7 4
30 7 2
35 6 1
private void GoToTextMode()
in FamilyNotes/Controls/Note.xaml.cs
24 6 2
private async void AddNewPersonDialog()
in FamilyNotes/MainPage.xaml.cs
35 6 1
private async Task EnableFaceDetection()
in FamilyNotes/MainPage.xaml.cs
37 6 0
public void LoadSettings()
in FamilyNotes/Settings.cs
14 6 0
public async Task StartContinuousRecognition()
in FamilyNotes/Speech/SpeechManager.cs
61 6 0
private async Task InitializeCameraAsync()
in FamilyNotes/UserDetection/UserPresence.cs
32 6 0
private void Note_ManipulationDelta()
in FamilyNotes/Controls/Note.xaml.cs
17 5 2
public void FilterNotes()
in FamilyNotes/Controls/NotesCanvas.cs
27 5 1