Benchmarks
Plugin footprint 65% 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: ▲5.46MB] [CPU: ▲19.08ms] 75% from 4 tests
Analyzing server-side resources used by Menu Image, Icons made easy
Please take the time to fix the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.46MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.29 ▲5.83 | 62.93 ▲17.64 |
Dashboard /wp-admin | 9.31 ▲5.97 | 75.72 ▲18.59 |
Posts /wp-admin/edit.php | 9.31 ▲5.95 | 69.63 ▲26.13 |
Add New Post /wp-admin/post-new.php | 10.00 ▲4.11 | 105.33 ▲13.95 |
Media Library /wp-admin/upload.php | 9.31 ▲6.08 | 71.55 ▲35.62 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.31 | 55.53 |
Server storage [IO: ▲3.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 195 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_accounts |
widget_recent-comments |
db_upgraded |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
fs_active_plugins |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Menu Image, Icons made easy
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 14.25 ▲0.04 | 1.52 ▼0.13 | 30.79 ▼10.24 |
Dashboard /wp-admin | 2,231 ▲51 | 5.64 ▼0.03 | 81.66 ▼5.98 | 41.87 ▼0.05 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.98 ▲0.03 | 40.31 ▲6.28 | 37.54 ▲2.91 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 22.93 ▼0.29 | 673.24 ▼50.46 | 55.50 ▼2.80 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.20 ▼0.01 | 97.36 ▼6.77 | 48.18 ▲4.56 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,098 | 1.66 | 24.43 | 27.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/menu-image/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- db_upgraded
- fs_debug_mode
- fs_accounts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- fs_active_plugins
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
5 plugin tags: menu, icons, navigation, nav menu, image
menu-image/menu-image.php Passed 13 tests
The primary PHP file in "Menu Image, Icons made easy" version 3.10 is used by WordPress to initiate all plugin functionality
70 characters long description:
Improve your navigation menu items with images, logos, icons, buttons.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin35,707 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 8,083 | 17,515 | 34,467 |
CSS | 15 | 7 | 3 | 549 |
JavaScript | 4 | 121 | 88 | 546 |
PO File | 3 | 50 | 52 | 145 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 94.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 2 | 4.08% |
▷ Concrete classes | 47 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,300 | |
▷ Static methods | 197 | 15.15% |
▷ Public methods | 909 | 69.92% |
▷ Protected methods | 19 | 1.46% |
▷ Private methods | 372 | 28.62% |
Functions | 98 | |
▷ Named functions | 98 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/img/menu-image-60.png | 6.92KB | 2.74KB | ▼ 60.50% |
includes/assets/img/pro-badge-2.png | 5.19KB | 2.29KB | ▼ 55.86% |
includes/assets/img/pro-button-2.png | 3.46KB | 1.72KB | ▼ 50.23% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/assets/img/pro-badge-1.png | 5.03KB | 2.20KB | ▼ 56.39% |