microsoft / appcenter-sampleapp-react-native
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 31 units with 394 lines of code in units (43.2% 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)
    • 1 simple units (28 lines of code)
    • 30 very simple units (366 lines of code)
0% | 0% | 0% | 7% | 92%
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
tsx0% | 0% | 0% | 9% | 90%
java0% | 0% | 0% | 0% | 100%
m0% | 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
src/components0% | 0% | 0% | 23% | 76%
src/screens0% | 0% | 0% | 0% | 100%
android/app/src/main/java/com/appcentersample0% | 0% | 0% | 0% | 100%
ios/AppCenterSample0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
codePushStatusDidChange()
in src/components/codePush.tsx
28 9 1
public void showColoredEventsDialog()
in android/app/src/main/java/com/appcentersample/AppCenterSampleNativeModule.java
22 4 0
render()
in src/components/baseScreen.tsx
64 4 0
render()
in src/components/codePush.tsx
17 3 0
public AppCenterSampleNativeModule()
in android/app/src/main/java/com/appcentersample/AppCenterSampleNativeModule.java
3 1 1
public String getName()
in android/app/src/main/java/com/appcentersample/AppCenterSampleNativeModule.java
3 1 0
public List createNativeModules()
in android/app/src/main/java/com/appcentersample/AppCenterSamplePackage.java
5 1 1
public List createViewManagers()
in android/app/src/main/java/com/appcentersample/AppCenterSamplePackage.java
3 1 1
protected String getMainComponentName()
in android/app/src/main/java/com/appcentersample/MainActivity.java
3 1 0
protected ReactActivityDelegate createReactActivityDelegate()
in android/app/src/main/java/com/appcentersample/MainActivity.java
8 1 0
protected String getJSBundleFile()
in android/app/src/main/java/com/appcentersample/MainApplication.java
3 1 0
public boolean getUseDeveloperSupport()
in android/app/src/main/java/com/appcentersample/MainApplication.java
3 1 0
protected List getPackages()
in android/app/src/main/java/com/appcentersample/MainApplication.java
4 1 0
protected String getJSMainModuleName()
in android/app/src/main/java/com/appcentersample/MainApplication.java
3 1 0
public ReactNativeHost getReactNativeHost()
in android/app/src/main/java/com/appcentersample/MainApplication.java
3 1 0
public void onCreate()
in android/app/src/main/java/com/appcentersample/MainApplication.java
4 1 0
static void InitializeFlipper()
in ios/AppCenterSample/AppDelegate.m
9 1 1
int main()
in ios/AppCenterSample/main.m
5 1 2
6 1 0
getTransformModulePath()
in rn-cli.config.js
3 1 0