10% wp-ride-booking

Code Review | WP Ride Booking

WordPress plugin WP Ride Booking scored 10% from 54 tests.

About plugin

  • Plugin page: wp-ride-booking
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2016
  • Latest release: Dec 27, 2022
  • Number of updates: 153
  • Update frequency: every 15.2 days
  • Top authors: gbsdeveloper (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active / 19,007 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

Server metrics [RAM: ▼0.94MB] [CPU: ▼34.51ms] Passed 4 tests

This is a short check of server-side resources used by WP Ride Booking
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.12 ▼6.42
Dashboard /wp-admin3.00 ▼0.3021.28 ▼28.48
Posts /wp-admin/edit.php3.00 ▼0.3522.80 ▼22.00
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.31 ▼74.11
Media Library /wp-admin/upload.php3.00 ▼0.2321.30 ▼13.44
WP Ride Booking /wp-admin/options-general.php?page=wp-ride-booking3.0023.53

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 11 new options
New WordPress options
ride_paypal_mode
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
ride_header_footer_bg_color
ride_text_color
ride_button_bg_hover_color
db_upgraded
widget_recent-posts
...

Browser metrics Passed 4 tests

WP Ride Booking: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲21816.35 ▲2.0042.93 ▲41.0637.64 ▼14.04
Dashboard /wp-admin2,235 ▲475.14 ▲0.24114.27 ▲0.8340.78 ▼9.34
Posts /wp-admin/edit.php2,123 ▲342.30 ▲0.2743.12 ▲6.7035.41 ▼2.60
Add New Post /wp-admin/post-new.php1,538 ▲1923.30 ▲0.03669.03 ▼7.5635.95 ▼22.89
Media Library /wp-admin/upload.php1,417 ▲324.46 ▲0.2796.69 ▼17.6443.10 ▼4.42
WP Ride Booking /wp-admin/options-general.php?page=wp-ride-booking1,4142.7955.6026.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 11 options in the database
    • can_compress_scripts
    • ride_submit_button_bg_color
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • ride_header_footer_bg_color
    • ride_text_color
    • ride_paypal_mode
    • widget_recent-posts
    • ride_button_bg_hover_color
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-ride-booking
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ride-booking/includes/ride-functions.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-ride-booking/wp-ride-booking.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ride-booking/includes/shortcodes.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: distance fare calculator, paypal payments, travel agency, woocommerce booking, taxi...

wp-ride-booking/wp-ride-booking.php 92% from 13 tests

The main file in "WP Ride Booking" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin395 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34813263
JavaScript211369
CSS11163

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ride_icon.png0.74KB0.49KB▼ 33.64%