microsoft / SqlNexus
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 661 units with 15,010 lines of code in units (71.5% of code).
    • 4 very complex units (2,271 lines of code)
    • 4 complex units (794 lines of code)
    • 24 medium complex units (1,911 lines of code)
    • 51 simple units (1,786 lines of code)
    • 578 very simple units (8,248 lines of code)
15% | 5% | 12% | 11% | 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
cs15% | 5% | 12% | 11% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
sqlnexus15% | 3% | 11% | 10% | 58%
RowsetImportEngine18% | 15% | 20% | 10% | 35%
ReadTraceNexusImporter0% | 0% | 48% | 19% | 32%
NexusInterfaces0% | 0% | 0% | 40% | 59%
sqlnexus/ClickOnce0% | 0% | 0% | 31% | 68%
PerfmonImporter0% | 0% | 0% | 0% | 100%
BulkLoadEx0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private bool DrillThrough()
in sqlnexus/fmNexus.cs
1537 156 2
public static bool GetReportParameters()
in sqlnexus/fmReportParameters.cs
345 63 4
private void ProcessFile()
in RowsetImportEngine/TextRowsetImporter.cs
198 52 0
private bool ReadRowsetPropertiesFromXml()
in RowsetImportEngine/TextRowsetImporter.cs
191 52 2
private bool ReadRowsetPropertiesFromXml()
in RowsetImportEngine/TextRowsetImporter2.cs
168 47 2
private void ProcessFile()
in RowsetImportEngine/TextRowsetImporter2.cs
158 43 0
private void DoImport()
in sqlnexus/fmImport.cs
309 38 0
public static bool GetReportParameters()
in sqlnexus/fmParameters.cs
159 29 2
private bool CheckForRowsetStart()
in RowsetImportEngine/TextRowsetImporter2.cs
83 23 4
private void fmNexus_Load()
in sqlnexus/fmNexus.cs
126 19 2
private bool EnumProducers()
in sqlnexus/fmMain.cs
77 18 0
private bool EnumAnalyzers()
in sqlnexus/fmMain.cs
77 18 0
89 17 3
public static string GetQueryText()
in sqlnexus/fmnexus.as.resource.cs
84 17 3
private void CreateTable()
in RowsetImportEngine/TextRowsetImporter.cs
62 16 0
private bool CheckForRowsetStart()
in RowsetImportEngine/TextRowsetImporter.cs
52 16 4
41 16 2
public void SelectLoadReport()
in sqlnexus/fmnexus.as.resource.cs
111 16 3
public bool DoImport()
in ReadTraceNexusImporter/ReadTraceNexusImporter.cs
67 15 0
private void InsertRow()
in RowsetImportEngine/TextRowsetImporter2.cs
71 15 0