microsoft / ManagedEsent
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 6,639 units with 71,855 lines of code in units (64.6% of code).
    • 2 very complex units (1,071 lines of code)
    • 8 complex units (1,002 lines of code)
    • 32 medium complex units (1,524 lines of code)
    • 100 simple units (3,466 lines of code)
    • 6,497 very simple units (64,792 lines of code)
1% | 1% | 2% | 4% | 90%
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
cs1% | 1% | 2% | 4% | 90%
py0% | 0% | 0% | 7% | 92%
cpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
EsentInterop5% | <1% | 2% | 6% | 85%
Pixie3% | 1% | 1% | 1% | 91%
EsentInteropTests0% | <1% | 0% | 1% | 97%
isamunittests0% | 19% | 0% | 7% | 72%
isam0% | 6% | 8% | 20% | 65%
EsentCollections0% | 0% | 14% | 17% | 68%
EsentInteropSamples0% | 0% | 8% | 4% | 86%
EsentCollectionsTests0% | 0% | 1% | 4% | 94%
Esedb0% | 0% | 0% | 7% | 92%
PixieSamples0% | 0% | 0% | 0% | 100%
EsentCollectionsSamples0% | 0% | 0% | 0% | 100%
UWPSample0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
808 398 1
int Scan()
in Pixie/SqlScanner.cs
263 152 0
public bool Equals()
in EsentInterop/jet_dbinfomisc.cs
49 41 1
134 34 1
private void ValidateTableDefinition()
in isam/TemporaryDatabase.cs
121 31 1
138 30 1
private int RunTests()
in EsentInteropTests/EseInteropTestHelper.cs
148 27 1
public static int TestRunnerMain()
in EsentInteropTests/EseInteropTestHelper.cs
132 27 1
private int RunTests()
in isamunittests/IsamTestHelper.cs
148 27 1
public static int TestRunnerMain()
in isamunittests/IsamTestHelper.cs
132 27 1
public override int Read()
in Pixie/SqlScanner.cs
59 23 0
private void DumpToCsv()
in EsentInteropSamples/DbUtil/DumpToCsv.cs
88 21 1
60 21 3
private static Key UpperIntersection()
in EsentCollections/KeyRange.cs
51 20 2
77 19 1
public bool ContentEquals()
in EsentInterop/jet_tablecreate.cs
28 18 1
internal Columnid()
in isam/Columnid.cs
62 18 4
private static KeyRange GetKeyRangeOfSubtree()
in EsentCollections/PredicateExpressionEvaluator.cs
65 17 2
private static bool HasNoParameterAccess()
in EsentCollections/ConstantExpressionEvaluator.cs
53 16 1
private static Key UpperUnion()
in EsentCollections/KeyRange.cs
43 16 2