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.00MB] [CPU: ▼7.13ms] Passed 4 tests
An overview of server-side resources used by Up Sell Product Display For WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.12 ▼13.63 |
Dashboard /wp-admin | 3.32 ▼0.03 | 48.24 ▼15.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.46 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 98.63 ▲6.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.07 ▼0.12 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_codextent-woo-up-sells |
Browser metrics Passed 4 tests
A check of browser resources used by Up Sell Product Display For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.34 ▼0.21 | 2.04 ▼0.29 | 41.18 ▼7.33 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.11 | 88.18 ▼9.28 | 37.75 ▼8.70 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.00 | 39.02 ▼0.07 | 36.07 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.08 ▼0.52 | 631.89 ▼61.15 | 61.63 ▲3.65 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.27 ▲0.05 | 97.68 ▼8.24 | 46.18 ▼3.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_codextent-woo-up-sells
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: woocommerce up sell product, woocommerce, woocommerce plugin, woocommerce up sell, woocommerce up-sell...
up-sell-product-display-for-woocommerce/up-sell-product-display-for-woocommerce.php Passed 13 tests
The principal PHP file in "Up Sell Product Display For WooCommerce" v. 1.0 is loaded by WordPress automatically on each request
64 characters long description:
Woocommerce Up Sell product display using Widgets and Shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin326 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 97 | 60 | 240 |
CSS | 2 | 4 | 1 | 85 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 4 | 44.44% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected