84% bulk-menu-edit

Code Review | Bulk Menu Edit

WordPress plugin Bulk Menu Edit scored84%from 54 tests.

About plugin

  • Plugin page: bulk-menu-edit
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0 or higher-6.2.1
  • WordPress version: 6.3.1
  • First release: Jul 31, 2020
  • Latest release: May 19, 2023
  • Number of updates: 85
  • Update frequency: every 12.0 days
  • Top authors: devloper00 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

700+ active /3,885 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
Install script ran successfully

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

A check of server-side resources used by Bulk Menu Edit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.26 ▲0.25
Dashboard /wp-admin3.32 ▲0.0152.51 ▲1.12
Posts /wp-admin/edit.php3.37 ▲0.0148.47 ▼7.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.50 ▲7.48
Media Library /wp-admin/upload.php3.24 ▲0.0134.41 ▼1.11

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Menu Edit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.20 ▼0.351.73 ▲0.1643.24 ▲2.75
Dashboard /wp-admin2,193 ▲155.57 ▼0.0592.75 ▼7.3540.94 ▼2.70
Posts /wp-admin/edit.php2,107 ▲42.00 ▼0.0437.92 ▼4.9733.40 ▼8.23
Add New Post /wp-admin/post-new.php1,543 ▲1218.17 ▼5.32581.61 ▼102.8035.15 ▼46.10
Media Library /wp-admin/upload.php1,402 ▼14.16 ▼0.0290.21 ▼9.0642.99 ▼1.26

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
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 plugin_dir_url() in wp-content/plugins/bulk-menu-edit/bulk-menu-edit.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

bulk-menu-edit/bulk-menu-edit.php 92% from 13 tests

The primary PHP file in "Bulk Menu Edit" version 1.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "5.0 or higher")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected290 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS102116
JavaScript11514113
PO File18832
PHP193428
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected