microsoft / vscode-extension-telemetry
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 18 units with 239 lines of code in units (48.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (47 lines of code)
    • 4 simple units (96 lines of code)
    • 13 very simple units (96 lines of code)
0% | 0% | 19% | 40% | 40%
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
ts0% | 0% | 19% | 40% | 40%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/common0% | 0% | 22% | 45% | 32%
src/browser0% | 0% | 0% | 0% | 100%
src/node0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 18 most complex units
Unit# linesMcCabe index# params
private anonymizeFilePaths()
in src/common/baseTelemetryReporter.ts
47 16 2
private removePropertiesWithPossibleUserInfo()
in src/common/baseTelemetryReporter.ts
30 9 1
private shouldSendErrorTelemetry()
in src/common/baseTelemetryReporter.ts
18 7 0
private getCommonProperties()
in src/common/baseTelemetryReporter.ts
27 7 0
21 7 0
private cloneAndChange()
in src/common/baseTelemetryReporter.ts
9 5 3
private updateUserOptStatus()
in src/common/baseTelemetryReporter.ts
8 4 0
constructor()
in src/browser/telemetryReporter.ts
11 3 4
private cleanRemoteName()
in src/common/baseTelemetryReporter.ts
12 3 1
public sendTelemetryEvent()
in src/common/baseTelemetryReporter.ts
7 3 3
public sendRawTelemetryEvent()
in src/common/baseTelemetryReporter.ts
6 3 3
constructor()
in src/node/telemetryReporter.ts
11 3 4
constructor()
in src/common/baseTelemetryAppender.ts
7 2 2
async flush()
in src/common/baseTelemetryAppender.ts
7 2 0
private get extension()
in src/common/baseTelemetryReporter.ts
6 2 0
flush: async()
in src/browser/telemetryReporter.ts
3 1 0
private _flushQueues()
in src/common/baseTelemetryAppender.ts
6 1 0
flush: async()
in src/node/telemetryReporter.ts
3 1 0