90% merge-menus

Code Review | Merge Menus

WordPress plugin Merge Menus scored90%from 54 tests.

About plugin

  • Plugin page: merge-menus
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Aug 19, 2022
  • Latest release: Nov 30, 2023
  • Number of updates: 7
  • Update frequency: every 66.9 days
  • Top authors: wphelpdeskuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.31ms] Passed 4 tests

This is a short check of server-side resources used by Merge Menus
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.67 ▼4.02
Dashboard /wp-admin3.35 ▲0.0545.31 ▼4.71
Posts /wp-admin/edit.php3.40 ▲0.0446.71 ▼0.24
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.46 ▲3.79
Media Library /wp-admin/upload.php3.27 ▲0.0434.41 ▼0.28

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Merge Menus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲5414.33 ▼0.381.67 ▼0.0435.88 ▼7.64
Dashboard /wp-admin2,198 ▲235.60 ▼0.1096.23 ▼19.7241.24 ▼13.61
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0539.66 ▲0.9836.25 ▲0.64
Add New Post /wp-admin/post-new.php1,526 ▼523.37 ▲0.55606.53 ▼66.9850.29 ▼5.88
Media Library /wp-admin/upload.php1,400 ▼34.21 ▼0.0096.58 ▼6.0440.60 ▼4.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: menu, combine, merge

merge-menus/merge-menus.php Passed 13 tests

The main file in "Merge Menus" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Merge WordPress menus! Import 1 menu into another to save time when copying a menu over to a new menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin463 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1580281
PHP14060182

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin