firebase / quickstart-android
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 676 units with 6,058 lines of code in units (55.9% 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)
    • 8 simple units (331 lines of code)
    • 668 very simple units (5,727 lines of code)
0% | 0% | 0% | 5% | 94%
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
java0% | 0% | 0% | 7% | 92%
kt0% | 0% | 0% | 1% | 98%
py0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
auth0% | 0% | 0% | 6% | 93%
firestore0% | 0% | 0% | 6% | 93%
messaging0% | 0% | 0% | 29% | 70%
storage0% | 0% | 0% | 6% | 93%
database0% | 0% | 0% | 0% | 100%
analytics0% | 0% | 0% | 0% | 100%
perf0% | 0% | 0% | 0% | 100%
dynamiclinks0% | 0% | 0% | 0% | 100%
internal0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
inappmessaging0% | 0% | 0% | 0% | 100%
functions0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private void updateUI()
in auth/app/src/main/java/com/google/firebase/quickstart/auth/java/PhoneAuthFragment.java
49 10 3
fun getSearchDescription()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/kotlin/Filters.kt
28 8 1
public String getSearchDescription()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/java/Filters.java
28 8 1
public void onViewCreated()
in auth/app/src/main/java/com/google/firebase/quickstart/auth/java/PhoneAuthFragment.java
71 7 2
public void onEvent()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/java/adapter/FirestoreAdapter.java
22 6 2
protected void onCreate()
in storage/app/src/main/java/com/google/firebase/quickstart/firebasestorage/java/MainActivity.java
39 6 1
private void updateUI()
in auth/app/src/main/java/com/google/firebase/quickstart/auth/java/MultiFactorFragment.java
38 6 1
protected void onCreate()
in messaging/app/src/main/java/com/google/firebase/quickstart/fcm/java/MainActivity.java
56 6 1
override fun onFilter()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/kotlin/MainFragment.kt
21 5 1
private void onSignInResult()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/java/MainFragment.java
14 5 1
public void onFilter()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/java/MainFragment.java
21 5 1
def regionsInFile()
in scripts/checksnippets.py
16 5 1
override fun onCreate()
in messaging/app/src/main/java/com/google/firebase/quickstart/fcm/kotlin/MainActivity.kt
43 5 1
override fun visitImportStatement()
in internal/lint/src/main/java/com/firebase/lint/InvalidImportDetector.kt
18 5 1
override fun onEvent()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/kotlin/adapter/FirestoreAdapter.kt
19 4 2
private void onAddItemsClicked()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/java/MainFragment.java
23 4 0
public static String getPriceString()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/java/util/RestaurantUtil.java
11 4 1
private int getSelectedPrice()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/java/FilterDialogFragment.java
12 4 0
private String getSelectedSortBy()
in firestore/app/src/main/java/com/google/firebase/example/fireeats/java/FilterDialogFragment.java
11 4 0
def findFileWithPattern()
in scripts/checksnippets.py
8 4 2