Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.72ms] Passed 4 tests
An overview of server-side resources used by Improved External Products for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 37.69 ▼2.74 |
Dashboard /wp-admin | 3.47 ▲0.17 | 49.74 ▲0.74 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 52.95 ▲0.20 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 104.26 ▼1.08 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 36.43 ▲1.32 |
Improved External Products /wp-admin/admin.php?page=iepp_options_page | 3.34 | 31.37 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
improvedexternalproducts_sections |
db_upgraded |
widget_recent-comments |
wpo_iepp_pro_notice_shown |
woocommerce-improved-external-products |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Improved External Products for WooCommerce: 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 / | 2,829 ▲67 | 14.52 ▲0.20 | 0.87 ▼0.70 | 44.21 ▲2.05 |
Dashboard /wp-admin | 2,239 ▲62 | 5.66 ▲0.03 | 99.24 ▲4.49 | 45.60 ▲4.57 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 2.13 ▲0.12 | 43.10 ▲0.90 | 35.55 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.21 ▲0.13 | 595.92 ▼77.82 | 62.21 ▼0.23 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.18 ▲0.00 | 97.86 ▲0.47 | 46.69 ▲6.33 |
Improved External Products /wp-admin/admin.php?page=iepp_options_page | 1,031 | 1.74 | 25.74 | 31.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 9 options
- improvedexternalproducts_sections
- db_upgraded
- widget_theysaidso_widget
- wpo_iepp_pro_notice_shown
- theysaidso_admin_options
- woocommerce-improved-external-products
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=iepp_options_page
- > Notice in wp-content/plugins/woocommerce-improved-external-products/includes/class-wciep-settings.php+610
Trying to get property 'term_id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=iepp_options_page
- > Notice in wp-content/plugins/woocommerce-improved-external-products/includes/class-wciep-settings.php+610
Trying to get property 'name' of non-object
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-improved-external-products/wc-improved-external-products.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% 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
6 plugin tags: woocommerce, external product, affiliate, externalaffiliate, link...
woocommerce-improved-external-products/wc-improved-external-products.php 85% from 13 tests
Analyzing the main PHP file in "Improved External Products for WooCommerce" version 1.6.2
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.5" instead of "3.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-improved-external-products.php" instead of "wc-improved-external-products.php")
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 detected1,175 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 211 | 274 | 1,169 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 39.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 2 | 3.57% |
▷ Public methods | 55 | 98.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.79% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpo-helper.png | 17.86KB | 5.25KB | ▼ 70.62% |
assets/images/datafeedr.png | 27.39KB | 6.47KB | ▼ 76.38% |