microsoft / Xaml-Controls-Gallery
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 769 units with 8,037 lines of code in units (35.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (273 lines of code)
    • 44 simple units (1,403 lines of code)
    • 720 very simple units (6,361 lines of code)
0% | 0% | 3% | 17% | 79%
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% | 17% | 79%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
XamlControlsGallery/ControlPages0% | 0% | 2% | 16% | 81%
XamlControlsGallery/DataModel0% | 0% | 55% | 0% | 45%
XamlControlsGallery0% | 0% | 9% | 11% | 79%
XamlControlsGallery/Helper0% | 0% | 10% | 6% | 82%
XamlControlsGallery/Navigation0% | 0% | 0% | 46% | 53%
XamlControlsGallery/Common0% | 0% | 0% | 16% | 83%
XamlControlsGallery/Controls0% | 0% | 0% | 33% | 66%
XamlControlsGallery/TabViewPages0% | 0% | 0% | 20% | 79%
XamlControlsGallery/SamplePages0% | 0% | 0% | 0% | 100%
XamlControlsGallery/ConnectedAnimationPages0% | 0% | 0% | 0% | 100%
XamlControlsGallery/Behaviors0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void CoreDispatcher_AcceleratorKeyActivated()
in XamlControlsGallery/Helper/NavigationHelper.cs
28 19 2
private async void ListView_Drop()
in XamlControlsGallery/ControlPages/ListViewPage.xaml.cs
56 15 2
private async Task GetControlInfoDataAsync()
in XamlControlsGallery/DataModel/ControlInfoDataSource.cs
77 15 0
private async Task EnsureWindow()
in XamlControlsGallery/App.xaml.cs
72 14 1
private void NavigateToNumberedTabKeyboardAccelerator_Invoked()
in XamlControlsGallery/ControlPages/TabViewPage.xaml.cs
40 11 2
protected override Size ArrangeOverride()
in XamlControlsGallery/Common/WrapPanel.cs
48 10 1
private void OnNavigationViewItemInvoked()
in XamlControlsGallery/Navigation/NavigationRootPage.xaml.cs
46 10 2
private void BuildFilterList()
in XamlControlsGallery/SearchResultsPage.xaml.cs
54 10 1
protected override Size MeasureOverride()
in XamlControlsGallery/Common/VariedImageSizeLayout.cs
46 9 2
public PullToRefreshPage()
in XamlControlsGallery/ControlPages/PullToRefreshPage.xaml.cs
56 9 0
public void EnsureItemIsVisibleInNavigation()
in XamlControlsGallery/Navigation/NavigationRootPage.xaml.cs
47 9 1
protected override Size MeasureOverride()
in XamlControlsGallery/Common/WrapPanel.cs
42 8 1
private void SetCheckedState()
in XamlControlsGallery/ControlPages/CheckBoxPage.xaml.cs
22 8 0
private void panePositionLeft_Checked()
in XamlControlsGallery/ControlPages/NavigationViewPage.xaml.cs
22 8 2
private void panePositionTop_Checked()
in XamlControlsGallery/ControlPages/NavigationViewPage.xaml.cs
22 8 2
private void TransitionRadioButton_Checked()
in XamlControlsGallery/ControlPages/PageTransitionPage.xaml.cs
39 8 2
private void Scroller4_ScrollAnimationStarting()
in XamlControlsGallery/ControlPages/ScrollViewer2Page.xaml.cs
68 8 2
private void Scroller4_ZoomAnimationStarting()
in XamlControlsGallery/ControlPages/ScrollViewer2Page.xaml.cs
63 8 2
string GetBestScreenshotName()
in XamlControlsGallery/Controls/ControlExample.xaml.cs
34 8 0
private void UpdateAppTitleMargin()
in XamlControlsGallery/Navigation/NavigationRootPage.xaml.cs
30 8 1