94% clone-menu

Code Review | WP Clone Menu

WordPress plugin WP Clone Menu scored 94% from 54 tests.

About plugin

  • Plugin page: clone-menu
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.2
  • WordPress version: 5.8.1
  • First release: Feb 22, 2017
  • Latest release: Jan 24, 2018
  • Number of updates: 7
  • Update frequency: every 47.7 days
  • Top authors: afzalmultani (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 9,039 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼169.93ms] Passed 4 tests

This is a short check of server-side resources used by WP Clone Menu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0240.10 ▲10.59
Dashboard /wp-admin3.08 ▲0.0238.04 ▼7.12
Posts /wp-admin/edit.php3.13 ▲0.0143.98 ▼7.27
Add New Post /wp-admin/post-new.php5.44 ▲0.0087.20 ▼666.18
Media Library /wp-admin/upload.php3.02 ▲0.0235.11 ▲0.86

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Clone Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲8615.93 ▲0.329.42 ▼0.7450.68 ▼0.30
Dashboard /wp-admin2,993 ▲625.89 ▼0.25132.66 ▼11.38114.20 ▼1.82
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0262.96 ▼4.9395.06 ▲7.49
Add New Post /wp-admin/post-new.php1,628 ▲3721.92 ▲3.08266.86 ▼118.56106.27 ▲2.95
Media Library /wp-admin/upload.php1,830 ▲235.06 ▲0.02139.89 ▼13.55122.81 ▼8.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/clone-menu/clone-menu.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: clone menu, wp menu clone, menu duplicate, copy menu

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

The main PHP file in "WP Clone Menu" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
32 characters long description:
Clone WordPress menu very easily

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected143 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
PNG images were not found in this plugin