10% jquery-easy-menu

Code Review | Easy menus

WordPress plugin Easy menus scored10%from 54 tests.

About plugin

  • Plugin page: jquery-easy-menu
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.9
  • WordPress version: 6.3.1
  • First release: Jun 25, 2012
  • Latest release: Jul 1, 2014
  • Number of updates: 9
  • Update frequency: every 83.2 days
  • Top authors: extendyourweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /24,500 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/jquery-easy-menu/jquery-easy-menu.php+1102
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼59.34ms] Passed 4 tests

Server-side resources used by Easy menus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.50 ▼38.39
Dashboard /wp-admin2.05 ▼1.306.02 ▼55.88
Posts /wp-admin/edit.php2.05 ▼1.314.83 ▼46.42
Add New Post /wp-admin/post-new.php2.05 ▼3.846.19 ▼96.67
Media Library /wp-admin/upload.php2.05 ▼1.185.36 ▼29.60

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_wp_easymenu
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy menus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲16913.40 ▼1.3510.05 ▲7.9642.77 ▼3.05
Dashboard /wp-admin2,260 ▲805.58 ▼0.1086.21 ▼2.8145.28 ▼1.48
Posts /wp-admin/edit.php2,162 ▲591.99 ▼0.0334.32 ▼8.7436.81 ▲0.61
Add New Post /wp-admin/post-new.php1,612 ▲7123.16 ▼0.04658.46 ▼26.0860.56 ▲4.10
Media Library /wp-admin/upload.php1,456 ▲534.20 ▼0.05100.18 ▼6.7642.99 ▼5.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/jquery-easy-menu/jquery-easy-menu.php+1102
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_wp_easymenu
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Menus samples), #2 (Page/Post Shortcodes), #3 (Widget)
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

jquery-easy-menu/jquery-easy-menu.php 92% from 13 tests

The main PHP file in "Easy menus" ver. 3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin6,635 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript128677084,353
CSS1248121,511
PHP3400442724
PO File1141647

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.40
▷ Minimum class complexity11.00
▷ Maximum class complexity16.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods25
▷ Static methods14.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/overlay.png6.95KB1.17KB▼ 83.21%
images/round1.png35.70KB11.76KB▼ 67.05%
images/minilogo.png2.69KB1.73KB▼ 35.68%