Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.32ms] Passed 4 tests
A check of server-side resources used by list categories widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.11 ▼5.05 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.10 ▼4.65 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.84 ▼1.53 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.46 ▼2.04 |
Media Library /wp-admin/upload.php | 3.32 ▲0.08 | 33.50 ▼0.53 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_custom-post-type-categories |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for list categories widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲177 | 13.67 ▼0.93 | 9.43 ▲7.55 | 43.44 ▲0.45 |
Dashboard /wp-admin | 2,210 ▲25 | 5.84 ▲0.85 | 95.79 ▼12.62 | 37.29 ▼9.35 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.06 | 39.70 ▲1.72 | 35.94 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,527 ▼7 | 18.62 ▼4.53 | 647.61 ▼37.23 | 67.32 ▲12.44 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.25 ▲0.04 | 93.50 ▼8.27 | 41.32 ▼1.61 |
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 does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_custom-post-type-categories
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 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)
Good news, no errors were detected
SRP 0% from 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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/list-categories-widget/admin/partials/woo-categories-widget-admin-display.php
- > /wp-content/plugins/list-categories-widget/public/partials/woo-categories-widget-public-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/list-categories-widget/includes/helper/helper.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/list-categories-widget/includes/widgets/woo-cat.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: category widgetcustom widgetposts-widgettaxonomy widget
list-categories-widget/list-categories-widget.php 92% from 13 tests
Analyzing the main PHP file in "list categories widget" version 1.0.0
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 199 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin367 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 162 | 541 | 333 |
JavaScript | 2 | 9 | 54 | 20 |
CSS | 2 | 3 | 9 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 3 | 9.68% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected