Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲2.44ms] Passed 4 tests
A check of server-side resources used by Category Posts Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 47.61 ▲4.82 |
Dashboard /wp-admin | 3.95 ▲0.65 | 55.49 ▲3.66 |
Posts /wp-admin/edit.php | 4.00 ▲0.65 | 56.08 ▲7.04 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 93.39 ▼1.89 |
Media Library /wp-admin/upload.php | 3.81 ▲0.59 | 39.27 ▲3.16 |
Server storage [IO: ▲0.74MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_category-posts |
Browser metrics Passed 4 tests
Category Posts Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.23 ▼0.05 | 2.45 ▲0.55 | 45.01 ▲1.42 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▲0.02 | 88.16 ▼8.05 | 39.85 ▼2.84 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.00 | 43.67 ▲6.55 | 36.11 ▼0.03 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▲0.06 | 656.83 ▼30.35 | 60.59 ▲15.63 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.23 ▼0.00 | 108.04 ▲10.42 | 44.23 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'categoryPostsuninstall' not found or invalid function name
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_category-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
category-posts/cat-posts.php 85% from 13 tests
The primary PHP file in "Category Posts Widget" version 4.9.15 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("category-posts.php" instead of "cat-posts.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected13,558 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 2,495 | 683 | 9,784 |
PHP | 9 | 453 | 1,012 | 2,489 |
CSS | 9 | 135 | 49 | 847 |
HTML | 1 | 11 | 0 | 312 |
JSON | 1 | 0 | 0 | 76 |
XML | 1 | 5 | 0 | 28 |
SVG | 1 | 10 | 0 | 22 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 68.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 221.00 |
Average method complexity | 5.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 1 | 1.82% |
▷ Public methods | 44 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 20.00% |
Functions | 41 | |
▷ Named functions | 35 | 85.37% |
▷ Anonymous functions | 6 | 14.63% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.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
There are no PNG files in this plugin