Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/hotelierscom-booking-module/htlrs_booking_module.php+13
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼52.84ms] Passed 4 tests
An overview of server-side resources used by Hoteliers.com Booking Module
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.37 ▼31.85 |
Dashboard /wp-admin | 2.08 ▼1.27 | 10.41 ▼48.62 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 4.98 ▼42.05 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.45 ▼88.84 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 4.83 ▼30.37 |
Translations /wp-admin/admin.php?page=htlrs_booking_module__translations | 2.08 | 5.99 |
Settings /wp-admin/admin.php?page=htlrs_booking_module__settings | 2.08 | 6.08 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 250 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_add_hhtlrsbm_widget |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Hoteliers.com Booking Module: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.35 ▼0.00 | 1.65 ▲0.13 | 40.44 ▼1.65 |
Dashboard /wp-admin | 2,225 ▲44 | 5.67 ▲0.00 | 82.40 ▼15.36 | 79.47 ▲35.07 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.00 ▲0.02 | 34.62 ▼2.37 | 33.18 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.65 ▲0.39 | 747.62 ▲116.33 | 50.23 ▼9.44 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.26 ▲0.06 | 98.80 ▼12.44 | 80.07 ▲31.79 |
Translations /wp-admin/admin.php?page=htlrs_booking_module__translations | 1,189 | 2.32 | 25.86 | 26.71 |
Settings /wp-admin/admin.php?page=htlrs_booking_module__settings | 1,203 | 2.08 | 28.65 | 25.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/hotelierscom-booking-module/htlrs_booking_module.php+13
define(): Declaration of case-insensitive constants is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_add_hhtlrsbm_widget
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=htlrs_booking_module__settings
- > Deprecated in wp-content/plugins/hotelierscom-booking-module/htlrs_booking_module.php+19
define(): Declaration of case-insensitive constants is deprecated
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/hotelierscom-booking-module/admin/footer.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/hotelierscom-booking-module/vendor/tubalmartin/cssmin/gui/index.php on line 3
- > PHP Warning
require(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/hotelierscom-booking-module/vendor/tubalmartin/cssmin/gui/index.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/hotelierscom-booking-module/htlrs_booking_module.php:12
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/hotelierscom-booking-module/vendor/tubalmartin/cssmin/tests/run.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/hotelierscom-booking-module/widget.php:9
- > PHP Warning
require(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/hotelierscom-booking-module/vendor/tubalmartin/cssmin/tests/run.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: module, booking, hoteliers, hotelierscom
hotelierscom-booking-module/htlrs_booking_module.php 92% from 13 tests
The main PHP script in "Hoteliers.com Booking Module" version 1.10.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("hotelierscom-booking-module.php" instead of "htlrs_booking_module.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin29,362 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 85 | 2,029 | 654 | 21,469 |
JavaScript | 15 | 1,298 | 784 | 5,221 |
PHP | 21 | 367 | 539 | 2,210 |
Markdown | 1 | 119 | 0 | 196 |
HTML | 1 | 1 | 0 | 183 |
JSON | 3 | 0 | 0 | 83 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 32.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 3 | 4.05% |
▷ Public methods | 34 | 45.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 40 | 54.05% |
Functions | 32 | |
▷ Named functions | 27 | 84.38% |
▷ Anonymous functions | 5 | 15.62% |
Constants | 12 | |
▷ Global constants | 6 | 50.00% |
▷ Class constants | 6 | 50.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
31 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/hc_logo.png | 2.77KB | 2.13KB | ▼ 22.97% |
images/jquery.ui/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |
images/logo.png | 0.60KB | 0.65KB | 0.00% |
images/jquery.ui/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.41KB | 0.15KB | ▼ 62.44% |
admin/colorpicker/images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |