Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.55MB] [CPU: ▼0.57ms] Passed 4 tests
A check of server-side resources used by Best Upsell for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.58 | 46.33 ▼0.44 |
Dashboard /wp-admin | 3.88 ▲0.57 | 52.28 ▲4.78 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 49.98 ▲1.53 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 92.34 ▼6.49 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 38.25 ▲3.10 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 60 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_identixweb_bestupsell |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Best Upsell for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲166 | 13.53 ▼0.85 | 5.62 ▲3.71 | 43.07 ▼8.80 |
Dashboard /wp-admin | 2,221 ▲30 | 5.83 ▼0.08 | 96.34 ▼2.57 | 39.14 ▼0.68 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.05 ▲0.06 | 39.39 ▲3.99 | 32.16 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.43 ▲0.30 | 639.11 ▼18.41 | 51.40 ▼4.31 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.16 ▲0.08 | 94.04 ▼16.18 | 39.85 ▼4.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 failed, leaving 1 table in the database
- wp_identixweb_bestupsell
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 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 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/best-upsell-for-woocommerce/admin/partials/bestupsell-admin-display.php
- > /wp-content/plugins/best-upsell-for-woocommerce/public/partials/bestupsell-public-display.php
- 34× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/API/remove-product-cart.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/API/bundle-product.php:6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/templates/bestupsell-admin.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/Functions/show-prices.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/API/set-discount-session.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/API/apply-coupons.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/Functions/override-add-cart-button-for-listing-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/Functions/update-order-meta.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/API/add-product-cart.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/best-upsell-for-woocommerce/admin/partials/inc/API/post-skeleton-html.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: ajax cart, upsell, cart drawer, cart upsell, full cart...
best-upsell-for-woocommerce/best-upsell.php 77% from 13 tests
This is the main PHP file of "Best Upsell for WooCommerce" version 1.1.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and 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
- Main file name: Name the main plugin file the same as the plugin slug ("best-upsell-for-woocommerce.php" instead of "best-upsell.php")
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "5.6")
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
Good job! No executable or dangerous file extensions detected3,077 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 443 | 907 | 3,068 |
CSS | 2 | 1 | 8 | 6 |
JavaScript | 2 | 3 | 38 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 86 | |
▷ Named functions | 42 | 48.84% |
▷ Anonymous functions | 44 | 51.16% |
Constants | 3 | |
▷ Global constants | 3 | 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 images were found in this plugin