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.73MB] [CPU: ▲3.45ms] Passed 4 tests
A check of server-side resources used by WP Menu Icons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 43.62 ▲3.42 |
Dashboard /wp-admin | 4.07 ▲0.76 | 56.04 ▲7.73 |
Posts /wp-admin/edit.php | 4.14 ▲0.78 | 54.47 ▲5.10 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.75 | 87.27 ▼1.66 |
Media Library /wp-admin/upload.php | 3.95 ▲0.72 | 43.26 ▲6.93 |
Welcome /wp-admin/admin.php?page=wp-menu-icons | 3.97 | 42.55 |
Premium /wp-admin/admin.php?page=wp-menu-icons&tab=premium | 3.97 | 42.62 |
Suggestions /wp-admin/admin.php?page=wp-menu-icons&tab=suggestions | 3.97 | 43.48 |
Settings /wp-admin/admin.php?page=wp-menu-icons&tab=settings | 3.97 | 43.09 |
Server storage [IO: ▲3.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 153 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Menu Icons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲182 | 14.71 ▲0.37 | 1.64 ▼0.36 | 40.81 ▼4.87 |
Dashboard /wp-admin | 2,337 ▲160 | 5.63 ▼0.02 | 89.30 ▼5.38 | 40.79 ▼0.94 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 1.96 ▲0.02 | 40.97 ▲1.95 | 36.70 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.28 ▲0.20 | 682.07 ▲76.75 | 68.59 ▲16.50 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.16 ▼0.02 | 102.13 ▼1.83 | 42.66 ▲0.65 |
Welcome /wp-admin/admin.php?page=wp-menu-icons | 1,214 | 12.75 | 243.59 | 49.15 |
Premium /wp-admin/admin.php?page=wp-menu-icons&tab=premium | 1,226 | 12.78 | 131.07 | 43.00 |
Suggestions /wp-admin/admin.php?page=wp-menu-icons&tab=suggestions | 1,986 | 11.54 | 127.79 | 51.87 |
Settings /wp-admin/admin.php?page=wp-menu-icons&tab=settings | 1,258 | 11.18 | 127.98 | 47.14 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-menu-icons/wp-menu-icons.php
- 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginDataByFile' not found in wp-content/plugins/wp-menu-icons/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginByFile.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-menu-icons/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/view/suggestions.php:21
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/wp-menu-icons/lib/class-menu-item-custom-fields-walker.php:5
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\WPMI\\Api\\Rest\\Endpoints\\Base' not found in wp-content/plugins/wp-menu-icons/lib/api/rest/endpoints/backend/class-base.php:7
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\WPMI\\Api\\Rest\\Endpoints\\Backend\\Base' not found in wp-content/plugins/wp-menu-icons/lib/api/rest/endpoints/backend/navmenu/class-get.php:8
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\WPMI\\Api\\Rest\\Endpoints\\Backend\\Base' not found in wp-content/plugins/wp-menu-icons/lib/api/rest/endpoints/backend/settings/class-post.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-menu-icons/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/templates/notice.php:13
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\WPMI\\Entities\\Libraries\\Base' not found in wp-content/plugins/wp-menu-icons/lib/entities/libraries/class-elegant-icons.php:9
- > PHP Fatal error
Uncaught Error: Class 'QuadLayers\\WPMI\\Entities\\Libraries\\Base' not found in wp-content/plugins/wp-menu-icons/lib/entities/libraries/class-dashicons.php:9
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/wp-menu-icons/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlug.php on line 20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in wp-menu-icons/assets to your readme.txt
wp-menu-icons/wp-menu-icons.php Passed 13 tests
Analyzing the main PHP file in "WP Menu Icons" version 3.1.8
29 characters long description:
Add icons to your menu items.
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
Good job! No executable or dangerous file extensions detected15,747 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 14 | 19 | 38 | 5,965 |
SVG | 5 | 0 | 3 | 4,747 |
PHP | 75 | 889 | 1,772 | 3,746 |
Markdown | 12 | 270 | 0 | 730 |
JSON | 1 | 0 | 0 | 458 |
JavaScript | 6 | 10 | 17 | 101 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 2 | |
Traits | 3 | |
Classes | 47 | |
▷ Abstract classes | 4 | 8.51% |
▷ Concrete classes | 43 | 91.49% |
▷ Final classes | 1 | 2.33% |
Methods | 260 | |
▷ Static methods | 85 | 32.69% |
▷ Public methods | 218 | 83.85% |
▷ Protected methods | 10 | 3.85% |
▷ Private methods | 32 | 12.31% |
Functions | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.00% |
Constants | 30 | |
▷ Global constants | 30 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.13MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/backend/img/wp-menu-icons-fontello.png | 36.51KB | 37.25KB | 0.00% |
assets/backend/img/logo.png | 9.28KB | 4.16KB | ▼ 55.19% |
assets/backend/img/wp-menu-icons-2.png | 58.58KB | 62.32KB | 0.00% |
assets/backend/img/wp-menu-icons-upload.png | 29.68KB | 29.32KB | ▼ 1.19% |