microsoft / xbox-live-trace-analyzer
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 202 units with 3,419 lines of code in units (66.4% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (133 lines of code)
    • 9 medium complex units (677 lines of code)
    • 20 simple units (758 lines of code)
    • 172 very simple units (1,851 lines of code)
0% | 3% | 19% | 22% | 54%
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% | 5% | 26% | 25% | 42%
js0% | 0% | 0% | 12% | 87%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source/RulesEngine0% | 9% | 22% | 19% | 48%
Source/Rules0% | 0% | 32% | 29% | 37%
Source0% | 0% | 86% | 0% | 13%
Source/Reports0% | 0% | 0% | 59% | 40%
Source/html-report/js0% | 0% | 0% | 12% | 87%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public static ServiceCallItem FromJson()
in Source/RulesEngine/ServiceCallItem.cs
133 32 1
static bool ParseArguments()
in Source/AnalyzerMain.cs
115 24 1
override public RuleResult Run()
in Source/Rules/CallFrequencyRule.cs
66 15 2
public static ServiceCallItem FromFiddlerFrame()
in Source/RulesEngine/ServiceCallItem.cs
121 15 5
private void ConvertCS2ToEvent()
in Source/RulesEngine/ServiceCallData.cs
72 14 1
public static bool IsAnalyzedService()
in Source/RulesEngine/Utils.cs
75 14 2
public void LoadRules()
in Source/RulesEngine/TraceAnalyzer.cs
57 13 1
public override RuleResult Run()
in Source/Rules/BatchFrequencyRule.cs
72 12 2
public override RuleResult Run()
in Source/Rules/PollingDetectionRule.cs
48 11 2
override public RuleResult Run()
in Source/Rules/RepeatedCallsRule.cs
51 11 2
public void RunReport()
in Source/Reports/CallReport.cs
61 10 3
public JObject ReportRule()
in Source/Reports/PerEndpointJsonReport.cs
58 10 1
public override RuleResult Run()
in Source/Rules/ThrottledCallsRule.cs
59 10 2
public void DeserializeFiddlerTrace()
in Source/RulesEngine/ServiceCallData.cs
55 10 2
public override RuleResult Run()
in Source/Rules/SmallBatchDetectionRule.cs
53 9 2
private void ConvertCS1ToEvent()
in Source/RulesEngine/ServiceCallData.cs
46 9 1
public static void PrintCallIdRange()
in Source/RulesEngine/Utils.cs
45 8 3
public static int FindFirstMatch()
in Source/RulesEngine/Utils.cs
14 8 2
List GenerateSequences()
in Source/Rules/PollingDetectionRule.cs
26 7 2
public void DeserializeCSV()
in Source/RulesEngine/ServiceCallData.cs
32 7 1