microsoft / HashCalculator
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 97 units with 1,253 lines of code in units (42.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (191 lines of code)
    • 7 simple units (187 lines of code)
    • 86 very simple units (875 lines of code)
0% | 0% | 15% | 14% | 69%
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% | 15% | 14% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
HashCalculator/Controls0% | 0% | 21% | 3% | 75%
HashCalculator/Views0% | 0% | 11% | 21% | 67%
HashCalculator0% | 0% | 13% | 20% | 66%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void AppShell_KeyDown()
in HashCalculator/AppShell.xaml.cs
40 19 2
private void CoreDispatcher_AcceleratorKeyActivated()
in HashCalculator/Controls/NavigationHelper.cs
28 19 2
private async Task CheckAndUpdateAsync()
in HashCalculator/Views/PermutateHash.xaml.cs
56 15 1
protected override void OnKeyDown()
in HashCalculator/Controls/NavMenuListView.cs
67 14 1
private void LoadState()
in HashCalculator/Views/CalculateHMACHash.xaml.cs
35 9 2
protected override void OnLaunched()
in HashCalculator/App.xaml.cs
43 8 1
private void OnNavigatingToPage()
in HashCalculator/AppShell.xaml.cs
20 8 2
private void LoadState()
in HashCalculator/Views/CalculateHash.xaml.cs
31 8 2
private void CoreWindow_PointerPressed()
in HashCalculator/Controls/NavigationHelper.cs
16 7 2
private void LoadState()
in HashCalculator/Views/TpmPcrs.xaml.cs
23 7 2
private void LoadState()
in HashCalculator/Views/PermutateHash.xaml.cs
19 6 2
public void SetSelectedItem()
in HashCalculator/Controls/NavMenuListView.cs
20 5 1
private void InvokeItem()
in HashCalculator/Controls/NavMenuListView.cs
15 5 1
public void OnNavigatedTo()
in HashCalculator/Controls/NavigationHelper.cs
26 5 1
public static async Task RestoreAsync()
in HashCalculator/Controls/SuspensionManager.cs
26 5 1
private async void PermutateHashes_Click()
in HashCalculator/Views/PermutateHash.xaml.cs
32 5 2
private void Extend_Click()
in HashCalculator/Views/TpmPcrs.xaml.cs
26 5 2
private void BackRequested()
in HashCalculator/AppShell.xaml.cs
10 4 1
private void NavMenuList_ItemInvoked()
in HashCalculator/AppShell.xaml.cs
12 4 2
private void CheckTogglePaneButtonSizeChanged()
in HashCalculator/AppShell.xaml.cs
19 4 0