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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.39ms] Passed 4 tests
Analyzing server-side resources used by Related Products for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.67 ▼1.60 |
Dashboard /wp-admin | 3.32 ▼0.02 | 48.17 ▼12.39 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.40 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 89.34 ▼2.07 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.47 ▲1.54 |
Woo Related Products /wp-admin/admin.php?page=woo-related-options | 3.21 | 29.42 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Related Products for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.19 ▼1.09 | 1.78 ▲0.17 | 50.65 ▲12.20 |
Dashboard /wp-admin | 2,223 ▲35 | 5.84 ▲0.99 | 98.14 ▼3.70 | 83.47 ▲40.68 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.13 ▲0.13 | 34.18 ▼6.98 | 34.08 ▼5.47 |
Add New Post /wp-admin/post-new.php | 1,616 ▲97 | 22.68 ▼0.51 | 651.52 ▲48.87 | 40.66 ▼11.78 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.22 ▼0.04 | 101.02 ▲1.47 | 47.88 ▲2.90 |
Woo Related Products /wp-admin/admin.php?page=woo-related-options | 986 | 2.18 | 25.40 | 24.98 |
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
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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)
Everything seems fine, however 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/woo-related-products-refresh-on-reload/public/partials/woo-related-products-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== woo-related-products-refresh-on-reload ===
)
woo-related-products-refresh-on-reload/woo-related-products.php 77% from 13 tests
This is the main PHP file of "Related Products for WooCommerce" version 3.3.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- 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
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-related-products-refresh-on-reload.php" instead of "woo-related-products.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,469 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 214 | 48 | 1,358 |
PHP | 12 | 156 | 588 | 693 |
CSS | 5 | 18 | 36 | 293 |
PO File | 5 | 5 | 5 | 125 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 18 | |
▷ Named functions | 18 | 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
2 PNG files occupy 0.32MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/one-click-checkout.png | 330.97KB | 137.58KB | ▼ 58.43% |
public/owl-carousel/grabbing.png | 0.11KB | 0.14KB | 0.00% |