Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.40ms] Passed 4 tests
Server-side resources used by List Products By Category Widget for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.01 ▼3.58 |
Dashboard /wp-admin | 3.37 ▲0.07 | 43.45 ▼4.13 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.91 ▲0.45 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.06 ▼12.47 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 32.33 ▼1.41 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_wcpbc_products_by_category |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
List Products By Category Widget for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲70 | 14.48 ▲0.11 | 1.82 ▼0.15 | 37.83 ▼9.47 |
Dashboard /wp-admin | 2,209 ▲18 | 4.86 ▼0.00 | 109.24 ▲3.69 | 41.23 ▼3.71 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▲0.02 | 40.76 ▲4.37 | 34.25 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.23 ▼0.01 | 594.13 ▼91.05 | 50.36 ▲0.29 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.03 | 93.70 ▼6.40 | 40.73 ▼2.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_wcpbc_products_by_category
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #3 is missing in woo-products-by-category/assets to your readme.txt
woo-products-by-category/wcpbc.php 85% from 13 tests
Analyzing the main PHP file in "List Products By Category Widget for WooCommerce" version 1.3.0
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-products-by-category.php" instead of "wcpbc.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin400 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 19 | 399 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 18.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
No PNG images were found in this plugin