microsoft / powerapps-tools
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 240 units with 3,251 lines of code in units (45.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (189 lines of code)
    • 20 simple units (632 lines of code)
    • 217 very simple units (2,430 lines of code)
0% | 0% | 5% | 19% | 74%
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% | 6% | 17% | 75%
ts0% | 0% | 0% | 30% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Tools/Apps/Microsoft.PowerApps.Tools.AppChangeFinder0% | 0% | 55% | 10% | 33%
Tools/Apps/Microsoft.PowerApps.ThemeEditor0% | 0% | 1% | 12% | 86%
Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager0% | 0% | 0% | 61% | 38%
Components/PCF/AzureMaps0% | 0% | 0% | 42% | 57%
Tools/Common/PowerApps.Tools.Utilities0% | 0% | 0% | 17% | 82%
Tools/Apps/Microsoft.PowerApps.Tools.PhoneAppConverter0% | 0% | 0% | 64% | 35%
Components/PCF/SVGEditor0% | 0% | 0% | 45% | 54%
Components/PCF/Base64Download0% | 0% | 0% | 20% | 80%
Tools/Apps/Microsoft.PowerApps.Tools.AppMerger0% | 0% | 0% | 0% | 100%
Components/PCF/ImageAttachmentControl0% | 0% | 0% | 0% | 100%
Tools/Core/Microsoft.PowerApps.Tools.PhoneToTablet0% | 0% | 0% | 0% | 100%
Tools/Common/Microsoft.PowerApps.Tools.Zipper0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void SearchBtnClicked()
in Tools/Apps/Microsoft.PowerApps.Tools.AppChangeFinder/ChangeFinderViewModel.cs
87 14 1
private void applyStyleRules()
in Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs
23 12 3
public async void BrowseBtnClicked()
in Tools/Apps/Microsoft.PowerApps.Tools.AppChangeFinder/ChangeFinderViewModel.cs
79 11 1
private symbolActivate()
in Components/PCF/AzureMaps/data-set/azureMapsDataSetControl/index.ts
24 10 1
private symbolActivate()
in Components/PCF/AzureMaps/field/azureMapsFieldControl/index.ts
24 10 1
public updateView()
in Components/PCF/SVGEditor/SVGEditor/index.ts
19 10 1
public object ConvertBack()
in Tools/Apps/Microsoft.PowerApps.ThemeEditor/Converters/AddingPaletteTypeConverter.cs
26 10 4
public object Convert()
in Tools/Apps/Microsoft.PowerApps.ThemeEditor/Converters/PaletteNameToValue.cs
39 10 4
private List VerifyControlProperty()
in Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs
58 10 1
private void PaletteTypeGallery_Selected()
in Tools/Apps/Microsoft.PowerApps.ThemeEditor/AddPalette.xaml.cs
34 9 2
public object Convert()
in Tools/Apps/Microsoft.PowerApps.ThemeEditor/Converters/KeyToFontConverter.cs
33 9 4
private onClick()
in Components/PCF/AzureMaps/data-set/azureMapsDataSetControl/index.ts
23 8 1
private List GetEntityData()
in Tools/Common/PowerApps.Tools.Utilities/AppManager/MergeProcessor.cs
19 8 2
public updateView()
in Components/PCF/Base64Download/Base64Download/index.ts
10 7 1
public object Convert()
in Tools/Apps/Microsoft.PowerApps.ThemeEditor/Converters/KeyToColorConverter.cs
40 7 4
public void AddMissingProperties()
in Tools/Apps/Microsoft.PowerApps.ThemeEditor/ViewModel/MainViewModel.cs
28 7 0
public void CopyAppResources()
in Tools/Common/PowerApps.Tools.Utilities/Helper.cs
31 7 3
private List GetModifiedScreens()
in Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs
63 7 1
private List VerifyScreenProperty()
in Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs
37 7 2
private onMapReady()
in Components/PCF/AzureMaps/data-set/azureMapsDataSetControl/index.ts
43 6 1