Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.00ms] Passed 4 tests
Analyzing server-side resources used by MyBooking Reservation Engine
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.48 ▲2.26 |
Dashboard /wp-admin | 3.45 ▲0.14 | 50.60 ▲0.47 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 47.84 ▲1.55 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.22 ▼8.28 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.55 ▲2.83 |
Server storage [IO: ▲4.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 180 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_mybooking_rent_engine_selector_wizard_widget |
db_upgraded |
widget_mybooking_engine_contact_widget |
widget_mybooking_transfer_engine_selector_widget |
theysaidso_admin_options |
widget_mybooking_activities_engine_activity_widget |
widget_mybooking_rent_engine_selector_widget |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for MyBooking Reservation Engine
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲232 | 16.53 ▲2.25 | 75.24 ▲73.03 | 45.93 ▼0.31 |
Dashboard /wp-admin | 2,198 ▲33 | 5.55 ▼0.03 | 86.86 ▼4.00 | 79.24 ▲31.00 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▼0.01 | 37.67 ▲1.86 | 32.36 ▼2.52 |
Add New Post /wp-admin/post-new.php | 1,705 ▲177 | 24.40 ▲1.24 | 667.94 ▼3.75 | 55.71 ▼3.86 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.13 ▲0.02 | 97.62 ▼16.31 | 76.13 ▲27.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 11 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_mybooking_engine_contact_widget
- widget_mybooking_rent_engine_selector_wizard_widget
- can_compress_scripts
- widget_recent-posts
- widget_mybooking_transfer_engine_selector_widget
- widget_mybooking_activities_engine_activity_widget
- theysaidso_admin_options
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 fix the following items
- 75× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-selector-widget-tmpl.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-activities-activity-widget-tmpl.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-product-week-planning.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-routes-product.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-activities-order.php:11
- > PHP Notice
Undefined variable: args in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-transfer-selector-widget.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-planning-tmpl.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-transfer-checkout-tmpl.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function get_privacy_policy_url() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-cookies-notice.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/mybooking-reservation-engine/mybooking-templates/mybooking-plugin-selector-wizard-container.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
8 plugin tags: online booking system, tours booking system, car rental reservation, properties booking system, online booking engine...
mybooking-reservation-engine/mybooking-wp-plugin.php 92% from 13 tests
The main PHP script in "MyBooking Reservation Engine" version 1.10.5 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mybooking-reservation-engine.php" instead of "mybooking-wp-plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected34,927 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 87 | 2,570 | 2,103 | 13,467 |
PO File | 6 | 3,120 | 5,898 | 9,938 |
CSS | 17 | 1,012 | 396 | 5,656 |
SVG | 20 | 1 | 1 | 4,750 |
JavaScript | 6 | 19 | 55 | 636 |
Markdown | 2 | 303 | 0 | 480 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 117)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 34.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 406.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 117.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 218 | |
▷ Static methods | 8 | 3.67% |
▷ Public methods | 185 | 84.86% |
▷ Protected methods | 1 | 0.46% |
▷ Private methods | 32 | 14.68% |
Functions | 17 | |
▷ Named functions | 8 | 47.06% |
▷ Anonymous functions | 9 | 52.94% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.29MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/styles/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/styles/images/ui-bg_glass_75_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 4.67% |
assets/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
assets/images/mybooking-logo-bn.png | 1.44KB | 0.82KB | ▼ 43.30% |
assets/styles/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |