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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.94ms] Passed 4 tests
Analyzing server-side resources used by Checkout Upsell - WooCommerce Upsell, Cross Sell, Order Bumps, One Click Upsell, Next Order Coupons, Product Recommendations
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.50 ▲2.57 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.42 ▼15.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.97 ▼4.43 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.47 ▼21.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.11 ▲1.94 |
Server storage [IO: ▲2.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 227 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Checkout Upsell - WooCommerce Upsell, Cross Sell, Order Bumps, One Click Upsell, Next Order Coupons, Product Recommendations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.31 | 1.68 ▼0.04 | 43.71 ▼0.47 |
Dashboard /wp-admin | 2,195 ▲18 | 5.53 ▲0.01 | 84.06 ▼18.06 | 38.57 ▼2.34 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.95 ▼0.08 | 38.77 ▲2.81 | 33.12 ▼3.05 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.92 ▼0.70 | 655.95 ▼15.08 | 64.56 ▲1.40 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▼0.05 | 95.68 ▼4.97 | 41.11 ▼0.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant CUW_PLUGIN_NAME - assumed 'CUW_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/checkout-upsell-and-order-bumps/config.php on line 4
- > PHP Warning
Use of undefined constant CUW_VERSION - assumed 'CUW_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/checkout-upsell-and-order-bumps/config.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
checkout-upsell-and-order-bumps/checkout-upsell-and-order-bumps.php 92% from 13 tests
Analyzing the main PHP file in "Checkout Upsell - WooCommerce Upsell, Cross Sell, Order Bumps, One Click Upsell, Next Order Coupons, Product Recommendations" version 1.4.2
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin37,089 lines of code in 214 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 159 | 1,629 | 4,788 | 13,999 |
JavaScript | 6 | 2,786 | 1,805 | 11,959 |
CSS | 6 | 816 | 21 | 9,603 |
Markdown | 1 | 190 | 0 | 1,164 |
SVG | 38 | 0 | 0 | 216 |
JSON | 2 | 0 | 0 | 105 |
YAML | 2 | 3 | 28 | 43 |
PHP code Passed 2 tests
A short review of 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.56 |
Average class complexity | 28.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 70 | |
▷ Abstract classes | 6 | 8.57% |
▷ Concrete classes | 64 | 91.43% |
▷ Final classes | 0 | 0.00% |
Methods | 565 | |
▷ Static methods | 408 | 72.21% |
▷ Public methods | 455 | 80.53% |
▷ Protected methods | 63 | 11.15% |
▷ Private methods | 47 | 8.32% |
Functions | 34 | |
▷ Named functions | 1 | 2.94% |
▷ Anonymous functions | 33 | 97.06% |
Constants | 14 | |
▷ Global constants | 4 | 28.57% |
▷ Class constants | 10 | 71.43% |
▷ Public constants | 10 | 100.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
5 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/products/cap.png | 15.67KB | 5.12KB | ▼ 67.36% |
assets/img/products/t-shirt.png | 18.66KB | 5.70KB | ▼ 69.44% |
assets/img/start-create-campaign.png | 2.87KB | 1.91KB | ▼ 33.55% |
assets/img/products/sunglasses.png | 12.45KB | 3.68KB | ▼ 70.47% |
assets/img/logo.png | 2.41KB | 1.02KB | ▼ 57.63% |