10% easy-menu-handler

Code Review | Easy Menu Handler (EMH)

WordPress plugin Easy Menu Handler (EMH) scored10%from 54 tests.

About plugin

  • Plugin page: easy-menu-handler
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2015
  • Latest release: Oct 1, 2015
  • Number of updates: 7
  • Update frequency: every 2.7 days
  • Top authors: demigraphic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /2,989 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SetupFunctions::install_emh() should not be called statically

Server metrics [RAM: ▼0.11MB] [CPU: ▼7.58ms] Passed 4 tests

This is a short check of server-side resources used by Easy Menu Handler (EMH)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.44 ▲4.23
Dashboard /wp-admin3.30 ▼0.0150.58 ▼4.79
Posts /wp-admin/edit.php3.37 ▲0.0151.15 ▲2.95
Add New Post /wp-admin/post-new.php5.45 ▼0.4474.36 ▼31.07
Media Library /wp-admin/upload.php3.22 ▼0.0237.27 ▲2.60

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy Menu Handler (EMH): an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.24 ▲0.012.08 ▼0.1643.98 ▼0.64
Dashboard /wp-admin2,195 ▲185.62 ▲0.0592.65 ▼10.1140.56 ▼6.84
Posts /wp-admin/edit.php2,103 ▲32.10 ▼0.0642.10 ▲5.1035.23 ▲1.08
Add New Post /wp-admin/post-new.php1,531 ▲523.26 ▲0.07682.59 ▼54.1256.93 ▲4.00
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.1598.25 ▼10.7142.41 ▼3.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/easy-menu-handler/EasyMenuHandler.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: menu, quick menu remove, plugins, navigation, one-click...

easy-menu-handler/EasyMenuHandler.php 92% from 13 tests

The main PHP script in "Easy Menu Handler (EMH)" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-menu-handler.php" instead of "EasyMenuHandler.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin123 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript125090
PHP3232528
CSS1205

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/redbin.png3.10KB0.64KB▼ 79.34%
images/bin.png3.29KB0.77KB▼ 76.54%