microsoft / NoSQLProvider
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 83 units with 1,049 lines of code in units (31.7% of code).
    • 1 very complex units (318 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (34 lines of code)
    • 8 simple units (129 lines of code)
    • 73 very simple units (568 lines of code)
30% | 0% | 3% | 12% | 54%
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
ts30% | 0% | 3% | 12% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src30% | 0% | 3% | 12% | 54%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
protected _upgradeDb()
in src/SqlProviderBase.ts
318 65 3
private _checkNextTransactions()
in src/TransactionLockHelper.ts
34 12 0
function getBrowserInfo()
in src/IndexedDbProvider.ts
21 9 0
private _handleQuery()
in src/SqlProviderBase.ts
20 8 5
private _calcChunkedData()
in src/InMemoryProvider.ts
31 7 0
constructor()
in src/IndexedDbProvider.ts
15 7 2
private _getRangeChecks()
in src/SqlProviderBase.ts
14 7 4
private _getKeysForRange()
in src/InMemoryProvider.ts
7 6 5
export function isIE()
in src/NoSqlProviderUtils.ts
4 6 0
17 6 1
private _returnResultsFromKeys()
in src/InMemoryProvider.ts
14 5 5
10 5 2
static iterateOverCursorRequest()
in src/IndexedDbProvider.ts
28 5 2
export function isSafari()
in src/NoSqlProviderUtils.ts
5 5 0
13 5 1
21 5 1
private _getDbVersion()
in src/SqlProviderBase.ts
12 5 0
protected _ourVersionChecker()
in src/SqlProviderBase.ts
20 5 1
export function getWindow()
in src/get-window.ts
8 5 0
private _isGetAllApiAvailable()
in src/IndexedDbProvider.ts
3 4 2