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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.12 ▼6.42 |
Dashboard /wp-admin | 3.00 ▼0.30 | 21.28 ▼28.48 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 22.80 ▼22.00 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 23.31 ▼74.11 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 21.30 ▼13.44 |
WP Ride Booking /wp-admin/options-general.php?page=wp-ride-booking | 3.00 | 23.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲218 | 16.35 ▲2.00 | 42.93 ▲41.06 | 37.64 ▼14.04 |
Dashboard /wp-admin | 2,235 ▲47 | 5.14 ▲0.24 | 114.27 ▲0.83 | 40.78 ▼9.34 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.30 ▲0.27 | 43.12 ▲6.70 | 35.41 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.30 ▲0.03 | 669.03 ▼7.56 | 35.95 ▼22.89 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.46 ▲0.27 | 96.69 ▼17.64 | 43.10 ▼4.42 |
WP Ride Booking /wp-admin/options-general.php?page=wp-ride-booking | 1,414 | 2.79 | 55.60 | 26.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 13 | 263 |
JavaScript | 2 | 11 | 3 | 69 |
CSS | 1 | 1 | 1 | 63 |
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 code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ride_icon.png | 0.74KB | 0.49KB | ▼ 33.64% |