firebase / quickstart-cpp
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 331 units with 2,879 lines of code in units (37.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)
    • 3 simple units (81 lines of code)
    • 328 very simple units (2,798 lines of code)
0% | 0% | 0% | 2% | 97%
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% | 0% | 3% | 96%
mm0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
messaging0% | 0% | 0% | 11% | 88%
auth0% | 0% | 0% | 4% | 95%
storage0% | 0% | 0% | 6% | 93%
database0% | 0% | 0% | 0% | 100%
dynamic_links0% | 0% | 0% | 0% | 100%
firestore0% | 0% | 0% | 0% | 100%
admob0% | 0% | 0% | 0% | 100%
functions0% | 0% | 0% | 0% | 100%
analytics0% | 0% | 0% | 0% | 100%
remote_config0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
std::string PathForResource()
in storage/testapp/src/desktop/desktop_main.cc
25 9 0
static bool WaitForFuture()
in auth/testapp/src/common_main.cc
27 7 4
static bool WaitForFuture()
in messaging/testapp/src/common_main.cc
29 7 4
bool Await()
in firestore/testapp/src/common_main.cc
17 5 2
void initGameCenter()
in auth/testapp/src/ios/ios_main.mm
18 5 1
static bool WaitForSignInFuture()
in auth/testapp/src/common_main.cc
15 5 4
static bool WaitForSignInFuture()
in auth/testapp/src/common_main.cc
15 5 4
static void LogVariantVector()
in auth/testapp/src/common_main.cc
19 5 2
static void LogVariantMap()
in auth/testapp/src/common_main.cc
23 5 2
void Await()
in firestore/testapp/src/common_main.cc
10 4 2
void WaitForCompletion()
in storage/testapp/src/common_main.cc
11 4 2
public static void initLogWindow()
in storage/testapp/src/android/java/com/google/firebase/example/LoggingUtils.java
36 4 2
std::string ReadTextInput()
in auth/testapp/src/ios/ios_main.mm
38 4 3
void CompleteTest()
in auth/testapp/src/common_main.cc
9 4 3
void CompleteTest()
in auth/testapp/src/common_main.cc
9 4 3
public static String readText()
in auth/testapp/src/android/java/com/google/firebase/example/TextEntryField.java
58 4 4
std::string ReadText()
in auth/testapp/src/android/android_main.cc
28 4 3
protected void onNewIntent()
in messaging/testapp/src/android/java/com/google/firebase/example/TestappNativeActivity.java
16 4 1
void WaitForCompletion()
in dynamic_links/testapp/src/common_main.cc
11 4 2
void WaitForCompletion()
in database/testapp/src/common_main.cc
11 4 2