microsoft / MTC_AMP
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 65 units with 481 lines of code in units (55.2% 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)
    • 3 simple units (67 lines of code)
    • 62 very simple units (414 lines of code)
0% | 0% | 0% | 13% | 86%
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% | 13% | 86%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Collections0% | 0% | 0% | 21% | 78%
Views0% | 0% | 0% | 27% | 72%
Views/Commands0% | 0% | 0% | 39% | 60%
Services0% | 0% | 0% | 0% | 100%
UX/Services0% | 0% | 0% | 0% | 100%
Views/Triggers0% | 0% | 0% | 0% | 100%
ViewModels0% | 0% | 0% | 0% | 100%
Views/Converters0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
23 8 3
private static void OnItemClick()
in AMP/Views/Commands/ItemClickCommand.cs
15 7 2
protected override void InsertItem()
in AMP/Collections/SortedObservableCollection.cs
29 6 2
public static async Task ClearAsync()
in AMP/Services/ILoggingService.cs
10 4 0
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Sort()
in AMP/Collections/SortedObservableCollection.cs
18 3 2
public void Information()
in AMP/Services/ILoggingService.cs
9 3 1
public void Debug()
in AMP/Services/ILoggingService.cs
7 3 1
public void Warning()
in AMP/Services/ILoggingService.cs
7 3 1
public void Error()
in AMP/Services/ILoggingService.cs
7 3 1
public void Fatal()
in AMP/Services/ILoggingService.cs
7 3 1
public void Configure()
in AMP/UX/Services/FrameNavigationService.cs
18 3 2
internal static void StateChanged()
in AMP/Views/StateHelper.cs
16 3 2
private void ApplySort()
in AMP/Collections/SortedObservableCollection.cs
8 2 1
public T GetSetting()
in AMP/Services/ISettingsService.cs
7 2 2
public bool RemoveBackEntry()
in AMP/UX/Services/FrameNavigationService.cs
10 2 0
private Frame GetCurrentFrame()
in AMP/UX/Services/FrameNavigationService.cs
6 2 0