firebase / firebaseui-web
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,083 units with 9,638 lines of code in units (50.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (45 lines of code)
    • 16 medium complex units (861 lines of code)
    • 51 simple units (1,517 lines of code)
    • 1,015 very simple units (7,215 lines of code)
0% | <1% | 8% | 15% | 74%
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% | <1% | 8% | 15% | 74%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
javascript/utils0% | 4% | 0% | 8% | 86%
javascript/widgets0% | 0% | 16% | 22% | 61%
javascript/ui0% | 0% | 0% | 7% | 92%
javascript/testing0% | 0% | 0% | 12% | 87%
ROOT0% | 0% | 0% | 15% | 84%
firebase-externs0% | 0% | 0% | 0% | 100%
javascript/data0% | 0% | 0% | 0% | 100%
buildtools0% | 0% | 0% | 0% | 100%
soy0% | 0% | 0% | 0% | 100%
buildtools/country_data0% | 0% | 0% | 0% | 100%
javascript/externs0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
45 26 1
getPhoneAuthAvailableCountries()
in javascript/widgets/config.js
60 20 0
function()
in javascript/widgets/handler/callback.js
71 20 3
startSignIn()
in javascript/widgets/firebaseuihandler.js
64 16 2
var cb = function()
in javascript/widgets/authui.js
50 15 1
getProviderConfigs()
in javascript/widgets/config.js
31 14 0
selectTenant()
in javascript/widgets/firebaseuihandler.js
94 14 2
firebaseui.auth.widget.handler.handlePhoneSignInStart = function()
in javascript/widgets/handler/phonesigninstart.js
49 14 4
function doDispatchOperation()
in javascript/widgets/dispatcher.js
79 13 2
function()
in javascript/widgets/handler/common.js
45 13 3
var signInResultErrorCallback = function()
in javascript/widgets/handler/common.js
50 12 1
function()
in javascript/widgets/handler/common.js
34 12 1
var cb = function()
in javascript/widgets/authui.js
28 11 1
getProvidersForTenant()
in javascript/widgets/uihandlerconfig.js
41 11 2
34 11 3
function()
in javascript/widgets/handler/common.js
83 11 7
function()
in javascript/widgets/handler/phonesigninstart.js
48 11 1
var waitForTest = function()
in protractor_spec.js
26 10 3
element.phoneNumber.initPhoneNumberElement = function()
in javascript/ui/element/phonenumber.js
48 10 3
getPhoneAuthDefaultCountry()
in javascript/widgets/config.js
13 10 0