Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.75MB] [CPU: ▼34.59ms] Passed 4 tests
This is a short check of server-side resources used by OpenCabs - Taxi and private hire bookings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 37.25 ▲1.69 |
Dashboard /wp-admin | 3.19 ▼0.11 | 25.98 ▼18.79 |
Posts /wp-admin/edit.php | 3.19 ▼0.16 | 25.12 ▼27.19 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.69 | 25.52 ▼81.49 |
Media Library /wp-admin/upload.php | 3.19 ▼0.03 | 22.76 ▼10.89 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
OpenCabs - Taxi and private hire bookings: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.23 ▼1.21 | 1.90 ▲0.21 | 42.48 ▲2.37 |
Dashboard /wp-admin | 2,226 ▲35 | 5.83 ▼0.07 | 93.99 ▼7.47 | 38.35 ▼5.09 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 1.99 ▼0.02 | 34.45 ▼5.35 | 35.27 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.31 ▲5.77 | 665.28 ▼15.29 | 50.86 ▲0.72 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.16 ▼0.05 | 96.46 ▼1.21 | 42.69 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/opencabs-taxi-and-private-hire-bookings/opencabs-webwidget.php+59
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/opencabs-taxi-and-private-hire-bookings/opencabs-webwidget-snippets.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/opencabs-taxi-and-private-hire-bookings/opencabs-webwidget-snippets.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: booking, opencabs, taxi
opencabs-taxi-and-private-hire-bookings/opencabs-webwidget.php 92% from 13 tests
The primary PHP file in "OpenCabs - Taxi and private hire bookings" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("opencabs-taxi-and-private-hire-bookings.php" instead of "opencabs-webwidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected10,474 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 12 | 34 | 7,348 |
JavaScript | 3 | 582 | 204 | 1,611 |
PHP | 2 | 242 | 79 | 1,226 |
SVG | 1 | 0 | 0 | 288 |
Markdown | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 30 | |
▷ Named functions | 25 | 83.33% |
▷ Anonymous functions | 5 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin