90% menu-duplicator

Code Review | Menu Duplicator

WordPress plugin Menu Duplicator scored90%from 54 tests.

About plugin

  • Plugin page: menu-duplicator
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 12, 2016
  • Latest release: Aug 20, 2023
  • Number of updates: 52
  • Update frequency: every 50.6 days
  • Top authors: jeremyrwross (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

10,000+ active /51,682 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.23ms] Passed 4 tests

A check of server-side resources used by Menu Duplicator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.93 ▼0.84
Dashboard /wp-admin3.34 ▼0.0151.02 ▼15.13
Posts /wp-admin/edit.php3.39 ▲0.0353.03 ▲3.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.13 ▼7.96
Media Library /wp-admin/upload.php3.26 ▲0.0339.59 ▲5.89
Menu Duplicator /wp-admin/tools.php?page=menu-duplicator3.2329.74

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/menu-duplicator/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Menu Duplicator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3313.15 ▼1.601.77 ▼0.2443.60 ▲1.88
Dashboard /wp-admin2,228 ▲254.86 ▼1.01109.09 ▲7.5142.96 ▲0.18
Posts /wp-admin/edit.php2,104 ▲72.04 ▲0.0341.16 ▲3.3039.12 ▲2.01
Add New Post /wp-admin/post-new.php1,548 ▲323.31 ▲0.23669.61 ▲58.7162.84 ▲11.47
Media Library /wp-admin/upload.php1,407 ▲44.22 ▼0.0493.62 ▼8.4143.19 ▼2.08
Menu Duplicator /wp-admin/tools.php?page=menu-duplicator8362.0524.7026.91

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

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)
No browser issues were found

Optimizations

Plugin configuration Passed 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
3 plugin tags: menu, navigation, nav

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

This is the main PHP file of "Menu Duplicator" version 0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
33 characters long description:
Quickly duplicate WordPress menus

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin157 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23891154
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin