microsoft / EasyRepro
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 1,276 units with 16,248 lines of code in units (66.0% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (91 lines of code)
    • 16 medium complex units (758 lines of code)
    • 56 simple units (2,004 lines of code)
    • 1,203 very simple units (13,395 lines of code)
0% | <1% | 4% | 12% | 82%
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% | <1% | 4% | 11% | 82%
js0% | 0% | 0% | 48% | 51%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Microsoft.Dynamics365.UIAutomation.Api.UCI0% | 2% | 5% | 20% | 71%
Microsoft.Dynamics365.UIAutomation.Api0% | 0% | 23% | 34% | 42%
Microsoft.Dynamics365.UIAutomation.Browser0% | 0% | 14% | 9% | 76%
Microsoft.Dynamics365.UIAutomation.Api/Pages0% | 0% | 3% | 17% | 79%
Microsoft.Dynamics365.UIAutomation.Browser/Extensions0% | 0% | 8% | 0% | 91%
Microsoft.Dynamics365.UIAutomation.Browser/Resources0% | 0% | 0% | 48% | 51%
Microsoft.Dynamics365.UIAutomation.Browser/Logs0% | 0% | 0% | 11% | 88%
Microsoft.Dynamics365.UIAutomation.Api.UCI/Elements0% | 0% | 0% | 1% | 98%
Microsoft.Dynamics365.UIAutomation.Sample/Web0% | 0% | 0% | 0% | 100%
Microsoft.Dynamics365.UIAutomation.Sample/UCI0% | 0% | 0% | 0% | 100%
Microsoft.Dynamics365.UIAutomation.Sample/SharedAPI0% | 0% | 0% | 0% | 100%
Microsoft.Dynamics365.UIAutomation.Api/DTOs0% | 0% | 0% | 0% | 100%
Microsoft.Dynamics365.UIAutomation.Sample0% | 0% | 0% | 0% | 100%
Microsoft.Dynamics365.UIAutomation.Sample/AzureDevOps0% | 0% | 0% | 0% | 100%
Microsoft.Dynamics365.UIAutomation.Api.UCI/DTO0% | 0% | 0% | 0% | 100%
Microsoft.Dynamics365.UIAutomation.Api.UCI/Controls0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public BrowserCommandResult SetValue()
in Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs
91 29 2
public BrowserCommandResult SetHeaderValue()
in Microsoft.Dynamics365.UIAutomation.Api/Pages/Entity.cs
73 21 1
public BrowserCommandResult SetValue()
in Microsoft.Dynamics365.UIAutomation.Api/XrmPage.cs
72 21 1
public virtual ChromeOptions ToChrome()
in Microsoft.Dynamics365.UIAutomation.Browser/BrowserOptions.cs
83 21 0
protected override TReturn ExecuteCommand()
in Microsoft.Dynamics365.UIAutomation.Browser/DelegateBrowserCommand.cs
13 19 2
protected override TReturn ExecuteCommand()
in Microsoft.Dynamics365.UIAutomation.Browser/DelegateBrowserCommand.cs
12 17 2
public BrowserCommandResult ClickRelatedCommand()
in Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs
79 15 3
public List ProcessWindowPerfResourceTimings()
in Microsoft.Dynamics365.UIAutomation.Api/Pages/WindowPerformanceResource.cs
46 15 1
public static IWebDriver CreateWebDriver()
in Microsoft.Dynamics365.UIAutomation.Browser/BrowserDriverFactory.cs
54 15 1
protected override TReturn ExecuteCommand()
in Microsoft.Dynamics365.UIAutomation.Browser/DelegateBrowserCommand.cs
11 15 2
private LoginResult Login()
in Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs
48 14 6
protected override TReturn ExecuteCommand()
in Microsoft.Dynamics365.UIAutomation.Browser/DelegateBrowserCommand.cs
10 13 2
public BrowserCommandResult SelectLookup()
in Microsoft.Dynamics365.UIAutomation.Api/XrmPage.cs
72 12 3
public BrowserCommandResult SetValue()
in Microsoft.Dynamics365.UIAutomation.Api/XrmPage.cs
70 12 1
private void TrySetDateValue()
in Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs
57 11 4
protected override TReturn ExecuteCommand()
in Microsoft.Dynamics365.UIAutomation.Browser/DelegateBrowserCommand.cs
9 11 2
public static bool WaitForPageToLoad()
in Microsoft.Dynamics365.UIAutomation.Browser/Extensions/SeleniumExtensions.cs
49 11 2
internal BrowserCommandResult ClickCommand()
in Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs
70 10 4
public BrowserCommandResult ClickSubGridCommand()
in Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs
61 10 4
private BrowserCommandResult AddMultiOptions()
in Microsoft.Dynamics365.UIAutomation.Api.UCI/WebClient.cs
50 10 2