Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼138.22ms] Passed 4 tests
Analyzing server-side resources used by DMG Categories Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.27 ▲15.75 |
Dashboard /wp-admin | 3.07 ▲0.01 | 53.23 ▲10.42 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 40.28 ▼1.15 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.86 ▼562.85 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.09 ▲0.70 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_dmg_categories_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for DMG Categories Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.88 ▲0.31 | 8.59 ▼0.43 | 45.38 ▲2.95 |
Dashboard /wp-admin | 2,967 ▲33 | 5.89 ▼0.01 | 142.34 ▼5.54 | 108.18 ▲2.27 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.01 | 66.45 ▼3.72 | 87.09 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.94 ▲0.16 | 382.82 ▼13.85 | 106.51 ▼1.86 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.00 ▼0.01 | 166.52 ▼7.88 | 112.28 ▲1.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_dmg_categories_widget
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dmg-categories-widget/vendor/DMG/WP_Widget_Base/src/WP_Widget_Base.php:24
- > PHP Fatal error
Uncaught Error: Class 'DMG\\WP_Widget_Base\\WP_Widget_Base' not found in wp-content/plugins/dmg-categories-widget/src/WP_Categories_Widget.php:26
- > 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 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
5 plugin tags: categories widget, list categories, category list, css, menu
dmg-categories-widget/dmg-categories-widget.php 92% from 13 tests
The main PHP file in "DMG Categories Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 172 characters long)
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 plugin394 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 168 | 89 | 345 |
Markdown | 2 | 12 | 0 | 31 |
JSON | 1 | 4 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin