microsoft / Windows-AppConsult-Samples-DesktopBridge
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 365 units with 4,066 lines of code in units (29.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (108 lines of code)
    • 12 simple units (352 lines of code)
    • 350 very simple units (3,606 lines of code)
0% | 0% | 2% | 8% | 88%
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% | 3% | 4% | 91%
cpp0% | 0% | 0% | 24% | 75%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Blog-ModernizationStory0% | 0% | 18% | 4% | 77%
Docs-ContextMenuSample0% | 0% | 0% | 20% | 79%
Blog-FIPs0% | 0% | 0% | 83% | 16%
Blog-Sqlite0% | 0% | 0% | 29% | 70%
Blog-WpfNetCore0% | 0% | 0% | 5% | 94%
Blog-OptionalPackages0% | 0% | 0% | 0% | 100%
Blog-AppTransition0% | 0% | 0% | 0% | 100%
Blog-AdvancedInstaller0% | 0% | 0% | 0% | 100%
Blog-Scripting0% | 0% | 0% | 0% | 100%
Blog-SourceGenerator0% | 0% | 0% | 0% | 100%
UWPAPIsUsedFromUnityEXEApp0% | 0% | 0% | 0% | 100%
MSIX-Shared-Storage-Folder0% | 0% | 0% | 0% | 100%
Blog-WinRTComponent0% | 0% | 0% | 0% | 100%
Blog-AppInstallerWithActivation0% | 0% | 0% | 0% | 100%
Blog-PSF0% | 0% | 0% | 0% | 100%
Blog-MSIXModificationPackages0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
internal ControlEnum? GetControlEnum()
in Blog-ModernizationStory/DynamicWindowsForms/ControlHelpers/ControlTypeHelper.cs
44 15 2
internal override Control GetControl()
in Blog-ModernizationStory/DynamicWindowsForms/ControlHelpers/ControlFactoryXaml.cs
34 13 1
internal bool IsWuxControl()
in Blog-ModernizationStory/DynamicWindowsForms/ControlHelpers/ControlTypeHelper.cs
30 12 1
internal override Control GetControl()
in Blog-ModernizationStory/DynamicWindowsForms/ControlHelpers/ControlFactoryNet.cs
25 9 1
HRESULT CRegisterExtension::RegisterElevatableInProcServer()
in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp
57 9 3
HRESULT CRegisterExtension::RegisterAppShortcutInSendTo()
in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp
37 9 0
protected override void OnMouseUp()
in Blog-WpfNetCore/ExpenseIt/EditBoxControlLibrary/EditBox.cs
16 8 1
protected override void OnMouseUp()
in Blog-WpfNetCore/ExpenseItNetCore/EditBox.cs
16 8 1
HRESULT CRegisterExtension::RegSetKeyValueBinaryPrintf()
in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp
30 8 5
public override void Initialize()
in Blog-FIPs/FipsCodeAnalyzer/FipsCodeAnalyzer/FipsCodeAnalyzerAnalyzer.cs
47 7 1
HRESULT CRegisterExtension::RegisterElevatableLocalServer()
in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp
28 7 3
private async void BtnGetWeather_OnClick()
in Blog-Sqlite/SqlLite.UI/MainWindow.xaml.cs
33 6 2
HRESULT CRegisterExtension::RegisterAppAsLocalServer()
in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp
30 6 2
HRESULT CRegisterExtension::RegisterPlayerVerbs()
in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp
22 6 4
void CRegisterExtension::_UpdateAssocChanged()
in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp
11 6 2
private void AddControl()
in Blog-ModernizationStory/DynamicWindowsForms/FormDynamic.cs
23 5 2
protected override void OnLaunched()
in Blog-WinRTComponent/WinRTComponent/WinRTComponent.UWPHead/App.xaml.cs
21 5 1
HRESULT CExplorerCommandStateHandler_RegisterUnRegister()
in Docs-ContextMenuSample/ExplorerCommandVerb/ExplorerCommandStateHandler.cpp
30 5 1
HRESULT CRegisterExtension::UnRegisterVerbs()
in Docs-ContextMenuSample/ExplorerCommandVerb/RegisterExtension.cpp
13 5 3
__inline HRESULT SetItemImageImageInStaticControl()
in Docs-ContextMenuSample/ExplorerCommandVerb/ShellHelpers.h
28 5 2