Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.98ms] Passed 4 tests
A check of server-side resources used by Upsell Order Bump Offer for WooCommerce – Increase Sales and AOV, Upsell & Cross-sell Offers on Checkout Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.15 ▼1.70 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.01 ▼18.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.99 ▲0.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.46 ▼16.51 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.69 ▼2.75 |
Server storage [IO: ▲3.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Upsell Order Bump Offer for WooCommerce – Increase Sales and AOV, Upsell & Cross-sell Offers on Checkout Page
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▼0.01 | 1.92 ▲0.20 | 44.19 ▲0.56 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.05 | 86.96 ▼16.06 | 38.44 ▼4.07 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.02 | 38.89 ▲2.54 | 37.15 ▲2.13 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.38 ▲0.39 | 593.77 ▼31.09 | 50.59 ▲4.69 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.16 ▼0.07 | 95.45 ▲1.50 | 41.60 ▼0.49 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/upsell-order-bump-offer-for-woocommerce/extra-templates/wpswings-onboarding-template-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/upsell-order-bump-offer-for-woocommerce/public/partials/upsell-order-bump-offer-for-woocommerce-public-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/upsell-order-bump-offer-for-woocommerce/uninstall.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: order bump, sales funnels, upsell offers, cross-sell, upsell...
upsell-order-bump-offer-for-woocommerce/upsell-order-bump-offer-for-woocommerce.php 92% from 13 tests
The main PHP script in "Upsell Order Bump Offer for WooCommerce – Increase Sales and AOV, Upsell & Cross-sell Offers on Checkout Page" version 2.2.8 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 413 characters long)
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 plugin18,356 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 3,036 | 2,695 | 10,162 |
CSS | 7 | 865 | 130 | 4,617 |
JavaScript | 12 | 651 | 338 | 2,684 |
PO File | 1 | 368 | 557 | 867 |
SVG | 9 | 0 | 0 | 19 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 57.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 403.00 |
Average method complexity | 5.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 134 | |
▷ Static methods | 7 | 5.22% |
▷ Public methods | 121 | 90.30% |
▷ Protected methods | 5 | 3.73% |
▷ Private methods | 8 | 5.97% |
Functions | 60 | |
▷ Named functions | 57 | 95.00% |
▷ Anonymous functions | 3 | 5.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
24 PNG files occupy 1.79MB with 1.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/resources/offer-templates/template-7.png | 86.04KB | 26.53KB | ▼ 69.16% |
admin/resources/offer-templates/template-8.png | 92.77KB | 27.25KB | ▼ 70.62% |
admin/resources/icons/multiple-order-bumps.png | 87.49KB | 24.33KB | ▼ 72.19% |
public/partials/resources/icons/close.png | 11.40KB | 6.48KB | ▼ 43.21% |
admin/resources/icons/customer-support.png | 54.02KB | 18.40KB | ▼ 65.93% |