Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼2.67ms] Passed 4 tests
An overview of server-side resources used by Menu Icons by ThemeIsle
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 52.42 ▲8.08 |
Dashboard /wp-admin | 3.51 ▲0.17 | 58.97 ▼8.42 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 49.37 ▼1.65 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 97.66 ▼7.43 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 42.82 ▲6.82 |
Server storage [IO: ▲5.35MB] [DB: ▲0.38MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 169 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
menu_icons_install |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Menu Icons by ThemeIsle
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 13.30 ▼0.89 | 1.91 ▲0.27 | 26.92 ▼14.35 |
Dashboard /wp-admin | 2,349 ▲160 | 4.83 ▼0.12 | 103.76 ▼6.70 | 48.07 ▲5.91 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.04 | 35.55 ▼2.33 | 35.77 ▲3.93 |
Add New Post /wp-admin/post-new.php | 1,524 ▲2 | 23.84 ▲0.71 | 696.82 ▼15.00 | 57.53 ▼28.49 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.21 ▼0.15 | 101.77 ▼18.77 | 43.61 ▼4.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.38MB] 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
- The uninstall procedure has failed, leaving 7 options in the database
- menu_icons_install
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 no errors were found, 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
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Icon_Picker_Type_Font' not found in wp-content/plugins/menu-icons/vendor/codeinwp/icon-picker/includes/types/foundation-icons.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-icons/menu-icons.php:250
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/menu-icons/vendor/codeinwp/menu-item-custom-fields/walker-nav-menu-edit.php:15
- > PHP Fatal error
Uncaught Error: Class 'Icon_Picker_Type_Font' not found in wp-content/plugins/menu-icons/vendor/codeinwp/icon-picker/includes/types/elusive.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-icons/vendor/codeinwp/menu-item-custom-fields/doc/menu-item-custom-fields-example.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/menu-icons/includes/media-template.php:127
- > PHP Fatal error
Uncaught Error: Class 'CMB_Field' not found in wp-content/plugins/menu-icons/vendor/codeinwp/icon-picker/includes/fields/cmb.php:10
- > PHP Fatal error
Uncaught Error: Class 'Icon_Picker_Type_Font' not found in wp-content/plugins/menu-icons/vendor/codeinwp/icon-picker/includes/types/genericon.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: navigation, nav-menu, menu, icons
menu-icons/menu-icons.php Passed 13 tests
"Menu Icons by ThemeIsle" version 0.13.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Spice up your navigation menus with pretty icons, easily.
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 plugin31,042 lines of code in 124 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 69 | 1,948 | 5,190 | 17,776 |
CSS | 22 | 103 | 64 | 5,057 |
SVG | 5 | 0 | 6 | 4,512 |
JavaScript | 21 | 631 | 755 | 2,955 |
Markdown | 6 | 355 | 0 | 571 |
JSON | 1 | 0 | 0 | 171 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 16.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 5 | 8.62% |
▷ Concrete classes | 53 | 91.38% |
▷ Final classes | 11 | 20.75% |
Methods | 492 | |
▷ Static methods | 120 | 24.39% |
▷ Public methods | 397 | 80.69% |
▷ Protected methods | 40 | 8.13% |
▷ Private methods | 55 | 11.18% |
Functions | 37 | |
▷ Named functions | 18 | 48.65% |
▷ Anonymous functions | 19 | 51.35% |
Constants | 23 | |
▷ Global constants | 1 | 4.35% |
▷ Class constants | 22 | 95.65% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.29MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-patterns.png | 87.50KB | 87.41KB | 0.10% |
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-builder.png | 26.41KB | 26.24KB | ▼ 0.63% |
vendor/codeinwp/themeisle-sdk/assets/images/wplk.png | 1.92KB | 1.27KB | ▼ 33.69% |
images/otter-block.png | 4.67KB | 2.67KB | ▼ 42.69% |
vendor/codeinwp/themeisle-sdk/assets/images/sparks.png | 2.63KB | 1.34KB | ▼ 49.07% |