Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼294.24ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Unlimited Upsell Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.22 | 53.47 ▲4.70 |
Dashboard /wp-admin | 3.70 ▲0.29 | 34.67 ▼0.28 |
Posts /wp-admin/edit.php | 3.92 ▲0.29 | 39.66 ▼2.01 |
Add New Post /wp-admin/post-new.php | 7.25 ▲0.25 | 97.38 ▼1,177.37 |
Media Library /wp-admin/upload.php | 3.65 ▲0.35 | 27.08 ▲2.70 |
Offers /wp-admin/admin.php?page=woocommerce-unlimited-upsell-offers-view | 3.56 | 27.97 |
Settings /wp-admin/admin.php?page=woocommerce-unlimited-upsell-settings | 3.56 | 24.22 |
Add Offer /wp-admin/admin.php?page=woocommerce-unlimited-upsell-offer-edit | 3.62 | 25.86 |
Dashboard /wp-admin/admin.php?page=woocommerce-unlimited-upsell-dashboard | 3.56 | 23.07 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 210 new files
Database: 3 new tables, 3 new options
New tables |
---|
wp_wooup_view_stats |
wp_wooup_offers |
wp_wooup_stats |
New WordPress options |
---|
woocommerce_unlimited_upsell_delete_data |
wooup_db_ver |
woocommerce_unlimited_upsell_version |
Browser metrics Passed 4 tests
WooCommerce Unlimited Upsell Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,845 ▲92 | 16.12 ▲0.35 | 6.28 ▼0.59 | 18.37 ▲15.95 |
Dashboard /wp-admin | 2,959 ▲101 | 6.12 ▼0.09 | 117.51 ▼14.06 | 152.48 ▼9.22 |
Posts /wp-admin/edit.php | 2,763 ▲69 | 3.24 ▲0.00 | 62.85 ▼2.46 | 144.19 ▼5.54 |
Add New Post /wp-admin/post-new.php | 1,785 ▲124 | 22.26 ▲5.77 | 436.92 ▲13.77 | 152.24 ▼3.22 |
Media Library /wp-admin/upload.php | 1,770 ▲72 | 5.57 ▲0.01 | 139.55 ▲0.80 | 189.49 ▲9.58 |
Offers /wp-admin/admin.php?page=woocommerce-unlimited-upsell-offers-view | 1,263 | 2.61 | 55.86 | 100.23 |
Settings /wp-admin/admin.php?page=woocommerce-unlimited-upsell-settings | 1,309 | 3.16 | 71.03 | 142.26 |
Add Offer /wp-admin/admin.php?page=woocommerce-unlimited-upsell-offer-edit | 1,755 | 5.75 | 132.93 | 167.45 |
Dashboard /wp-admin/admin.php?page=woocommerce-unlimited-upsell-dashboard | 1,117 | 3.33 | 73.72 | 111.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 3 tables
- wp_wooup_view_stats
- wp_wooup_offers
- wp_wooup_stats
- Zombie WordPress options detected upon uninstall: 1 option
- woocommerce_unlimited_upsell_version
Smoke tests 75% 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 50% from 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
Please fix the following items
- 20× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/admin/class-woocommerce-unlimited-upsell-admin-pages.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/sql/table_offers.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/admin/views/offer-edit.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/class-woocommerce-unlimited-upsell-ajax.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/admin/views/settings.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/class-woocommerce-unlimited-upsell-db.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/admin/class-woocommerce-unlimited-upsell-admin-pages-offers.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/admin/views/dashboard.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/woocommerce-unlimited-upsell.php
- > /wp-content/plugins/woo-unlimited-upsell-lite/includes/admin/views/offers-view.php
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)
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woo-unlimited-upsell-lite/woocommerce-unlimited-upsell.php 77% from 13 tests
The main PHP file in "WooCommerce Unlimited Upsell Lite" ver. 1.1.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-unlimited-upsell-lite.php" instead of "woocommerce-unlimited-upsell.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,060 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 505 | 1,261 | 1,688 |
SVG | 2 | 0 | 0 | 192 |
JavaScript | 101 | 0 | 0 | 122 |
JSON | 1 | 0 | 0 | 36 |
CSS | 12 | 0 | 4 | 12 |
HTML | 1 | 0 | 0 | 8 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 21.11 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 25 | 33.33% |
▷ Public methods | 59 | 78.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 21.33% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/assets/vendor/jquery-ui/images/ui-bg_glass_100_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 40.84% |
includes/admin/assets/vendor/jquery-ui/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
includes/admin/assets/vendor/jquery-ui/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.41KB | 0.15KB | ▼ 62.44% |
includes/admin/assets/vendor/jquery-ui/images/ui-icons_fff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
includes/admin/assets/vendor/jquery-ui/images/ui-bg_glass_65_96588a_1x400.png | 0.34KB | 0.16KB | ▼ 52.33% |