57% mobile-builder

Code Review | Mobile builder

WordPress plugin Mobile builder scored 57% from 54 tests.

About plugin

  • Plugin page: mobile-builder
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Dec 30, 2020
  • Number of updates: 47
  • Update frequency: every 6.7 days
  • Top authors: rnlab (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 15,067 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼12.47ms] Passed 4 tests

Server-side resources used by Mobile builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.8045.46 ▼6.33
Dashboard /wp-admin4.11 ▲0.8048.24 ▲4.86
Posts /wp-admin/edit.php4.16 ▲0.8052.52 ▲6.62
Add New Post /wp-admin/post-new.php3.93 ▼1.9539.48 ▼54.05
Media Library /wp-admin/upload.php4.03 ▲0.8040.23 ▲5.65
Mobile Builder /wp-admin/options-general.php?page=mobile-builder4.0342.04

Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 146 new files
Database: 2 new tables, 7 new options
New tables
wp_mobile_builder
wp_mobile_builder_carts
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

Mobile builder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.74 ▼0.851.65 ▼1.3240.04 ▼10.33
Dashboard /wp-admin2,226 ▲415.83 ▲0.0299.12 ▲0.0639.01 ▼4.94
Posts /wp-admin/edit.php2,112 ▲232.02 ▲0.0240.05 ▲3.8635.31 ▼2.29
Add New Post /wp-admin/post-new.php45 ▼1,4880.44 ▼22.490.10 ▼642.549.64 ▼45.90
Media Library /wp-admin/upload.php1,408 ▲204.23 ▼0.01103.89 ▼6.7171.31 ▲21.00
Mobile Builder /wp-admin/options-general.php?page=mobile-builder1,4268.65157.7838.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_mobile_builder
    • wp_mobile_builder_carts
  • The uninstall procedure has failed, leaving 7 options in the database
    • recovery_mode_email_last_sent
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=mobile-builder
    • > Error in wp-content/plugins/mobile-builder/public/class-mobile-builder-public.php+100
    Uncaught Error: Class 'WC_REST_Product_Reviews_Controller' not found in wp-content/plugins/mobile-builder/public/class-mobile-builder-public.php:100
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): Mobile_Builder_Public->add_api_routes()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-includes/rest-api.php(587): do_action()
    #4 wp-includes/rest-api.php(411): rest_get_server()
    #5 wp-includes/class-wp-hook.php(310): rest_api_loaded()
    #6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #7 wp-includes/plugin.php(565): WP_Hook->do_action()
    #8 wp-includes/class-wp.php(398): do_action_ref_array()
    #9 wp-includes/class-wp.php(779): WP->parse_request()
    #10 wp-includes/functions.php(1335): WP->main()
    #11 /var

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mobile-builder/admin/partials/rnlab-app-control-admin-display.php
    • > /wp-content/plugins/mobile-builder/templates/checkout/form-checkout.php
    • > /wp-content/plugins/mobile-builder/product/partials/mobile-builder-product-display.php
    • > /wp-content/plugins/mobile-builder/public/partials/mobile-builder-public-display.php
  • 42× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphPage.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookAuthenticationException.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/HttpClients/FacebookGuzzleHttpClient.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\FacebookResponse' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/FacebookBatchResponse.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookOtherException.php:31
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\Url\\UrlDetectionInterface' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/Url/FacebookUrlDetectionHandler.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/Exceptions/FacebookServerException.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphObject.php:34
    • > PHP Fatal error
      Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/PseudoRandomString/McryptPseudoRandomStringGenerator.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/mobile-builder/vendor/facebook/graph-sdk/src/Facebook/GraphNodes/GraphUser.php:31

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=mobile-builder
    • > Network (severe)
    index.php/wp-json/mobile-builder/v1/settings - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: mobile builder, rnlab, woocommerce mobile app, react native, flutter...

mobile-builder/mobile-builder.php Passed 13 tests

The main file in "Mobile builder" v. 1.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
The most advanced drag & drop app builder. Create multi templates and app controls.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin10,311 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
PHP1162,3267,9229,054
Sass1918484
CSS1114386
JSON400203
Markdown2330170
Ruby16127
XML1007

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.52
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces13
Interfaces5
Traits1
Classes93
▷ Abstract classes11.08%
▷ Concrete classes9298.92%
▷ Final classes00.00%
Methods704
▷ Static methods456.39%
▷ Public methods63890.62%
▷ Protected methods263.69%
▷ Private methods405.68%
Functions17
▷ Named functions1270.59%
▷ Anonymous functions529.41%
Constants28
▷ Global constants310.71%
▷ Class constants2589.29%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin