microsoft / Dynamics365FO-AppChecker
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 1,709 units with 20,032 lines of code in units (58.9% of code).
    • 1 very complex units (491 lines of code)
    • 3 complex units (549 lines of code)
    • 17 medium complex units (1,273 lines of code)
    • 25 simple units (780 lines of code)
    • 1,663 very simple units (16,939 lines of code)
2% | 2% | 6% | 3% | 84%
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
go72% | 0% | 0% | 4% | 23%
cs0% | 2% | 6% | 3% | 87%
py0% | 7% | 8% | 5% | 78%
js0% | 0% | 0% | 28% | 71%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Extractors/Go72% | 0% | 0% | 4% | 23%
tools/Explorer0% | 15% | 12% | 13% | 58%
Extractors/Python0% | 7% | 8% | 5% | 78%
tools/Graph Explorer0% | 0% | 23% | 13% | 62%
tools/AstVisualizer0% | 0% | 2% | <1% | 97%
tools/Workflows0% | 0% | 33% | 0% | 66%
tools/BaseXInterface0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
func Walk()
in Extractors/Go/walker.go
491 137 4
public ViewModel()
in tools/Explorer/ViewModels/ViewModel.cs
425 37 2
def visitExpression()
in Extractors/Python/extractor/xmlnodegenerator.py
67 31 2
def visitStatement()
in Extractors/Python/extractor/xmlnodegenerator.py
57 26 2
public static string GenerateHtml()
in tools/Graph Explorer/GraphExplorer/Models/Model.cs
171 22 1
public static string GenerateJSON()
in tools/Graph Explorer/GraphExplorer/Models/Model.cs
122 18 1
public EditorViewModel()
in tools/Graph Explorer/GraphExplorer/ViewModels/EditorViewModel.cs
134 18 2
public ViewModel()
in tools/AstVisualizer/AstVisualizer/ViewModel/ViewModel.cs
207 17 2
private Size MeasureHorizontal()
in tools/Explorer/TabControl/TabPanel.cs
85 15 1
public static void Main()
in tools/Workflows/BulkQuery/Program.cs
83 15 10
def extractor()
in Extractors/Python/extractor/pythonextractor.py
34 14 0
def visitBinOpExpression()
in Extractors/Python/extractor/xmlnodegenerator.py
36 14 2
public void Draw()
in tools/AstVisualizer/AstVisualizer/Views/TextMarkerService.cs
62 14 2
public void AddTabItem()
in tools/Explorer/TabControl/TabControl.cs
37 14 0
private Size MeasureVertical()
in tools/Explorer/TabControl/TabPanel.cs
83 14 1
public void Draw()
in tools/Explorer/Views/TextMarkerService.cs
62 14 2
def visitAugmentedAssignmentStatement()
in Extractors/Python/extractor/xmlnodegenerator.py
33 13 2
protected override void OnPreviewKeyDown()
in tools/Explorer/TabControl/TabControl.cs
42 13 1
def indent()
in Extractors/Python/extractor/generator.py
15 12 2
protected override Size ArrangeOverride()
in tools/Explorer/TabControl/TabPanel.cs
45 12 1