microsoft / TpmRCDecoder
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 90 units with 1,219 lines of code in units (17.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (182 lines of code)
    • 7 simple units (218 lines of code)
    • 79 very simple units (819 lines of code)
0% | 0% | 14% | 17% | 67%
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% | 14% | 17% | 67%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
TpmRcDecoder.Universal0% | 0% | 14% | 17% | 67%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void AppShell_KeyDown()
in TpmRcDecoder/TpmRcDecoder.Universal/AppShell.xaml.cs
40 19 2
private void CoreDispatcher_AcceleratorKeyActivated()
in TpmRcDecoder/TpmRcDecoder.Universal/NavigationHelper.cs
28 19 2
protected override void OnKeyDown()
in TpmRcDecoder/TpmRcDecoder.Universal/NavMenuListView.cs
67 14 1
public string Decode()
in TpmRcDecoder/TpmRcDecoder.Universal/Decoder.cs
47 11 1
private void CommandCode_TextChanged()
in TpmRcDecoder/TpmRcDecoder.Universal/CommandCodes.xaml.cs
48 9 2
private void OnNavigatingToPage()
in TpmRcDecoder/TpmRcDecoder.Universal/AppShell.xaml.cs
20 8 2
private string DecodeError()
in TpmRcDecoder/TpmRcDecoder.Universal/Decoder.cs
35 8 1
private string DecodeWarning()
in TpmRcDecoder/TpmRcDecoder.Universal/Decoder.cs
31 7 1
private void ManufacturerCode_TextChanged()
in TpmRcDecoder/TpmRcDecoder.Universal/Manufacturers.xaml.cs
39 7 2
private void CoreWindow_PointerPressed()
in TpmRcDecoder/TpmRcDecoder.Universal/NavigationHelper.cs
16 7 2
private void EnsureRootFrame()
in TpmRcDecoder/TpmRcDecoder.Universal/App.xaml.cs
29 6 2
public void SetSelectedItem()
in TpmRcDecoder/TpmRcDecoder.Universal/NavMenuListView.cs
20 5 1
private void InvokeItem()
in TpmRcDecoder/TpmRcDecoder.Universal/NavMenuListView.cs
15 5 1
public void OnNavigatedTo()
in TpmRcDecoder/TpmRcDecoder.Universal/NavigationHelper.cs
26 5 1
private void GenerateOutput()
in TpmRcDecoder/TpmRcDecoder.Universal/RcDecoder.xaml.cs
30 5 0
public static async Task RestoreAsync()
in TpmRcDecoder/TpmRcDecoder.Universal/SuspensionManager.cs
26 5 1
private void BackRequested()
in TpmRcDecoder/TpmRcDecoder.Universal/AppShell.xaml.cs
10 4 1
private void NavMenuList_ItemInvoked()
in TpmRcDecoder/TpmRcDecoder.Universal/AppShell.xaml.cs
12 4 2
private void CheckTogglePaneButtonSizeChanged()
in TpmRcDecoder/TpmRcDecoder.Universal/AppShell.xaml.cs
19 4 0
private void NavMenuItemContainerContentChanging()
in TpmRcDecoder/TpmRcDecoder.Universal/AppShell.xaml.cs
11 4 2