microsoft / vscode-node-sqlite3
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 148 units with 1,867 lines of code in units (60.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (109 lines of code)
    • 20 simple units (502 lines of code)
    • 125 very simple units (1,256 lines of code)
0% | 0% | 5% | 26% | 67%
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
cc0% | 0% | 7% | 28% | 63%
js0% | 0% | 0% | 31% | 68%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 6% | 26% | 67%
lib0% | 0% | 0% | 42% | 57%
benchmark0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void Database::Process()
in src/database.cc
35 15 0
void Database::Schedule()
in src/database.cc
25 11 3
bool Statement::Bind()
in src/statement.cc
49 11 1
29 9 0
void Statement::AsyncEach()
in src/statement.cc
39 9 1
void Statement::CleanQueue()
in src/statement.cc
29 9 0
void Statement::GetRow()
in src/statement.cc
33 8 2
Database: function()
in lib/sqlite3.js
20 7 3
23 7 0
22 7 3
void Statement::Work_Get()
in src/statement.cc
17 7 2
30 7 2
23 6 0
void Backup::Process()
in src/backup.cc
10 6 0
21 6 2
28 6 3
30 6 3
24 6 3
24 6 3
void Statement::Process()
in src/statement.cc
10 6 0