microsoft / EmbeddedSocial-SyncService-for-OBA
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 177 units with 2,505 lines of code in units (44.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (268 lines of code)
    • 21 simple units (610 lines of code)
    • 151 very simple units (1,627 lines of code)
0% | 0% | 10% | 24% | 64%
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% | 10% | 24% | 64%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Tools0% | 0% | 64% | 7% | 27%
PublishToEmbeddedSocial0% | 0% | 8% | 62% | 28%
OBAClient0% | 0% | 14% | 0% | 85%
Storage0% | 0% | 0% | 21% | 78%
Utils0% | 0% | 0% | 34% | 65%
OBADownload0% | 0% | 0% | 51% | 48%
Email0% | 0% | 0% | 0% | 100%
Diff0% | 0% | 0% | 0% | 100%
WorkerRole0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private static void ParseArgs()
in code/Tools/Ops/ManageServerState/Program.cs
86 19 1
public static async Task AsyncMain()
in code/Tools/Ops/ManageServerState/Program.cs
65 16 1
private static async Task ValidateAndPrintConfiguration()
in code/Tools/Ops/ManageServerState/Program.cs
38 13 2
private async Task DeleteTopic()
in code/PublishToEmbeddedSocial/EmbeddedSocial/EmbeddedSocial.cs
43 12 1
internal async Task SendAndReceiveAsync()
in code/OBAClient/Client/ClientHelper.cs
36 11 0
public static async Task DownloadAndStore()
in code/OBADownload/Components/DownloadRegionsList.cs
39 9 4
private async Task CreateTopic()
in code/PublishToEmbeddedSocial/EmbeddedSocial/EmbeddedSocial.cs
51 9 4
private async Task UpdateTopic()
in code/PublishToEmbeddedSocial/EmbeddedSocial/EmbeddedSocial.cs
36 9 4
private async Task GetTopic()
in code/PublishToEmbeddedSocial/EmbeddedSocial/EmbeddedSocial.cs
31 9 1
public async Task CreateTables()
in code/Storage/StorageManager.cs
37 9 0
private static void DisplayWarning()
in code/Tools/Ops/ManageServerState/Program.cs
21 9 0
public StorageManager()
in code/Storage/StorageManager.cs
30 8 3
public static string TableName()
in code/Storage/TableNames.cs
22 8 2
private void CheckInputEntity()
in code/PublishToEmbeddedSocial/EmbeddedSocial/Route.cs
23 7 1
public static string RemoveHashtags()
in code/Utils/TopicUtils.cs
20 7 1
public static async Task PublishRoutesToEmbeddedSocial()
in code/PublishToEmbeddedSocial/Components/PublishRoutes.cs
28 6 6
public static async Task PublishRoutesToEmbeddedSocial()
in code/PublishToEmbeddedSocial/Components/PublishRoutes.cs
43 6 7
public static async Task PublishStopsToEmbeddedSocial()
in code/PublishToEmbeddedSocial/Components/PublishStops.cs
27 6 6
public static async Task PublishStopsToEmbeddedSocial()
in code/PublishToEmbeddedSocial/Components/PublishStops.cs
43 6 6
private async Task CreateEmbeddedSocialAuth()
in code/PublishToEmbeddedSocial/EmbeddedSocial/EmbeddedSocial.cs
22 6 2