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
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.17ms] Passed 4 tests
Server-side resources used by Category and Subcategory list widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.78 ▼2.29 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.65 ▼0.15 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.47 ▲0.78 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.65 ▼11.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.43 ▲6.13 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 118 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_core_special_widgets_categories |
Browser metrics Passed 4 tests
A check of browser resources used by Category and Subcategory list widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲211 | 14.71 ▲0.34 | 1.79 ▼0.00 | 43.49 ▼0.60 |
Dashboard /wp-admin | 2,355 ▲170 | 6.41 ▲1.50 | 117.05 ▲10.07 | 36.71 ▼9.12 |
Posts /wp-admin/edit.php | 2,258 ▲169 | 3.29 ▲1.29 | 47.49 ▲14.30 | 30.59 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,676 ▲136 | 22.38 ▼0.80 | 598.12 ▼48.02 | 30.34 ▼27.28 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.17 ▼0.04 | 79.21 ▼24.94 | 40.81 ▼8.13 |
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
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- widget_core_special_widgets_categories
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/category-subcategory-list-widget/category-list-widget.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 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
Please fix the following attributes:
- Donate link: Please fix this invalid url: ""
- Screenshots: A description for screenshot #8 is required in category-subcategory-list-widget/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
category-subcategory-list-widget/category-list-widget.php 92% from 13 tests
"Category and Subcategory list widget" version 6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("category-subcategory-list-widget.php" instead of "category-list-widget.php")
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
There were no executable files found in this plugin2,348 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 35 | 49 | 1,203 |
PO File | 15 | 285 | 291 | 808 |
PHP | 1 | 100 | 41 | 277 |
JavaScript | 1 | 21 | 5 | 60 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 1.50MB with 0.47MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 207.14KB | 76.25KB | ▼ 63.19% |
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.13KB | 0.18KB | 0.00% |
css/images/ui-icons_222222_256x240.png | 6.68KB | 4.20KB | ▼ 37.05% |
css/images/ui-bg_flat_10_000000_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
css/images/ui-icons_ef8c08_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |