firebase / friendlyeats-android
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 123 units with 754 lines of code in units (67.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (115 lines of code)
    • 11 small units (145 lines of code)
    • 108 very small units (494 lines of code)
0% | 0% | 15% | 19% | 65%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 15% | 19% | 65%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
fireeats0% | 0% | 19% | 24% | 56%
fireeats/adapter0% | 0% | 25% | 0% | 75%
fireeats/util0% | 0% | 0% | 35% | 64%
fireeats/model0% | 0% | 0% | 0% | 100%
fireeats/viewmodel0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected void onCreate()
in app/src/main/java/com/google/firebase/example/fireeats/RestaurantDetailActivity.java
40 3 1
public String getSearchDescription()
in app/src/main/java/com/google/firebase/example/fireeats/Filters.java
28 8 1
private void initRecyclerView()
in app/src/main/java/com/google/firebase/example/fireeats/MainActivity.java
24 3 0
public void bind()
in app/src/main/java/com/google/firebase/example/fireeats/adapter/RestaurantAdapter.java
23 2 2
public void onRating()
in app/src/main/java/com/google/firebase/example/fireeats/RestaurantDetailActivity.java
20 1 1
public static Restaurant getRandom()
in app/src/main/java/com/google/firebase/example/fireeats/util/RestaurantUtil.java
17 1 1
protected void onCreate()
in app/src/main/java/com/google/firebase/example/fireeats/MainActivity.java
17 1 1
public boolean onOptionsItemSelected()
in app/src/main/java/com/google/firebase/example/fireeats/MainActivity.java
12 3 1
public View onCreateView()
in app/src/main/java/com/google/firebase/example/fireeats/FilterDialogFragment.java
12 1 3
private int getSelectedPrice()
in app/src/main/java/com/google/firebase/example/fireeats/FilterDialogFragment.java
12 4 0
private void onRestaurantLoaded()
in app/src/main/java/com/google/firebase/example/fireeats/RestaurantDetailActivity.java
11 1 1
public static String getPriceString()
in app/src/main/java/com/google/firebase/example/fireeats/util/RestaurantUtil.java
11 4 1
public void onStart()
in app/src/main/java/com/google/firebase/example/fireeats/MainActivity.java
11 3 0
private String getSelectedSortBy()
in app/src/main/java/com/google/firebase/example/fireeats/FilterDialogFragment.java
11 4 0
public Filters getFilters()
in app/src/main/java/com/google/firebase/example/fireeats/FilterDialogFragment.java
11 2 0
public void onClick()
in app/src/main/java/com/google/firebase/example/fireeats/RestaurantDetailActivity.java
10 3 1
private void startSignIn()
in app/src/main/java/com/google/firebase/example/fireeats/MainActivity.java
10 1 0
public void onClick()
in app/src/main/java/com/google/firebase/example/fireeats/FilterDialogFragment.java
10 3 1
public View onCreateView()
in app/src/main/java/com/google/firebase/example/fireeats/RatingDialogFragment.java
10 1 3
public void onClick()
in app/src/main/java/com/google/firebase/example/fireeats/RatingDialogFragment.java
10 3 1