microsoft / xbox-live-developer-tools
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 269 units with 4,486 lines of code in units (53.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 7 medium complex units (447 lines of code)
    • 22 simple units (921 lines of code)
    • 240 very simple units (3,118 lines of code)
0% | 0% | 9% | 20% | 69%
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% | 9% | 20% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
CommandLine/XblConfig0% | 0% | 18% | 32% | 49%
Tools/MultiplayerSessionHistoryViewer0% | 0% | 8% | 25% | 66%
CommandLine/XblPlayerDataReset0% | 0% | 71% | 0% | 28%
CommandLine/GlobalStorage0% | 0% | 57% | 0% | 42%
Microsoft.Xbox.Service.DevTools/PlayerReset0% | 0% | 42% | 0% | 57%
Powershell/XblConfig0% | 0% | 0% | 31% | 68%
Microsoft.Xbox.Service.DevTools/Authentication0% | 0% | 0% | 16% | 83%
CommandLine/XblConnectedStorage0% | 0% | 0% | 50% | 49%
Microsoft.Xbox.Service.DevTools/Common0% | 0% | 0% | 12% | 87%
Microsoft.Xbox.Service.DevTools/XblConfig0% | 0% | 0% | 0% | 100%
Microsoft.Xbox.Service.DevTools/TitleStorage0% | 0% | 0% | 0% | 100%
CommandLine/XblDevAccount0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static async Task Main()
in CommandLine/GlobalStorage/Program.cs
76 16 1
private static async Task OnReset()
in CommandLine/XblPlayerDataReset/Program.cs
78 13 1
private static async Task SubmitJobAndPollStatus()
in Microsoft.Xbox.Service.DevTools/PlayerReset/PlayerReset.cs
56 13 3
private static async Task Main()
in CommandLine/XblConfig/Program.cs
79 12 1
private async void ListView2_SelectedIndexChanged()
in Tools/MultiplayerSessionHistoryViewer/Form1.cs
71 12 2
private static IEnumerable SortAndFilterProperties()
in CommandLine/XblConfig/ObjectPrinter.cs
41 11 2
private async void ListView1_SelectedIndexChanged()
in Tools/MultiplayerSessionHistoryViewer/Form1.cs
46 11 2
internal TestAccount()
in Microsoft.Xbox.Service.DevTools/Authentication/TestAccount.cs
37 10 1
protected override void Process()
in Powershell/XblConfig/GetDocuments.cs
52 10 0
private void DisplayDiffPiece()
in Tools/MultiplayerSessionHistoryViewer/Form1.cs
37 10 3
private async void SaveSessionHistoryToolStripMenuItem_Click()
in Tools/MultiplayerSessionHistoryViewer/Form1.cs
73 9 2
public int Compare()
in Tools/MultiplayerSessionHistoryViewer/Form1.cs
49 9 2
private static async Task GetDocumentsAsync()
in CommandLine/XblConfig/Program.cs
45 8 1
private static async Task Main()
in CommandLine/XblConnectedStorage/Program.cs
55 8 1
private static void ExtractCorrelationId()
in Microsoft.Xbox.Service.DevTools/Common/XboxLiveHttpRequest.cs
20 8 2
protected override void Process()
in Powershell/XblConfig/SaveDocuments.cs
43 8 0
private async Task SearchForHistoricalDocumentsAsync()
in Tools/MultiplayerSessionHistoryViewer/Form1.cs
63 8 2
private void LoadSessionHistoryToolStripMenuItem_Click()
in Tools/MultiplayerSessionHistoryViewer/Form1.cs
71 8 2
public static string Print()
in CommandLine/XblConfig/ObjectPrinter.cs
43 7 2
private static async Task CommitDocumentsAsync()
in CommandLine/XblConfig/Program.cs
41 7 1