90% custom-menu-icons

Code Review | Custom Menu Icons

WordPress plugin Custom Menu Icons scored90%from 54 tests.

About plugin

  • Plugin page: custom-menu-icons
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 19, 2021
  • Latest release: Jun 19, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sandipmondal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.05ms] Passed 4 tests

An overview of server-side resources used by Custom Menu Icons
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.69 ▼1.47
Dashboard /wp-admin3.35 ▲0.0045.13 ▼13.39
Posts /wp-admin/edit.php3.40 ▲0.0446.82 ▼2.07
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.39 ▼18.91
Media Library /wp-admin/upload.php3.27 ▲0.0433.17 ▼1.83

Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Custom Menu Icons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.59 ▼0.791.91 ▲0.0741.61 ▼1.33
Dashboard /wp-admin2,203 ▲155.79 ▼0.11100.31 ▲1.4039.92 ▼2.57
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0340.63 ▲0.4835.12 ▼2.38
Add New Post /wp-admin/post-new.php1,534 ▲122.70 ▼0.56594.75 ▼53.5252.35 ▲4.91
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.0997.37 ▼1.4542.49 ▼3.66

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: icons for navbar, icons for menu, custom menu icons, menu icons

custom-menu-icons/custom-menu-icons.php Passed 13 tests

"Custom Menu Icons" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Add icons from Font Awesome, Material Design and Dashicons to your menu items EASILY!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,854 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6512,5309,003
CSS2417340
Sass2271298
PHP27626201
HTML10012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin