microsoft / MCW-App-modernization
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 208 units with 3,399 lines of code in units (35.5% 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)
    • 6 simple units (187 lines of code)
    • 202 very simple units (3,212 lines of code)
0% | 0% | 0% | 5% | 94%
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% | 5% | 94%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/src/PartsUnlimitedWebsite0% | 0% | 0% | 8% | 91%
src/src/PartsUnlimited.Models0% | 0% | 0% | 0% | 100%
src-invoicing-functions/FunctionApp0% | 0% | 0% | 0% | 100%
src-invoicing-functions/RazorPagesApp0% | 0% | 0% | 0% | 100%
src-invoicing-functions/RazorPagesApp/Pages0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private IQueryable Sort()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Areas/Admin/Controllers/StoreManagerController.cs
37 7 3
public async Task ExternalLoginConfirmation()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/AccountController.cs
33 7 2
public async Task Index()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/ManageController.cs
21 7 1
public async Task SendCode()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/AccountController.cs
27 6 1
public async Task ManageLogins()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/ManageController.cs
22 6 1
public static void AddLoginProviders()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Security/AppBuilderLoginProviderExtensions.cs
47 6 2
public async Task Find()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Areas/Admin/Controllers/CustomerController.cs
22 5 3
public async Task Login()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/AccountController.cs
22 5 2
public async Task ConfirmEmail()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/AccountController.cs
14 5 2
public async Task ExternalLoginCallback()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/AccountController.cs
29 5 1
public async Task AddressAndPayment()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/CheckoutController.cs
43 5 1
public async Task Details()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/OrdersController.cs
50 5 1
public static async Task InitializePartsUnlimitedDatabaseAsync()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Models/SampleData.cs
12 5 2
public int RemoveFromCart()
in Hands-on lab/lab-files/src/src/PartsUnlimited.Models/ShoppingCart.cs
20 4 1
public IActionResult Details()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Areas/Admin/Controllers/StoreManagerController.cs
19 4 1
public static IHtmlContent Script()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/ContentDeliveryNetworkExtensions.cs
21 4 2
public static IHtmlContent Styles()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/ContentDeliveryNetworkExtensions.cs
21 4 2
public async Task VerifyCode()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/AccountController.cs
18 4 1
public async Task ForgotPassword()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/AccountController.cs
19 4 1
public async Task ResetPassword()
in Hands-on lab/lab-files/src/src/PartsUnlimitedWebsite/Controllers/AccountController.cs
19 4 1