Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.36ms] Passed 4 tests
A check of server-side resources used by Woocommerce Checkout Upsell Order Bump
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.00 ▲1.87 |
Dashboard /wp-admin | 3.33 ▼0.02 | 46.93 ▼14.79 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.63 ▼4.17 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.80 ▼14.70 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.19 ▲0.23 |
Upsell Funnel /wp-admin/admin.php?page=wc_upsellorderbump | 3.22 | 31.13 |
Order Bump /wp-admin/admin.php?page=woocommerce-upsellorderbump-orderbump | 3.22 | 32.10 |
Support /wp-admin/admin.php?page=xswcusop-support | 3.28 | 33.46 |
Server storage [IO: ▲1.37MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
xswcusop-orderbumpdata |
can_compress_scripts |
xswcusop-upselloptiondata |
Browser metrics Passed 4 tests
A check of browser resources used by Woocommerce Checkout Upsell Order Bump
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲148 | 14.02 ▼0.24 | 14.83 ▲12.81 | 39.29 ▼1.36 |
Dashboard /wp-admin | 2,229 ▲49 | 4.93 ▼0.74 | 86.94 ▼3.97 | 36.19 ▼0.19 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.32 ▲0.34 | 36.85 ▲1.83 | 34.14 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,567 ▲13 | 18.58 ▲0.45 | 629.62 ▼6.50 | 109.40 ▲19.84 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.42 ▲0.13 | 107.10 ▲10.28 | 42.79 ▼1.24 |
Upsell Funnel /wp-admin/admin.php?page=wc_upsellorderbump | 816 | 2.05 | 32.69 | 23.60 |
Order Bump /wp-admin/admin.php?page=woocommerce-upsellorderbump-orderbump | 813 | 2.03 | 27.21 | 21.82 |
Support /wp-admin/admin.php?page=xswcusop-support | 912 | 2.01 | 30.04 | 30.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- xswcusop-orderbumpdata
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- xswcusop-upselloptiondata
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-includes/xswcusop-orderbump/xswcusop-orderbumps-tab.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function xswcusop_get_fieldorderbump() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-frontend/xswcusop-orderbumpcheckoutpage.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wc-upsell-and-order-bump/xs-wc-upsell-orderbump.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-includes/xswcusop-upsell/xswcusop-upsellrulesdesing-tab.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-frontend/xswcusop-upsellcheckoutpage.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-includes/xswcusop-options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-includes/xswcusop-orderbump/xswcusop-orderbumpgeneral-tab.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-includes/xswcusop-upsell/xswcusop-upsellrulescustomcss-tab.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-includes/xswcusop-support-page.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-upsell-and-order-bump/xswcusop-includes/xswcusop-upsell/xswcusop-upsellrulesproducts-tab.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: upsell, woocommerce, checkout, order bump
wc-upsell-and-order-bump/xs-wc-upsell-orderbump.php 69% from 13 tests
The main file in "Woocommerce Checkout Upsell Order Bump" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 169 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wc-upsell-and-order-bump.php" instead of "xs-wc-upsell-orderbump.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "4.4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,930 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 183 | 151 | 2,557 |
PO File | 2 | 252 | 610 | 538 |
JavaScript | 7 | 48 | 70 | 518 |
CSS | 5 | 60 | 406 | 317 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin