Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼9.16ms] Passed 4 tests
A check of server-side resources used by Booking.com Product Helper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.50 ▼0.92 |
Dashboard /wp-admin | 3.39 ▲0.05 | 45.10 ▼19.05 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 44.05 ▼2.23 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 79.76 ▼13.93 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 34.68 ▼1.42 |
Booking.com Product Helper /wp-admin/options-general.php?page=bookingcom-product-helper | 3.29 | 34.81 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Booking.com Product Helper
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.65 ▼0.97 | 4.36 ▲2.54 | 33.27 ▼16.75 |
Dashboard /wp-admin | 2,217 ▲26 | 5.88 ▲0.97 | 103.81 ▼4.06 | 45.02 ▲0.41 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.00 ▼0.06 | 34.65 ▼5.71 | 37.52 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,525 ▲6 | 23.15 ▲0.09 | 682.61 ▲7.51 | 61.58 ▲4.56 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.21 ▲0.02 | 107.66 ▲10.73 | 49.27 ▲6.23 |
Booking.com Product Helper /wp-admin/options-general.php?page=bookingcom-product-helper | 921 | 2.06 | 26.18 | 43.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Donate link: Invalid URI found ("Booking.com")
- Screenshots: Please add an image for screenshot #1 (Examples of Booking.com affiliate products)
bookingcom-product-helper/bookingcom-product-helper.php 92% from 13 tests
The main file in "Booking.com Product Helper" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 265 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,472 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 116 | 120 | 946 |
CSS | 1 | 60 | 5 | 315 |
PO File | 1 | 41 | 51 | 133 |
JavaScript | 1 | 13 | 12 | 66 |
SVG | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 3 | 100.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected