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.06MB] [CPU: ▼4.10ms] Passed 4 tests
A check of server-side resources used by Display Categories Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.67 ▲0.45 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.26 ▼2.00 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.89 ▼0.20 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.31 ▼13.48 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.70 ▼0.71 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_displaycategorieswidget |
Browser metrics Passed 4 tests
Checking browser requirements for Display Categories Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.65 ▼0.94 | 1.61 ▲0.06 | 40.55 ▼5.17 |
Dashboard /wp-admin | 2,206 ▲23 | 4.90 ▼0.00 | 99.28 ▼11.46 | 40.08 ▼2.96 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 39.58 ▼0.20 | 36.40 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▼10 | 23.22 ▲4.64 | 629.26 ▼19.89 | 51.70 ▼1.06 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.24 ▼0.12 | 94.63 ▼6.37 | 42.09 ▼1.68 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_displaycategorieswidget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/display-categories-widget/display_categories_widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI ("")
- Screenshots: Add images for these screenshots: #1 (On the backend widget configuration can be made like this), #2 (This is how the widget will appear on your screen, you can add design to the class), #3 (Display categories with number of posts inside them)
display-categories-widget/display_categories_widget.php 92% from 13 tests
Analyzing the main PHP file in "Display Categories Widget" version 3.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("display-categories-widget.php" instead of "display_categories_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin265 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 9 | 265 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 11.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 51.74KB | 18.54KB | ▼ 64.17% |
screenshot-2.png | 3.78KB | 2.64KB | ▼ 30.16% |
screenshot-3.png | 4.89KB | 3.20KB | ▼ 34.64% |