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
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼16.46ms] Passed 4 tests
A check of server-side resources used by WPC Custom Related Products for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.63 ▼2.35 |
Dashboard /wp-admin | 3.40 ▲0.05 | 57.20 ▼9.80 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 53.41 ▼25.68 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.06 ▼28.01 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 46.99 ▲7.93 |
Welcome To WooCommerce Custom Related Products /wp-admin/index.php?page=wcrp-about | 3.29 | 37.11 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
wcrp_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WPC Custom Related Products for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲90 | 13.46 ▼0.89 | 8.66 ▲6.67 | 44.20 ▲4.30 |
Dashboard /wp-admin | 2,202 ▲25 | 5.60 ▲0.00 | 86.71 ▼7.70 | 41.39 ▼0.69 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.01 | 38.82 ▼1.29 | 37.46 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.35 ▼0.12 | 663.93 ▼27.15 | 61.77 ▲9.54 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.20 ▲0.03 | 99.40 ▼4.97 | 44.31 ▼2.53 |
Welcome To WooCommerce Custom Related Products /wp-admin/index.php?page=wcrp-about | 861 | 1.99 | 22.16 | 37.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- wcrp_version
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
woo-custom-related-products/woo-custom-related-products.php Passed 13 tests
This is the main PHP file of "WPC Custom Related Products for WooCommerce" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
WPC Custom Related Products for WooCommerce allows you to choose related products for the particular product.
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
No dangerous file extensions were detected424 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 142 | 423 | 397 |
CSS | 2 | 0 | 4 | 21 |
JavaScript | 2 | 4 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin