68% menu-manager-ultra

Code Review | Menu Manager Ultra

WordPress plugin Menu Manager Ultra scored 68% from 54 tests.

About plugin

  • Plugin page: menu-manager-ultra
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: Mar 12, 2023
  • Latest release: Aug 29, 2023
  • Number of updates: 23
  • Update frequency: every 7.5 days
  • Top authors: jkplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 310 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.57MB] [CPU: ▲0.82ms] 75% from 4 tests

Server-side resources used by Menu Manager Ultra
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 1,988.84ms on /wp-admin/themes.php?page=menu-manager-ultra)
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6141.71 ▲1.45
Dashboard /wp-admin3.91 ▲0.6147.45 ▼3.08
Posts /wp-admin/edit.php3.96 ▲0.6150.08 ▼0.47
Add New Post /wp-admin/post-new.php6.56 ▲0.67133.90 ▲28.72
Media Library /wp-admin/upload.php3.67 ▲0.4539.66 ▲5.39
Menu Manager Ultra /wp-admin/themes.php?page=menu-manager-ultra3.961,988.84
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius4.0440.10

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 254 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
fs_accounts
fs_active_plugins
fs_debug_mode
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Menu Manager Ultra
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲10814.33 ▼0.051.74 ▲0.0832.69 ▼17.34
Dashboard /wp-admin2,243 ▲556.06 ▲0.15121.21 ▲13.4145.64 ▲1.58
Posts /wp-admin/edit.php2,137 ▲452.89 ▲0.9047.22 ▲6.7860.41 ▲25.19
Add New Post /wp-admin/post-new.php1,529 ▼423.87 ▲0.72662.35 ▲63.1634.51 ▼16.60
Media Library /wp-admin/upload.php1,436 ▲455.57 ▲1.34102.42 ▼2.4643.30 ▼1.48
Menu Manager Ultra /wp-admin/themes.php?page=menu-manager-ultra1,2162.6438.5465.15
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1112.8731.2127.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/menu-manager-ultra/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • db_upgraded
    • can_compress_scripts
    • fs_active_plugins
    • fs_debug_mode
    • fs_accounts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/menu-manager-ultra/templates/app.php
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'MenuManagerUltra\\API\\ReturnValue' not found in wp-content/plugins/menu-manager-ultra/src/API/MenuItemsReturnValue.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/menu-manager-ultra/src/API/Endpoints/Menus.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/menu-manager-ultra/src/API/Endpoints/MenuItems.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'MenuManagerUltra\\API\\ReturnValue' not found in wp-content/plugins/menu-manager-ultra/src/API/MenusReturnValue.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-manager-ultra/menu-manager-routes.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/menu-manager-ultra/src/API/Endpoints/FieldData.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'MenuManagerUltra\\lib\\CustomField\\CustomFieldInterface' not found in wp-content/plugins/menu-manager-ultra/src/lib/CustomField/CustomField_ACF.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/menu-manager-ultra/menu-manager-routes.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/menu-manager-ultra/src/API/Endpoints/Posts.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'MenuManagerUltra\\API\\ReturnValue' not found in wp-content/plugins/menu-manager-ultra/src/API/MenuReturnValue.php:7

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 96% from 29 tests

readme.txt Passed 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
4 plugin tags: menu, menu edit, menu manager, large menu

menu-manager-ultra/menu-manager-ultra.php 92% from 13 tests

Analyzing the main PHP file in "Menu Manager Ultra" version 1.0.9
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis 97% from 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
There were no executable files found in this plugin66,487 lines of code in 206 files:
LanguageFilesBlank linesComment linesLines of code
PHP1518,67817,55834,846
JavaScript353,5662,58218,169
JSON40012,072
CSS142410814
Sass116425585
Markdown1001

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity65.11
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces10
Interfaces1
Traits0
Classes71
▷ Abstract classes22.82%
▷ Concrete classes6997.18%
▷ Final classes45.80%
Methods1,369
▷ Static methods22816.65%
▷ Public methods97971.51%
▷ Protected methods171.24%
▷ Private methods37327.25%
Functions146
▷ Named functions11377.40%
▷ Anonymous functions3322.60%
Constants160
▷ Global constants10163.12%
▷ Class constants5936.88%
▷ Public constants59100.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.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/menu-manager-ultra.png12.07KB2.12KB▼ 82.44%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%