78% wpmh-clone-menu

Code Review | WPMH Clone Menu

WordPress plugin WPMH Clone Menu scored78%from 54 tests.

About plugin

  • Plugin page: wpmh-clone-menu
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Oct 15, 2022
  • Latest release: Oct 15, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: Vala bhavesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /222 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.65ms] Passed 4 tests

An overview of server-side resources used by WPMH Clone Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.1043.96 ▼1.77
Dashboard /wp-admin3.69 ▲0.0550.93 ▼20.88
Posts /wp-admin/edit.php3.74 ▲0.0654.46 ▼1.02
Add New Post /wp-admin/post-new.php6.22 ▲0.0886.08 ▼18.91
Media Library /wp-admin/upload.php3.55 ▲0.0639.62 ▲2.69

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPMH Clone Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13113.50 ▼0.908.91 ▲7.1940.14 ▼1.64
Dashboard /wp-admin2,215 ▲385.55 ▼0.1285.26 ▼8.6370.80 ▲28.75
Posts /wp-admin/edit.php2,123 ▲231.99 ▼0.0638.48 ▼2.3633.71 ▼4.06
Add New Post /wp-admin/post-new.php1,549 ▲1523.03 ▼0.22724.80 ▲108.2753.14 ▼1.64
Media Library /wp-admin/upload.php1,411 ▲144.17 ▼0.09101.86 ▲1.0574.01 ▲29.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wpmh-clone-menu/public/partials/wpmh-clone-menu-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_nav_menus() in wp-content/plugins/wpmh-clone-menu/admin/partials/wpmh-clone-menu-admin-display.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: clone menu, wordpress menu, copy menu, wp menu clone, menu duplicate...

wpmh-clone-menu/wpmh-clone-menu.php 92% from 13 tests

The principal PHP file in "WPMH Clone Menu" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected415 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12137552321
JavaScript265491
SVG2002
CSS2081

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.14
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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
admin/images/experimental-documents-arcadeX20.png1.55KB1.38KB▼ 10.96%
admin/images/experimental-documents-arcade.png7.69KB4.00KB▼ 48.03%