Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.80ms] Passed 4 tests
An overview of server-side resources used by Link Products to External websites for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 43.88 ▼1.00 |
Dashboard /wp-admin | 3.32 ▲0.02 | 55.87 ▲4.65 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.79 ▼2.89 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.99 ▼6.38 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.93 ▼0.92 |
Server storage [IO: ▲2.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Link Products to External websites for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.25 ▼0.48 | 1.90 ▲0.21 | 45.60 ▲5.30 |
Dashboard /wp-admin | 2,204 ▲24 | 5.57 ▼0.11 | 92.06 ▲4.97 | 46.22 ▲1.38 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.02 | 40.75 ▲2.07 | 33.00 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.93 ▼0.16 | 651.25 ▼16.22 | 55.59 ▼8.43 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.07 | 97.07 ▼7.12 | 43.52 ▼5.61 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-products-to-external-websites/includes/admin/pages/page-momo-wcext-category-script.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-products-to-external-websites/includes/admin/class-momo-wcext-admin-init.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-products-to-external-websites/includes/admin/pages/page-momo-wcext-product-script.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-products-to-external-websites/class-momo-wcexternal.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-products-to-external-websites/includes/admin/pages/momo-wcext-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-products-to-external-websites/includes/admin/pages/page-momo-wcext-settings.php:11
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
3 plugin tags: woocommerce, iframe, wordpress
wc-products-to-external-websites/class-momo-wcexternal.php 85% from 13 tests
The entry point to "Link Products to External websites for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wc-products-to-external-websites.php" instead of "class-momo-wcexternal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin9,159 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 96 | 17 | 6,204 |
SVG | 1 | 0 | 0 | 1,626 |
PHP | 12 | 40 | 254 | 1,070 |
JavaScript | 3 | 8 | 27 | 259 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin