Benchmarks
Plugin footprint 65% 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.87MB] [CPU: ▼26.25ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Links to Product
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.52 ▼0.18 |
Dashboard /wp-admin | 3.41 ▲0.06 | 44.14 ▼19.00 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.35 ▲3.22 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 7.72 ▼89.03 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.98 ▲4.12 |
Links to Product /wp-admin/admin.php?page=woocommerce-links-to-product | 2.16 | 5.55 |
Server storage [IO: ▲0.04MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
WooCommerce Links to Product: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.63 ▼1.04 | 7.18 ▲5.55 | 43.16 ▲0.20 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼1.02 | 108.00 ▼10.15 | 42.53 ▼6.09 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 1.97 ▼0.09 | 40.86 ▲5.45 | 34.24 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,514 ▼6 | 17.65 ▼5.49 | 621.75 ▼105.42 | 51.76 ▼6.80 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▲0.06 | 98.83 ▲1.82 | 44.99 ▼0.75 |
Links to Product /wp-admin/admin.php?page=woocommerce-links-to-product | 966 | 2.05 | 24.71 | 30.08 |
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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/woo-links-to-product/uninstall.php+7
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=woocommerce-links-to-product
- > Notice in wp-content/plugins/woo-links-to-product/links2p.php+26
Undefined index: post
- > GET request to /wp-admin/admin.php?page=woocommerce-links-to-product
- > Notice in wp-content/plugins/woo-links-to-product/links2p.php+27
Undefined index: post_type
- > GET request to /wp-admin/admin.php?page=woocommerce-links-to-product
- > Notice in wp-content/plugins/woo-links-to-product/optionspage.php+110
Undefined index: l_header
- > GET request to /wp-admin/admin.php?page=woocommerce-links-to-product
- > Notice in wp-content/plugins/woo-links-to-product/optionspage.php+112
Undefined index: l_footer
- > GET request to /wp-admin/admin.php?page=woocommerce-links-to-product
- > Notice in wp-content/plugins/woo-links-to-product/optionspage.php+168
Undefined index: on_uninstall
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 take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-links-to-product/shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-links-to-product/optionspage.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-links-to-product/links2p.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-links-to-product/ajaxes.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: retailer, woocommerce, product links
woo-links-to-product/links2p.php 85% from 13 tests
The main file in "WooCommerce Links to Product" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-links-to-product.php" instead of "links2p.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected775 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 44 | 90 | 533 |
JavaScript | 2 | 14 | 41 | 213 |
CSS | 2 | 1 | 3 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin