microsoft / BingMapsRESTToolkit
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 164 units with 3,787 lines of code in units (51.3% of code).
    • 0 very complex units (0 lines of code)
    • 7 complex units (950 lines of code)
    • 19 medium complex units (900 lines of code)
    • 23 simple units (797 lines of code)
    • 115 very simple units (1,140 lines of code)
0% | 25% | 23% | 21% | 30%
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% | 25% | 23% | 21% | 30%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source/Requests0% | 25% | 27% | 22% | 24%
Source/Extensions/TSP Resources0% | 69% | 11% | 14% | 4%
Source/Internal0% | 12% | 27% | 19% | 39%
Source/Models0% | 23% | 0% | 30% | 46%
Source/Models/ResponseModels0% | 0% | 36% | 14% | 49%
Source0% | 0% | 30% | 31% | 38%
Source/Extensions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private string GetTruckPostRequestBody()
in Source/Requests/RouteRequest.cs
192 50 2
public override async Task Solve()
in Source/Extensions/TSP Resources/GeneticTspAlgorithm.cs
225 38 2
public string GetPostRequestUrl()
in Source/Requests/ImageryRequest.cs
100 32 0
private static void Crossover()
in Source/Extensions/TSP Resources/GeneticTspAlgorithm.cs
106 29 8
public async Task Calculate()
in Source/Internal/TruckDistanceMatrixGenerator.cs
105 28 2
public override async Task Execute()
in Source/Requests/RouteRequest.cs
141 28 1
internal string GetUrlParam()
in Source/Models/RouteOptions.cs
81 27 1
public async Task Solve()
in Source/Extensions/TSP Resources/BaseTspAlgorithm.cs
57 23 5
private void GenerateIndex()
in Source/Models/ResponseModels/DistanceMatrix.cs
77 19 0
private static async Task ProcessAsyncResponse()
in Source/Internal/ServiceHelper.cs
42 18 2
private static async Task ProcessAsyncResponse()
in Source/Internal/ServiceHelper.cs
43 18 2
public override string GetRequestUrl()
in Source/Requests/IsochroneRequest.cs
65 18 0
private Task MergeRoutes()
in Source/Requests/RouteRequest.cs
79 16 1
public string GetPostRequestBody()
in Source/Requests/DistanceMatrixRequest.cs
74 15 0
public override string GetRequestUrl()
in Source/Requests/ImageryMetadataRequest.cs
47 15 0
33 14 1
public List GetElevationCoordinates()
in Source/Requests/ElevationRequest.cs
67 14 0
31 13 1
private static async Task MonitorAsyncStatus()
in Source/Internal/ServiceHelper.cs
46 13 3
public override string GetRequestUrl()
in Source/Requests/DistanceMatrixRequest.cs
47 13 0