Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.21ms] Passed 4 tests
A check of server-side resources used by Booking.com Official Search Box
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.12 ▲4.27 |
Dashboard /wp-admin | 3.38 ▲0.03 | 44.62 ▼11.97 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.39 ▼0.04 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 98.08 ▼4.07 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.74 ▼0.75 |
Booking.com Search Box /wp-admin/options-general.php?page=bos_searchbox | 3.27 | 33.33 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_bos_searchbox_widget_class |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Booking.com Official Search Box
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲232 | 15.96 ▲1.70 | 17.14 ▲15.39 | 38.13 ▲0.48 |
Dashboard /wp-admin | 2,250 ▲58 | 6.35 ▲1.42 | 108.03 ▼2.94 | 41.22 ▼2.87 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 3.27 ▲1.28 | 51.96 ▲10.05 | 47.97 ▲13.26 |
Add New Post /wp-admin/post-new.php | 6,312 ▲4,770 | 20.21 ▲1.88 | 959.02 ▲359.15 | 39.73 ▼19.22 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 5.76 ▲1.49 | 108.29 ▲5.31 | 41.58 ▼4.92 |
Booking.com Search Box /wp-admin/options-general.php?page=bos_searchbox | 2,935 | 4.11 | 112.89 | 82.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_bos_searchbox_widget_class
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Searchbox widget in the Widget section.), #2 (Choose the sidebar which you would like the searchbox to be displayed on ( please choose only one sidebar in order to evoid javascript issues ).), #3 (Here we go! Searchbox installed in your site ( in Content sidebar in this case ). The default searchbox will fit the widget area width.), #4 (If you like, you can customise the searchbox for your needs. A preview feature will help you to check the searchbox layout before going live on the website.), #5 (Meta Boxes in post/page sections.)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
bookingcom-official-searchbox/booking-official-searchbox.php 85% from 13 tests
Analyzing the main PHP file in "Booking.com Official Search Box" version 2.3.1
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bookingcom-official-searchbox.php" instead of "booking-official-searchbox.php")
- Description: Keep the plugin description shorter than 140 characters (currently 390 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected8,335 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 1,866 | 2,511 | 4,595 |
CSS | 3 | 96 | 55 | 1,633 |
PHP | 12 | 160 | 204 | 1,521 |
JavaScript | 4 | 78 | 34 | 586 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.68 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 37 | |
▷ Global constants | 37 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/booking_logotype_blue_200x33.png | 8.77KB | 3.48KB | ▼ 60.31% |
assets/images/Calendar-2x.png | 0.45KB | 0.26KB | ▼ 43.17% |
assets/images/bos_info_icon.png | 1.31KB | 0.45KB | ▼ 65.94% |
assets/images/Bed-2x.png | 0.58KB | 0.38KB | ▼ 35.89% |
assets/images/bos_lock_closed_icon.png | 1.17KB | 0.41KB | ▼ 65.08% |