aws-samples / legacy-cycle-store-mvc-app
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 24 units with 170 lines of code in units (8.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)
    • 0 simple units (0 lines of code)
    • 24 very simple units (170 lines of code)
0% | 0% | 0% | 0% | 100%
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% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
AdventureWorksMVC/Business0% | 0% | 0% | 0% | 100%
AdventureWorksMVC/Controllers0% | 0% | 0% | 0% | 100%
AdventureWorksMVC/App_Start0% | 0% | 0% | 0% | 100%
AdventureWorksMVC0% | 0% | 0% | 0% | 100%
AdventureWorksMVC/Helpers0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static List GetProductColor()
in AdventureWorksMVC/Business/ProductManager.cs
9 2 1
public static List GetProductWeight()
in AdventureWorksMVC/Business/ProductManager.cs
10 2 1
public static List GetProductWeightString()
in AdventureWorksMVC/Business/ProductManager.cs
11 2 1
public static List GetProductSize()
in AdventureWorksMVC/Business/ProductManager.cs
9 2 1
public static string GetProductDesc()
in AdventureWorksMVC/Business/ProductManager.cs
10 2 1
public static void RegisterRoutes()
in AdventureWorksMVC/App_Start/RouteConfig.cs
9 1 1
public static void RegisterGlobalFilters()
in AdventureWorksMVC/App_Start/FilterConfig.cs
4 1 1
public static void Register()
in AdventureWorksMVC/App_Start/WebApiConfig.cs
8 1 1
public static string WebResource()
in AdventureWorksMVC/Helpers/WebResource.cs
5 1 3
protected void Application_Start()
in AdventureWorksMVC/Global.asax.cs
7 1 0
public ActionResult HeaderLayout()
in AdventureWorksMVC/Controllers/SiteLayoutController.cs
5 1 0
public ActionResult FooterLayout()
in AdventureWorksMVC/Controllers/SiteLayoutController.cs
6 1 0
public ActionResult ContentLayout()
in AdventureWorksMVC/Controllers/SiteLayoutController.cs
6 1 0
public ActionResult Default()
in AdventureWorksMVC/Controllers/HomeController.cs
5 1 0
public ActionResult Default()
in AdventureWorksMVC/Controllers/ErrorController.cs
5 1 0
public ActionResult GenericError()
in AdventureWorksMVC/Controllers/ErrorController.cs
5 1 0
public static List GetMainCategories()
in AdventureWorksMVC/Business/CategoryManager.cs
6 1 0
public static ProductCategory GetCategoryByName()
in AdventureWorksMVC/Business/CategoryManager.cs
7 1 1
public static ProductSubcategory GetProductSubcategoryByName()
in AdventureWorksMVC/Business/CategoryManager.cs
7 1 1
public static List GetCategory()
in AdventureWorksMVC/Business/ProductManager.cs
5 1 1