88% menu-helper

Code Review | Menu Helper

WordPress plugin Menu Helper scored 88% from 53 tests.

About plugin

  • Plugin page: menu-helper
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 5.8.1
  • First release: May 29, 2013
  • Latest release: May 30, 2013
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: SimonaIlie (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 847 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼273.40ms] Passed 4 tests

This is a short check of server-side resources used by Menu Helper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.94 ▲16.15
Dashboard /wp-admin3.06 ▲0.0151.18 ▲8.76
Posts /wp-admin/edit.php3.11 ▲0.0144.14 ▼0.51
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.40 ▼1,095.30
Media Library /wp-admin/upload.php3.00 ▼0.0030.78 ▼6.53
Menu Helper Info /wp-admin/options-general.php?page=menu-helper-info3.0427.28

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Menu Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,654 ▲4815.96 ▲0.466.82 ▼0.9643.94 ▼5.02
Dashboard /wp-admin2,938 ▲855.93 ▼0.12138.29 ▼15.98101.91 ▲0.11
Posts /wp-admin/edit.php2,711 ▲52.69 ▼0.0163.47 ▲0.4886.39 ▼0.75
Add New Post /wp-admin/post-new.php1,654 ▲17318.46 ▼0.08348.46 ▼35.73108.95 ▼2.42
Media Library /wp-admin/upload.php1,777 ▲25.01 ▲0.04143.69 ▼13.74110.96 ▼2.44
Menu Helper Info /wp-admin/options-general.php?page=menu-helper-info1,2812.2856.2784.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/menu-helper/menu-helper.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant MENU_HELPER_PLUGIN_URL - assumed 'MENU_HELPER_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/menu-helper/includes/description.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/menu-helper/includes/description.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
You can take inspiration from this readme.txt

menu-helper/menu-helper.php Passed 13 tests

The entry point to "Menu Helper" version 1.1 is a PHP file that has certain tags in its header comment area
140 characters long description:
Users can use short-codes to retrieve different sub-menus. In Settings -> Menu Helper Info are described the options provided by the plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin348 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26258348

PHP code Passed 2 tests

An short overview of 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.58
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected