Benchmarks
Plugin footprint 83% 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.00MB] [CPU: ▼2.59ms] Passed 4 tests
Analyzing server-side resources used by Sales UP for WooCommerce - Boost Your sales with Cross Sells
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.04 ▼3.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.98 ▼1.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.99 ▼0.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.90 ▼3.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.88 ▼1.24 |
On Product /wp-admin/admin.php?page=woo_on_product | 3.00 | 22.38 |
On Cart/Checkout /wp-admin/edit.php?post_type=checkout-offers | 3.04 | 25.74 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Sales UP for WooCommerce - Boost Your sales with Cross Sells
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.10 ▼0.14 | 1.85 ▲0.22 | 36.93 ▼2.51 |
Dashboard /wp-admin | 2,189 ▲12 | 5.66 ▼0.01 | 93.69 ▲4.11 | 40.95 ▼3.44 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▲0.00 | 38.88 ▼1.51 | 37.23 ▼2.94 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.09 ▼0.00 | 647.39 ▲29.20 | 56.60 ▲1.65 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.18 ▼0.02 | 93.43 ▼9.06 | 41.53 ▼0.41 |
On Product /wp-admin/admin.php?page=woo_on_product | 28 | 0.42 | 0.10 | 3.47 |
On Cart/Checkout /wp-admin/edit.php?post_type=checkout-offers | 28 | 0.42 | 0.07 | 4.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wc-sales-up/admin/partials/wsp-checkout-offer.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wc-sales-up/admin/partials/wsp-on-product-offer.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-sales-up/public/class-wc-sales-up-checkout.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wc-sales-up/admin/partials/wsp-single-product.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-sales-up/public/class-wc-sales-up-product.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-sales-up/public/partials/wc-sales-up-product-checkout.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-sales-up/public/partials/wc-sales-up-product-display.php:16
- > PHP Fatal error
Uncaught Error: Class 'WC_Sales_Up_Product' not found in wp-content/plugins/wc-sales-up/public/class-wc-sales-up-cart.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=woo_on_product
- > Network (severe)
wp-admin/admin.php?page=woo_on_product - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/edit.php?post_type=checkout-offers
- > Network (severe)
wp-admin/edit.php?post_type=checkout-offers - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wc-sales-up/wc-sales-up.php 92% from 13 tests
"Sales UP for WooCommerce - Boost Your sales with Cross Sells" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 189 characters long)
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
Success! There were no dangerous files found in this plugin3,567 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 242 | 1,029 | 2,296 |
JavaScript | 3 | 27 | 28 | 639 |
CSS | 3 | 42 | 53 | 632 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 34.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 17 | 22.08% |
▷ Public methods | 72 | 93.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.49% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin