Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.35ms] Passed 4 tests
Server-side resources used by WP Categories Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 38.63 ▼4.50 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.05 ▼5.62 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.77 ▼3.35 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 96.29 ▼3.91 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 39.74 ▲6.28 |
WP Category Widget /wp-admin/options-general.php?page=wcw-page | 3.30 | 32.99 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_wpcategorieswidget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Categories Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.40 ▲0.04 | 1.72 ▼0.22 | 41.88 ▲0.04 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼1.00 | 109.07 ▼3.47 | 43.74 ▲4.55 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.04 | 41.23 ▲4.51 | 37.06 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.11 ▲5.61 | 667.27 ▲42.31 | 54.11 ▲4.45 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.32 ▲0.13 | 100.86 ▼0.03 | 46.90 ▲3.61 |
WP Category Widget /wp-admin/options-general.php?page=wcw-page | 942 | 2.10 | 26.13 | 34.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_wpcategorieswidget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-categories-widget/lib/settings.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wcw-page
- > Javascript (severe) in unknown
/wp-content/plugins/wp-categories-widget/assets/wcw-admin.js?ver=6.3.1 11:2 Uncaught TypeError: jQuery(...).ready(...) is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: posts widget, custom widget, product categories widget, taxonomy widget, category widget
wp-categories-widget/wp-categories-widget.php 92% from 13 tests
"WP Categories Widget" version 2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 161 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin368 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 86 | 103 | 356 |
JavaScript | 1 | 0 | 1 | 11 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 31.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 5.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin