microsoft / TailwindTraders-Rewards
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 70 units with 1,094 lines of code in units (42.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (41 lines of code)
    • 69 very simple units (1,053 lines of code)
0% | 0% | 0% | 3% | 96%
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% | 0% | 3% | 96%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source/Website0% | 0% | 0% | 9% | 90%
Source/Website/Data_Layer0% | 0% | 0% | 0% | 100%
Source/Function0% | 0% | 0% | 0% | 100%
Source/Function/Models0% | 0% | 0% | 0% | 100%
Source/Function/Extensions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void MapCustomer()
in Source/Website/Default.aspx.cs
41 7 1
public static async Task RunOrchestrator()
in Source/Function/EnrollmentVerificator.cs
48 5 1
public static async Task Run()
in Source/Function/EnrollmentVerificator.cs
36 5 2
protected void Page_Load()
in Source/Website/Update.aspx.cs
23 5 2
public static Customer GetCustomerById()
in Source/Website/Data_Layer/CustomerData.cs
18 4 1
public static Customer GetCustomerByEmailOrName()
in Source/Website/Data_Layer/CustomerData.cs
18 4 1
public static DataTable ExecuteSelect()
in Source/Website/Data_Layer/DataAccessHandler.cs
29 4 2
public static void ExecuteNonSelect()
in Source/Website/Data_Layer/DataAccessHandler.cs
27 4 2
protected void Page_Load()
in Source/Website/Default.aspx.cs
27 4 2
public static async Task Run()
in Source/Function/EnrollmentHttpStart.cs
24 3 2
protected void Page_Load()
in Source/Website/Admin.aspx.cs
11 3 2
protected void Page_Load()
in Source/Website/Create.aspx.cs
17 3 2
protected void OnClickAddCustomer()
in Source/Website/Create.aspx.cs
41 3 2
private bool IsValidCustomer()
in Source/Website/Create.aspx.cs
12 3 0
private bool IsValidEmail()
in Source/Website/Create.aspx.cs
16 3 1
protected void EnrollCheckedChanged()
in Source/Website/Default.aspx.cs
15 3 2
private bool SkipEnrollmentVerification()
in Source/Website/Default.aspx.cs
10 3 1
private void BypassLogicAppIfNeeded()
in Source/Website/Default.aspx.cs
26 3 1
public static void RunSendNotification()
in Source/Function/EnrollmentVerificator.cs
22 2 5
public static void RunSendFinishedNotification()
in Source/Function/EnrollmentVerificator.cs
10 2 5