Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/posts-categories-in-sidebar/cz_post_cat.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Post_Cat_Widget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼58.35ms] Passed 4 tests
A check of server-side resources used by Post's Categories in Sidebar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.33 ▼38.89 |
Dashboard /wp-admin | 2.09 ▼1.26 | 11.23 ▼57.13 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.10 ▼42.23 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.37 ▼95.14 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.95 ▼30.14 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_cz_post_cat |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Post's Categories in Sidebar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.46 ▼0.91 | 1.88 ▲0.07 | 41.72 ▼7.52 |
Dashboard /wp-admin | 2,200 ▲15 | 5.83 ▼0.02 | 105.68 ▲0.67 | 40.83 ▲2.90 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.01 ▼0.01 | 36.72 ▼2.40 | 31.48 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.55 ▲0.32 | 659.31 ▼55.32 | 53.00 ▼8.67 |
Media Library /wp-admin/upload.php | 1,379 ▼6 | 4.22 ▼0.02 | 99.03 ▼15.27 | 44.45 ▼2.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/posts-categories-in-sidebar/cz_post_cat.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; Post_Cat_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_cz_post_cat
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/posts-categories-in-sidebar/cz_post_cat.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== posts-categories-in-sidebar ===
) - Screenshots: These screenshots do not have images: #1 (The widget in use. Styled according to the normal widget sidebar.), #2 (The Application -> Widgets page)
posts-categories-in-sidebar/cz_post_cat.php 92% from 13 tests
The principal PHP file in "Post's Categories in Sidebar" v. 1.0 is loaded by WordPress automatically on each request
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 ("posts-categories-in-sidebar.php" instead of "cz_post_cat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin47 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 10 | 47 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.35MB with 0.22MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 337.59KB | 164.94KB | ▼ 51.14% |
screenshot-2.png | 25.61KB | 7.62KB | ▼ 70.23% |