firebase / quickstart-js
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 123 units with 1,343 lines of code in units (18.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 4 simple units (96 lines of code)
    • 119 very simple units (1,247 lines of code)
0% | 0% | 0% | 7% | 92%
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
js0% | 0% | 0% | 7% | 92%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
firestore/scripts0% | 0% | 0% | 13% | 86%
auth/chromextension0% | 0% | 0% | 32% | 67%
auth0% | 0% | 0% | 0% | 100%
database/scripts0% | 0% | 0% | 0% | 100%
functions/public0% | 0% | 0% | 0% | 100%
functions/functions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
FriendlyEats.prototype.viewList = function()
in firestore/scripts/FriendlyEats.View.js
34 9 2
FriendlyEats.prototype.getFilteredRestaurants = function()
in firestore/scripts/FriendlyEats.Data.js
18 6 2
FriendlyEats.prototype.updateQuery = function()
in firestore/scripts/FriendlyEats.View.js
24 6 1
function startAuth()
in auth/chromextension/credentials.js
20 6 1
var renderResults = function()
in firestore/scripts/FriendlyEats.View.js
32 5 1
function onUnenroll()
in auth/mfa-password.js
15 5 1
function toggleStar()
in database/scripts/main.js
17 5 2
FriendlyEats.prototype.getDocumentsInQuery = function()
in firestore/scripts/FriendlyEats.Data.js
12 4 2
FriendlyEats.prototype.viewSetup = function()
in firestore/scripts/FriendlyEats.View.js
32 4 0
function updateMfaDialog()
in auth/mfa-password.js
31 4 0
function onEnrollSendCode()
in auth/mfa-password.js
22 4 1
function onEnrollVerifyCode()
in auth/mfa-password.js
19 4 1
function createPostElement()
in database/scripts/main.js
70 4 6
function onAuthStateChanged()
in database/scripts/main.js
15 4 1
var rate = function()
in firestore/scripts/FriendlyEats.View.js
13 3 0
var displaySection = function()
in firestore/scripts/FriendlyEats.View.js
12 3 1
FriendlyEats.prototype.renderTemplate = function()
in firestore/scripts/FriendlyEats.View.js
10 3 2
FriendlyEats.prototype.render = function()
in firestore/scripts/FriendlyEats.View.js
20 3 2
FriendlyEats.prototype.renderRating = function()
in firestore/scripts/FriendlyEats.View.js
13 3 1
FriendlyEats.prototype.addMockRestaurants = function()
in firestore/scripts/FriendlyEats.Mock.js
32 3 0