Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.74ms] Passed 4 tests
An overview of server-side resources used by Related Products For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 36.47 ▼0.17 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.19 ▼1.72 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.36 ▲2.31 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 83.42 ▼9.79 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.90 ▲0.71 |
Welcome To WooCommerce Related products /wp-admin/index.php?page=spfw-about | 3.29 | 32.17 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
spfw_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Related Products For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.71 ▼0.64 | 7.74 ▲6.23 | 40.43 ▼3.53 |
Dashboard /wp-admin | 2,197 ▲20 | 5.54 ▼0.04 | 84.04 ▼4.14 | 38.03 ▼1.49 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.03 ▲0.06 | 33.48 ▼2.73 | 31.68 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.25 ▲0.15 | 672.37 ▼12.07 | 58.80 ▲7.36 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.21 ▲0.01 | 94.34 ▼5.31 | 41.00 ▼1.74 |
Welcome To WooCommerce Related products /wp-admin/index.php?page=spfw-about | 803 | 1.99 | 30.85 | 37.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- spfw_version
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/related-product-for-woo/admin/partials/similar-product-for-woo-admin-display.php
- > /wp-content/plugins/related-product-for-woo/public/partials/similar-product-for-woo-public-display.php
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
related-product-for-woo/similar-product-for-woo.php 92% from 13 tests
Analyzing the main PHP file in "Related Products For WooCommerce" version 1.0.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("related-product-for-woo.php" instead of "similar-product-for-woo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin436 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 156 | 569 | 409 |
CSS | 2 | 0 | 8 | 21 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin