90% menu-in-menu

Code Review | Menu In Menu

WordPress plugin Menu In Menu scored90%from 54 tests.

About plugin

  • Plugin page: menu-in-menu
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5
  • WordPress version: 6.3.1
  • First release: Apr 2, 2016
  • Latest release: Apr 2, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: wizzud (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /8,845 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Menu In Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.46 ▼4.17
Dashboard /wp-admin3.34 ▼0.0046.84 ▼16.43
Posts /wp-admin/edit.php3.39 ▲0.0350.28 ▼3.12
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.48 ▼15.76
Media Library /wp-admin/upload.php3.26 ▲0.0339.00 ▼3.15

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Menu In Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.40 ▲0.031.87 ▼0.4639.89 ▼0.83
Dashboard /wp-admin2,195 ▲185.58 ▼0.1284.79 ▼8.5442.58 ▼0.11
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0341.69 ▼1.4337.69 ▼0.07
Add New Post /wp-admin/post-new.php1,526 ▼017.68 ▲0.20679.80 ▼25.5052.62 ▼2.55
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.09102.66 ▼14.5150.14 ▲5.37

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: menu

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

"Menu In Menu" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Allow a Custom Menu to include other Custom Menus

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin165 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP157238165

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin