84% menu-icons

Code Review | Menu Icons by ThemeIsle

WordPress plugin Menu Icons by ThemeIsle scored84%from 54 tests.

About plugin

  • Plugin page: menu-icons
  • Plugin version: 0.13.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2014
  • Latest release: Sep 11, 2023
  • Number of updates: 98
  • Update frequency: every 35.6 days
  • Top authors: kucrut (57.14%)themeisle (24.49%)codeinwp (20.41%)

Code review

54 tests

User reviews

789 reviews

Install metrics

200,000+ active /2,986,310 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2252.42 ▲8.08
Dashboard /wp-admin3.51 ▲0.1758.97 ▼8.42
Posts /wp-admin/edit.php3.61 ▲0.2549.37 ▼1.65
Add New Post /wp-admin/post-new.php6.09 ▲0.2097.66 ▼7.43
Media Library /wp-admin/upload.php3.42 ▲0.1942.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,945 ▲19913.30 ▼0.891.91 ▲0.2726.92 ▼14.35
Dashboard /wp-admin2,349 ▲1604.83 ▼0.12103.76 ▼6.7048.07 ▲5.91
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0435.55 ▼2.3335.77 ▲3.93
Add New Post /wp-admin/post-new.php1,524 ▲223.84 ▲0.71696.82 ▼15.0057.53 ▼28.49
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.15101.77 ▼18.7743.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP691,9485,19017,776
CSS22103645,057
SVG5064,512
JavaScript216317552,955
Markdown63550571
JSON100171

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 code0.38
Average class complexity16.79
▷ Minimum class complexity1.00
▷ Maximum class complexity135.00
Average method complexity2.79
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes58
▷ Abstract classes58.62%
▷ Concrete classes5391.38%
▷ Final classes1120.75%
Methods492
▷ Static methods12024.39%
▷ Public methods39780.69%
▷ Protected methods408.13%
▷ Private methods5511.18%
Functions37
▷ Named functions1848.65%
▷ Anonymous functions1951.35%
Constants23
▷ Global constants14.35%
▷ Class constants2295.65%
▷ Public constants22100.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
FileSize - originalSize - compressedSavings
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-patterns.png87.50KB87.41KB0.10%
vendor/codeinwp/themeisle-sdk/assets/images/otter/otter-builder.png26.41KB26.24KB▼ 0.63%
vendor/codeinwp/themeisle-sdk/assets/images/wplk.png1.92KB1.27KB▼ 33.69%
images/otter-block.png4.67KB2.67KB▼ 42.69%
vendor/codeinwp/themeisle-sdk/assets/images/sparks.png2.63KB1.34KB▼ 49.07%