Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.45ms] Passed 4 tests
Analyzing server-side resources used by DMG Custom Menu Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.27 ▲0.18 |
Dashboard /wp-admin | 3.37 ▲0.03 | 53.02 ▼15.08 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.00 ▼1.53 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 97.91 ▼5.36 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 40.48 ▲3.75 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_dmg_custom_menu_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
DMG Custom Menu Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.24 ▼0.38 | 1.79 ▲0.23 | 42.68 ▲3.41 |
Dashboard /wp-admin | 2,195 ▲15 | 5.65 ▲0.05 | 99.69 ▲7.45 | 46.08 ▲3.46 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.02 | 33.28 ▼8.61 | 35.49 ▲0.17 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.32 ▼0.38 | 669.75 ▲5.35 | 60.70 ▲9.16 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.18 ▼0.06 | 105.09 ▲3.03 | 47.95 ▲3.29 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_dmg_custom_menu_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'DMG\\WP_Widget_Base\\WP_Widget_Base' not found in wp-content/plugins/dmg-custom-menu-widget/src/WP_Custom_Menu_Widget.php:26
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dmg-custom-menu-widget/vendor/DMG/WP_Widget_Base/src/WP_Widget_Base.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: menu widget, menu, list pages, css
dmg-custom-menu-widget/dmg-custom-menu-widget.php Passed 13 tests
The main PHP file in "DMG Custom Menu Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
116 characters long description:
Displays a menu created on the Apperance > Menus page with advanced options to add CSS classes and display the title
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
No dangerous file extensions were detected372 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 168 | 74 | 342 |
JSON | 1 | 4 | 0 | 18 |
Markdown | 2 | 5 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin