microsoft / VSSDK-Extensibility-Samples
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,398 units with 17,209 lines of code in units (56.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 31 medium complex units (1,962 lines of code)
    • 88 simple units (3,154 lines of code)
    • 1,279 very simple units (12,093 lines of code)
0% | 0% | 11% | 18% | 70%
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% | 11% | 18% | 70%
cpp0% | 0% | 17% | 20% | 62%
h0% | 0% | 0% | 6% | 93%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ArchivedSamples0% | 0% | 15% | 18% | 66%
ErrorList0% | 0% | 38% | 7% | 53%
Code_Sweep0% | 0% | 4% | 27% | 68%
Combo_Box0% | 0% | 35% | 35% | 28%
Editor_With_Toolbox0% | 0% | 18% | 14% | 67%
MSDNSearch0% | 0% | 42% | 0% | 57%
Backwards_Compatible_AsyncPackage_20130% | 0% | 43% | 0% | 56%
Ook_Language_Integration0% | 0% | 15% | 9% | 74%
Diff_Classifier0% | 0% | 56% | 0% | 43%
AsyncCompletion0% | 0% | 18% | 6% | 74%
ROOT0% | 0% | 6% | 2% | 90%
WPFDesigner_XML0% | 0% | 0% | 20% | 79%
SqliteVisualizer0% | 0% | 0% | 23% | 76%
LanguageServerProtocol0% | 0% | 0% | 24% | 75%
Highlight_Word0% | 0% | 0% | 50% | 49%
Reference_Services0% | 0% | 0% | 26% | 73%
CodeLensOopSample0% | 0% | 0% | 0% | 100%
Intra-text_Adornment0% | 0% | 0% | 0% | 100%
LightBulb0% | 0% | 0% | 0% | 100%
Options0% | 0% | 0% | 0% | 100%
OperationProgress0% | 0% | 0% | 0% | 100%
Open_Folder_Extensibility0% | 0% | 0% | 0% | 100%
Menu_And_Commands0% | 0% | 0% | 0% | 100%
Typing_Speed_Meter0% | 0% | 0% | 0% | 100%
Backwards_Compatible_Editor_Command0% | 0% | 0% | 0% | 100%
AsyncPackageMigration0% | 0% | 0% | 0% | 100%
AsyncToolWindow0% | 0% | 0% | 0% | 100%
Todo_Classification0% | 0% | 0% | 0% | 100%
VisibilityConstraints0% | 0% | 0% | 0% | 100%
Windows_Forms_Controls_Installer0% | 0% | 0% | 0% | 100%
SingleFileGenerator0% | 0% | 0% | 0% | 100%
Caret_Fish_Eye0% | 0% | 0% | 0% | 100%
AsyncQuickInfo0% | 0% | 0% | 0% | 100%
CustomCommand0% | 0% | 0% | 0% | 100%
SolutionLoadEvents0% | 0% | 0% | 0% | 100%
Completion_Tooltip_Customization0% | 0% | 0% | 0% | 100%
ProtocolHandler0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void DoUpdate()
in ErrorList/C#/SpellChecker.cs
113 23 0
public int QueryEditFiles()
in ArchivedSamples/Source_Code_Control_Provider/C#/SccProviderService.cs
134 22 7
public int QueryEditFiles()
in ArchivedSamples/Source_Control_Provider_Status_Bar_Integration/C#/SccProviderService.cs
135 22 7
public string GetLockType()
in RunningDocumentTable(RDT)_Event_Explorer/C#/Helper/Event.cs
27 19 0
HBITMAP CDpiHelper::CreateDeviceFromLogicalImage()
in ArchivedSamples/High-DPI_Images_Icons/Cpp/VsUIDpiHelper.cpp
95 17 3
public IList GetClassificationSpans()
in Diff_Classifier/C#/DiffClassifier.cs
44 16 1
public override bool TryGetValue()
in ErrorList/C#/SpellingErrorsSnapshot.cs
76 16 3
public int OnQueryRemoveFiles()
in ArchivedSamples/Source_Code_Control_Provider/C#/SccProviderService.cs
79 15 6
public int OnQueryRemoveFiles()
in ArchivedSamples/Source_Control_Provider_Status_Bar_Integration/C#/SccProviderService.cs
79 15 6
public int QueryStatus()
in Editor_With_Toolbox/CS/EditorPane.cs
72 15 4
void RSSDownloadComplete()
in MSDNSearch/C#/MSDNSearch/MSDNSearchTask.cs
71 15 2
public string GetProjectFileName()
in ArchivedSamples/Source_Code_Control_Provider/C#/SccProvider.cs
38 14 1
private IList GetProjectItems()
in ArchivedSamples/Source_Code_Control_Provider/C#/SccProvider.cs
50 14 2
public int QuerySaveFiles()
in ArchivedSamples/Source_Code_Control_Provider/C#/SccProviderService.cs
64 14 6
public string GetProjectFileName()
in ArchivedSamples/Source_Control_Provider_Status_Bar_Integration/C#/SccProvider.cs
38 14 1
private IList GetProjectItems()
in ArchivedSamples/Source_Control_Provider_Status_Bar_Integration/C#/SccProvider.cs
50 14 2
public int QuerySaveFiles()
in ArchivedSamples/Source_Control_Provider_Status_Bar_Integration/C#/SccProviderService.cs
64 14 6
public override void Register()
in Backwards_Compatible_AsyncPackage_2013/BackwardsCompatibleAsyncPackage/AsyncPackageHelpers/AsyncPackageRegistrationAttribute.cs
69 14 1
private static IScanResult ScanFile()
in Code_Sweep/C#/Scanner/Scanner.cs
49 14 4
private void OnMenuMyDynamicCombo()
in Combo_Box/C#/VsPkg.cs
66 14 2