microsoft / VS-PPT
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 400 units with 5,066 lines of code in units (63.0% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (89 lines of code)
    • 19 medium complex units (1,013 lines of code)
    • 26 simple units (752 lines of code)
    • 353 very simple units (3,212 lines of code)
0% | 1% | 19% | 14% | 63%
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% | 1% | 19% | 14% | 63%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/Structure0% | 4% | 21% | 13% | 60%
src/MatchMargin0% | 0% | 39% | 16% | 44%
src/CopyAsHtml0% | 0% | 15% | 15% | 69%
src/TimeStampMargin0% | 0% | 26% | 0% | 73%
src/OptionsPage0% | 0% | 31% | 0% | 68%
src/FixMixedTabs0% | 0% | 19% | 9% | 70%
src/GoToDef0% | 0% | 17% | 15% | 66%
src/SyntacticFisheye0% | 0% | 44% | 0% | 55%
src/PeekF10% | 0% | 0% | 25% | 74%
src/MiddleClickScroll0% | 0% | 0% | 59% | 40%
src/TelemetryForPPT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private BlockType FindType()
in src/Structure/BlockTaggerImpl/VbParser.cs
43 31 1
protected override void ParseSyntaxNode()
in src/Structure/BlockTaggerImpl/VbParser.cs
46 26 5
public bool Next()
in src/Structure/BlockTaggerImpl/BraceParser.cs
68 23 0
private static BlockType FindType()
in src/Structure/BlockTaggerImpl/CsharpParser.cs
35 22 1
private void CreateBlockAdornments()
in src/Structure/StructureVisualizer/StructureAdornmentManager.cs
74 20 4
public static string CalculateLongestCommonWhitespacePrefix()
in src/CopyAsHtml/CopyAsHtml/HtmlMarkupProvider.cs
85 19 1
private void RedrawAdornments()
in src/MatchMargin/MatchMarginElement.cs
76 19 3
public override void PreprocessMouseMove()
in src/Structure/StructureVisualizer/StructureAdornmentManager.cs
65 17 1
public int Exec()
in src/CopyAsHtml/CopyAsHtml/CommandFilter.cs
62 16 5
protected override BlockType FindType()
in src/Structure/BlockTaggerImpl/CppParser.cs
15 16 2
private bool UpdateMatches()
in src/MatchMargin/MatchMarginElement.cs
59 15 1
public LineTransform GetLineTransform()
in src/SyntacticFisheye/SyntacticFisheyeLineTransformSource.cs
30 15 3
public bool UpdateTip()
in src/Structure/StructureVisualizer/StructureMarginElement.cs
43 14 3
private bool TryHighlightItemUnderMouse()
in src/GoToDef/GoToDefMouseHandler.cs
44 13 1
private void UpdateLineNumbers()
in src/TimeStampMargin/TimeStampMargin.cs
69 13 0
public BackgroundSearch()
in src/MatchMargin/MatchMarginElement.cs
49 12 4
public static bool HasMixedTabsAndSpaces()
in src/FixMixedTabs/Impl/MixedTabsDetector.cs
45 11 2
public OptionsControl()
in src/OptionsPage/OptionsControl.xaml.cs
56 11 2
public Task ParseAsync()
in src/Structure/BlockTaggerImpl/BraceParser.cs
59 11 2
protected override void ParseSyntaxNode()
in src/Structure/BlockTaggerImpl/CsharpParser.cs
39 11 5