firebase / firebase-testlab-instr-lib
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 38 units with 489 lines of code in units (72.1% 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)
    • 2 simple units (61 lines of code)
    • 36 very simple units (428 lines of code)
0% | 0% | 0% | 12% | 87%
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% | 12% | 87%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
notepad/app/src/main/java/com/example/android/notepad0% | 0% | 0% | 13% | 86%
firebase-testlab-instr-lib/testlab-instr-lib/src/main/java/com/google/firebase/testlab/screenshot0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public Uri insert()
in notepad/app/src/main/java/com/example/android/notepad/NotePadProvider.java
33 8 2
private final void saveNote()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
28 7 0
private static boolean isJUnit4Test()
in firebase-testlab-instr-lib/testlab-instr-lib/src/main/java/com/google/firebase/testlab/screenshot/FirebaseScreenCaptureProcessor.java
14 5 2
public Cursor query()
in notepad/app/src/main/java/com/example/android/notepad/NotePadProvider.java
29 5 5
protected void onCreate()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
28 5 1
protected void onResume()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
23 5 0
public boolean onOptionsItemSelected()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
17 5 1
protected String getDefaultFilename()
in firebase-testlab-instr-lib/testlab-instr-lib/src/main/java/com/google/firebase/testlab/screenshot/FirebaseScreenCaptureProcessor.java
11 4 0
public String getType()
in notepad/app/src/main/java/com/example/android/notepad/NotePadProvider.java
11 4 1
public int delete()
in notepad/app/src/main/java/com/example/android/notepad/NotePadProvider.java
18 4 3
public int update()
in notepad/app/src/main/java/com/example/android/notepad/NotePadProvider.java
18 4 4
protected void onPause()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
11 4 0
private final void cancelNote()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
15 4 0
public boolean onContextItemSelected()
in notepad/app/src/main/java/com/example/android/notepad/NotesList.java
20 4 1
public boolean onPrepareOptionsMenu()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
17 3 1
public void onCreateContextMenu()
in notepad/app/src/main/java/com/example/android/notepad/NotesList.java
21 3 3
protected void onListItemClick()
in notepad/app/src/main/java/com/example/android/notepad/NotesList.java
9 3 4
protected void onDraw()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
10 2 1
private final void deleteNote()
in notepad/app/src/main/java/com/example/android/notepad/NoteEditor.java
8 2 0
protected void onResume()
in notepad/app/src/main/java/com/example/android/notepad/TitleEditor.java
7 2 0