Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.55MB] [CPU: ▼9.59ms] Passed 4 tests
A check of server-side resources used by Simplify Menu Usage
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 39.29 ▼3.40 |
Dashboard /wp-admin | 3.87 ▲0.52 | 47.44 ▼15.46 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 46.45 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 86.18 ▼20.82 |
Media Library /wp-admin/upload.php | 3.79 ▲0.56 | 42.28 ▲7.25 |
Simplify Menu Usage Settings /wp-admin/themes.php?page=simplify-menu-usage-page | 3.95 | 36.04 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 98 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
smu_down_insert |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
smu_is_rating_dismissed |
can_compress_scripts |
smu_display_menu_description |
Browser metrics Passed 4 tests
Simplify Menu Usage: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.54 ▼0.84 | 7.50 ▲5.45 | 40.36 ▼1.85 |
Dashboard /wp-admin | 2,214 ▲26 | 4.81 ▼0.06 | 109.04 ▼3.11 | 40.63 ▼4.83 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.04 ▲0.01 | 36.62 ▼3.49 | 33.78 ▼5.17 |
Add New Post /wp-admin/post-new.php | 1,521 ▼7 | 23.04 ▲0.17 | 650.61 ▲29.08 | 53.05 ▼4.76 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.29 ▲0.08 | 122.66 ▲23.09 | 50.26 ▲7.82 |
Simplify Menu Usage Settings /wp-admin/themes.php?page=simplify-menu-usage-page | 972 | 1.71 | 23.09 | 31.49 |
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 were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/simplify-menu-usage/public/partials/simplify-menu-usage-public-display.php
- > /wp-content/plugins/simplify-menu-usage/admin/partials/simplify-menu-usage-admin-display.php
- 28× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SimplifyMenuUsage\\SettingsLib\\Elements\\Validators\\Abstract_Validator' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/elements/validators/email-validator.php:6
- > PHP Fatal error
Uncaught Error: Class 'SimplifyMenuUsage\\SettingsLib\\Elements\\Validators\\Abstract_Validator' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/elements/validators/abstract-whitelist-validator.php:6
- > PHP Fatal error
Uncaught Error: Class 'SimplifyMenuUsage\\SettingsLib\\Elements\\Basic_Field' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/elements/fields/textarea.php:5
- > PHP Fatal error
Uncaught Error: Class 'SimplifyMenuUsage\\SettingsLib\\Elements\\Validators\\Abstract_Whitelist_Validator' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/elements/validators/dropdown-whitelist-validator.php:4
- > PHP Fatal error
Uncaught Error: Class 'SimplifyMenuUsage\\SettingsLib\\Elements\\Basic_Field' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/elements/fields/dropdown.php:5
- > PHP Fatal error
Uncaught Error: Interface 'SimplifyMenuUsage\\Interfaces\\IConfigure' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/tab.php:5
- > PHP Fatal error
Uncaught Error: Class 'SimplifyMenuUsage\\SettingsLib\\Elements\\Validators\\Abstract_Whitelist_Validator' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/elements/validators/checkbox-whitelist-validator.php:4
- > PHP Fatal error
Uncaught Error: Class 'SimplifyMenuUsage\\SettingsLib\\Elements\\Validators\\Abstract_Validator' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/elements/validators/file-validator.php:6
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/simplify-menu-usage/admin/classes/simplify-menu-usage-nav-item-walker.php:6
- > PHP Fatal error
Uncaught Error: Class 'SimplifyMenuUsage\\SettingsLib\\Elements\\Validators\\Abstract_Validator' not found in wp-content/plugins/simplify-menu-usage/admin/settings_page/elements/validators/string-validator.php:6
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: menu item, menu-management, efficient, nav, optimize-workflow...
simplify-menu-usage/simplify-menu-usage.php Passed 13 tests
This is the main PHP file of "Simplify Menu Usage" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
106 characters long description:
Improves the handling of the menu section in the dashboard. Fast deleting and inserting/moving menu items.
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
Good job! No executable or dangerous file extensions detected3,514 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 441 | 197 | 2,573 |
JavaScript | 3 | 75 | 77 | 541 |
PO File | 1 | 60 | 111 | 248 |
CSS | 2 | 38 | 4 | 152 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 3 | 6.38% |
▷ Concrete classes | 44 | 93.62% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 5 | 3.03% |
▷ Public methods | 104 | 63.03% |
▷ Protected methods | 29 | 17.58% |
▷ Private methods | 32 | 19.39% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/default-behavior.png | 36.56KB | 16.89KB | ▼ 53.79% |
admin/css/images/same-level-behavior.png | 38.66KB | 18.87KB | ▼ 51.19% |
admin/css/images/left-take-children-behavior.png | 24.88KB | 12.63KB | ▼ 49.22% |
admin/css/images/left-default-behavior.png | 24.65KB | 12.47KB | ▼ 49.42% |
admin/css/images/take-children-behavior.png | 38.82KB | 17.55KB | ▼ 54.80% |