Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼290.60ms] Passed 4 tests
Server-side resources used by BeBetterHotels Booking Form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 54.42 ▲0.33 |
Dashboard /wp-admin | 3.45 ▲0.04 | 33.00 ▼1.26 |
Posts /wp-admin/edit.php | 3.67 ▲0.04 | 36.50 ▼1.35 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 94.81 ▼1,160.13 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 25.42 ▲2.05 |
BeBetterHotels /wp-admin/options-general.php?page=bebetterhotels | 3.28 | 24.35 |
Server storage [IO: ▲4.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 762 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Checking browser requirements for BeBetterHotels Booking Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,917 ▲163 | 16.38 ▲0.41 | 10.46 ▲3.50 | 2.48 ▼0.20 |
Dashboard /wp-admin | 2,897 ▲36 | 6.06 ▼0.10 | 115.36 ▼18.94 | 153.02 ▼13.21 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.01 | 62.62 ▼4.44 | 139.08 ▼5.95 |
Add New Post /wp-admin/post-new.php | 1,761 ▲100 | 21.34 ▲5.35 | 435.14 ▲2.64 | 158.75 ▲0.40 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.51 ▲0.00 | 143.32 ▼2.97 | 180.33 ▼7.97 |
BeBetterHotels /wp-admin/options-general.php?page=bebetterhotels | 834 | 1.97 | 36.28 | 71.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- recovery_mode_email_last_sent
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
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=bebetterhotels
- > Error in wp-content/plugins/bebetterhotels-booking-form/bbh-booking-form.php+100
Uncaught UnexpectedValueException: DirectoryIterator::__construct(wp-content/plugins/bebetterhotels-booking-form/assets/css/jquery-ui/themes/1.13.1/): failed to open dir: No such file or directory in wp-content/plugins/bebetterhotels-booking-form/bbh-booking-form.php:100
Stack trace:
#0 wp-content/plugins/bebetterhotels-booking-form/bbh-booking-form.php(100): DirectoryIterator->__construct()
#1 wp-includes/class-wp-hook.php(307): bbh_options_page_html()
#2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(474): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/bebetterhotels-booking-form/bbh-booking-form.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: data in wp-content/plugins/bebetterhotels-booking-form/templates/booking-form.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/bebetterhotels-booking-form/templates/booking-form.php on line 2
- > PHP Notice
Trying to get property 'locale' of non-object in wp-content/plugins/bebetterhotels-booking-form/templates/booking-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bebetterhotels-booking-form/templates/options-general.php:2
- > PHP Notice
Trying to get property 'customer' of non-object in wp-content/plugins/bebetterhotels-booking-form/templates/booking-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bebetterhotels-booking-form/includes/class-bbh-template-loader.php:4
- > PHP Notice
Trying to get property 'url' of non-object in wp-content/plugins/bebetterhotels-booking-form/templates/booking-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bebetterhotels-booking-form/templates/booking-form.php:7
- > PHP Notice
Undefined variable: data in wp-content/plugins/bebetterhotels-booking-form/templates/booking-form.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: appointment, calendar, reservations, hotels, bebetterhotels...
bebetterhotels-booking-form/bbh-booking-form.php 85% from 13 tests
The principal PHP file in "BeBetterHotels Booking Form" v. 1.0.9 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("bebetterhotels-booking-form.php" instead of "bbh-booking-form.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin19,842 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 99 | 643 | 1,619 | 19,116 |
PHP | 6 | 107 | 252 | 451 |
PO File | 2 | 48 | 48 | 124 |
Sass | 1 | 8 | 0 | 116 |
JavaScript | 2 | 6 | 0 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 62.50% |
▷ Protected methods | 3 | 37.50% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
646 PNG files occupy 1.84MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/themes/1.12.1/excite-bike/images/ui-icons_fcdd4a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/css/jquery-ui/themes/1.11.4/vader/images/ui-icons_cccccc_256x240.png | 6.81KB | 4.17KB | ▼ 38.71% |
assets/css/jquery-ui/themes/1.12.1/south-street/images/ui-icons_808080_256x240.png | 6.95KB | 4.18KB | ▼ 39.83% |
assets/css/jquery-ui/themes/1.12.1/ui-lightness/images/ui-icons_ffd27a_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
assets/css/jquery-ui/themes/1.11.4/eggplant/images/ui-bg_flat_0_eeeeee_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |