Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼0.98ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Simple Add Related Products to Blog Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 43.66 ▼1.86 |
Dashboard /wp-admin | 3.41 ▲0.06 | 51.12 ▼3.20 |
Posts /wp-admin/edit.php | 3.52 ▲0.13 | 52.31 ▲2.56 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.07 | 109.90 ▲11.20 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 38.63 ▼1.42 |
Related Products on Posts /wp-admin/options-general.php?page=select-parent-category | 3.31 | 40.45 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wooRelatedProducts |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Simple Add Related Products to Blog Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,871 ▲110 | 14.23 ▼0.42 | 1.94 ▲0.21 | 40.71 ▼2.48 |
Dashboard /wp-admin | 2,229 ▲49 | 5.55 ▼0.10 | 84.07 ▼8.37 | 43.75 ▼5.11 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.10 ▲0.10 | 34.01 ▼3.47 | 44.20 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,603 ▲77 | 24.10 ▲0.92 | 605.78 ▼86.12 | 72.14 ▲16.15 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.22 ▲0.01 | 98.12 ▼9.73 | 44.55 ▼5.13 |
Related Products on Posts /wp-admin/options-general.php?page=select-parent-category | 880 | 1.99 | 24.81 | 39.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-simply-add-related-products-to-blog-posts/woo-related-products-on-posts.php:15
- > PHP Fatal error
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 96% 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, related products, blog posts
woo-simply-add-related-products-to-blog-posts/woo-related-products-on-posts.php 92% from 13 tests
The main file in "WooCommerce Simple Add Related Products to Blog Posts" v. 3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-simply-add-related-products-to-blog-posts.php" instead of "woo-related-products-on-posts.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
No dangerous file extensions were detected534 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 96 | 52 | 413 |
CSS | 2 | 10 | 3 | 121 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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 | 15 | |
▷ Named functions | 15 | 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
5 PNG files occupy 0.43MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 139.77KB | 56.42KB | ▼ 59.63% |
assets/screenshot-1.png | 60.21KB | 19.54KB | ▼ 67.55% |
assets/screenshot-2.png | 63.82KB | 18.09KB | ▼ 71.65% |
assets/screenshot-4.png | 107.36KB | 32.72KB | ▼ 69.52% |
assets/screenshot-3.png | 67.08KB | 18.58KB | ▼ 72.29% |