84% bcm-duplicate-menu

Code Review | BCM Duplicate Menu

WordPress plugin BCM Duplicate Menu scored84%from 54 tests.

About plugin

  • Plugin page: bcm-duplicate-menu
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 1, 2018
  • Latest release: Sep 1, 2023
  • Number of updates: 31
  • Update frequency: every 56.0 days
  • Top authors: bcmdev (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active /16,527 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by BCM Duplicate Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.84 ▼5.75
Dashboard /wp-admin3.31 ▼0.0449.73 ▼14.20
Posts /wp-admin/edit.php3.36 ▲0.0047.82 ▼2.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.72 ▼14.95
Media Library /wp-admin/upload.php3.23 ▲0.0035.96 ▼1.65

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for BCM Duplicate Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▲0.281.90 ▲0.1444.55 ▼0.27
Dashboard /wp-admin2,198 ▲245.62 ▲0.0291.67 ▼5.3841.09 ▼2.29
Posts /wp-admin/edit.php2,103 ▲31.99 ▲0.0133.85 ▼4.1632.53 ▼3.43
Add New Post /wp-admin/post-new.php1,526 ▼023.37 ▼0.21673.71 ▼13.1653.84 ▲4.85
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.02103.69 ▼8.7645.92 ▼7.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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bcm-duplicate-menu/bcm-duplicate-menu.php:14

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === bcm-duplicate-menu === )
You can look at the official readme.txt

bcm-duplicate-menu/bcm-duplicate-menu.php Passed 13 tests

The principal PHP file in "BCM Duplicate Menu" v. 1.1.2 is loaded by WordPress automatically on each request
38 characters long description:
The easiest way to duplicate your menu

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
There were no executable files found in this plugin172 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13525114
PO File2141658

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

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