Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.63ms] Passed 4 tests
Analyzing server-side resources used by Featured Category Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 41.55 ▲1.32 |
Dashboard /wp-admin | 3.40 ▲0.10 | 52.96 ▼4.82 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 53.41 ▼4.41 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.66 ▼18.60 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 40.73 ▲2.50 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_featured_category_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Featured Category Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲196 | 14.77 ▲0.32 | 2.00 ▲0.21 | 41.47 ▼3.35 |
Dashboard /wp-admin | 2,333 ▲156 | 6.15 ▲0.50 | 112.08 ▲10.93 | 39.80 ▼7.16 |
Posts /wp-admin/edit.php | 2,275 ▲175 | 3.31 ▲1.32 | 49.16 ▲5.22 | 31.94 ▼4.45 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.17 ▲0.29 | 666.10 ▼6.13 | 41.77 ▼7.61 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.15 ▲0.04 | 83.41 ▼32.76 | 48.59 ▲0.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_featured_category_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: widget, category
featured-category-widget/featured-category-widget.php Passed 13 tests
The main PHP script in "Featured Category Widget" version 1.0.1 is automatically included on every request by WordPress
115 characters long description:
Showcase a specific category with ease, including setting a featured image and optionally listing child categories.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin642 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 56 | 162 | 254 |
PO File | 5 | 50 | 60 | 190 |
CSS | 2 | 13 | 0 | 68 |
JavaScript | 1 | 11 | 3 | 59 |
Sass | 1 | 9 | 0 | 42 |
Markdown | 1 | 13 | 0 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin