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.19MB] [CPU: ▼4.92ms] Passed 4 tests
A check of server-side resources used by Search boxes integration for Booking affiliates
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 45.95 ▲2.39 |
Dashboard /wp-admin | 3.50 ▲0.20 | 56.43 ▲3.16 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 54.29 ▼2.70 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 90.57 ▼21.72 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.99 ▲2.35 |
Search boxes integration for Booking /wp-admin/options-general.php?page=basb-settings-page | 3.39 | 37.32 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_booking_affiliate_box_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Search boxes integration for Booking affiliates
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲240 | 13.81 ▼0.92 | 8.42 ▲6.83 | 42.41 ▲2.08 |
Dashboard /wp-admin | 2,331 ▲157 | 5.72 ▲0.05 | 83.26 ▼12.91 | 37.65 ▼1.53 |
Posts /wp-admin/edit.php | 2,233 ▲133 | 2.04 ▲0.05 | 36.58 ▼4.45 | 33.58 ▼4.51 |
Add New Post /wp-admin/post-new.php | 6,410 ▲4,884 | 25.92 ▲2.79 | 911.19 ▲259.35 | 63.35 ▲10.80 |
Media Library /wp-admin/upload.php | 1,536 ▲139 | 4.17 ▼0.00 | 97.19 ▼6.42 | 41.85 ▼4.31 |
Search boxes integration for Booking /wp-admin/options-general.php?page=basb-settings-page | 1,148 | 1.67 | 29.53 | 40.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_booking_affiliate_box_widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/search-boxes-integration-for-booking-affiliates/search-boxes-integration-for-booking-affiliates.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(BASB_PLUGIN_DIR_PATHclasses/class-basb-utils.php): failed to open stream: No such file or directory in wp-content/plugins/search-boxes-integration-for-booking-affiliates/load-all-classes.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/search-boxes-integration-for-booking-affiliates/classes/class-basb-widget.php:3
- > PHP Warning
Use of undefined constant BASB_PLUGIN_DIR_PATH - assumed 'BASB_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/search-boxes-integration-for-booking-affiliates/load-all-classes.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'BASB_PLUGIN_DIR_PATHclasses/class-basb-utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/search-boxes-integration-for-booking-affiliates/load-all-classes.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (First of all you need to login "Booking.com Affiliate Partner Center" and create your search boxes.), #2 (Copy and paste the code in the plugin setting page.), #3 (Use the this tool to add your shortcodes easily.), #4 (This plugin is also integrated with Visual Composer plugin.), #5 (Demo page with shortcode samples and widget.)
- Tags: There are too many tags (15 tag instead of maximum 10)
search-boxes-integration-for-booking-affiliates/search-boxes-integration-for-booking-affiliates.php 85% from 13 tests
The main PHP file in "Search boxes integration for Booking affiliates" ver. 0.5.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Success! There were no dangerous files found in this plugin775 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 106 | 61 | 756 |
CSS | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.29 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 23 | 42.59% |
▷ Public methods | 53 | 98.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.85% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.84MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 51.14KB | 17.93KB | ▼ 64.94% |
screenshot-2.png | 372.14KB | 111.96KB | ▼ 69.91% |
screenshot-4.png | 29.12KB | 10.69KB | ▼ 63.30% |
screenshot-5.png | 232.12KB | 72.42KB | ▼ 68.80% |
screenshot-1.png | 170.96KB | 53.03KB | ▼ 68.98% |