Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/category-post-list-widget/category-post-list-widget.php+75
Methods with the same name as their class will not be constructors in a future version of PHP; Category_Post_List_widget has a deprecated constructor
Server metrics [RAM: ▼1.73MB] [CPU: ▼52.10ms] Passed 4 tests
A check of server-side resources used by Category Post List Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.20 | 4.85 ▼44.39 |
Dashboard /wp-admin | 2.28 ▼1.02 | 7.19 ▼42.69 |
Posts /wp-admin/edit.php | 2.28 ▼1.07 | 7.46 ▼39.25 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.60 | 6.55 ▼82.07 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 6.62 ▼30.91 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
widget_category_post_list_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Category Post List Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲105 | 13.68 ▼0.55 | 5.54 ▲3.40 | 41.46 ▼7.24 |
Dashboard /wp-admin | 2,218 ▲9 | 5.83 ▲0.04 | 106.39 ▲11.63 | 40.95 ▲1.69 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.05 ▲0.05 | 36.04 ▼2.98 | 35.18 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.83 ▼5.43 | 745.79 ▲159.41 | 63.91 ▲14.46 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.33 ▲0.12 | 97.80 ▼1.51 | 42.16 ▼1.92 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/category-post-list-widget/category-post-list-widget.php+75
Methods with the same name as their class will not be constructors in a future version of PHP; Category_Post_List_widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_category_post_list_widget
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/category-post-list-widget/add-shortcode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-post-list-widget/shortcode.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-post-list-widget/category-post-list-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-post-list-widget/functions.php:167
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
category-post-list-widget/category-post-list-widget.php Passed 13 tests
Analyzing the main PHP file in "Category Post List Widget" version 2.0
59 characters long description:
This plugin is used to show post under particular category.
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 plugin3,049 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 246 | 231 | 1,448 |
PHP | 6 | 75 | 121 | 1,070 |
CSS | 6 | 64 | 23 | 531 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 106.00 |
▷ Minimum class complexity | 106.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 22.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.20MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-comment.png | 0.29KB | 0.30KB | 0.00% |
images/next_prevarrw.png | 1.50KB | 0.51KB | ▼ 65.84% |
images/last-right.png | 0.20KB | 0.19KB | ▼ 5.34% |
screenshot-2.png | 82.06KB | 23.03KB | ▼ 71.94% |
images/next.png | 1.15KB | 0.31KB | ▼ 72.67% |