84% bulk-menu-creator

Code Review | Bulk menu creator

WordPress plugin Bulk menu creator scored84%from 54 tests.

About plugin

  • Plugin page: bulk-menu-creator
  • Plugin version: 9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 17, 2018
  • Latest release: Oct 25, 2023
  • Number of updates: 41
  • Update frequency: every 50.0 days
  • Top authors: kubiq (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /15,621 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.54ms] Passed 4 tests

An overview of server-side resources used by Bulk menu creator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.55 ▼11.54
Dashboard /wp-admin3.34 ▼0.0044.29 ▼13.97
Posts /wp-admin/edit.php3.39 ▲0.0444.51 ▼3.33
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.85 ▼1.31
Media Library /wp-admin/upload.php3.26 ▲0.0435.79 ▼0.44

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Bulk menu creator: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.37 ▼0.161.74 ▼0.3540.38 ▼2.39
Dashboard /wp-admin2,195 ▲185.61 ▼0.0090.62 ▲2.4642.97 ▲3.30
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0339.83 ▲3.5334.41 ▼3.84
Add New Post /wp-admin/post-new.php1,531 ▲323.09 ▲0.03589.88 ▼88.3848.90 ▼16.84
Media Library /wp-admin/upload.php1,400 ▲64.17 ▲0.0092.71 ▼14.1241.34 ▼2.44

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-menu-creator/bulk-menu-creator.php:15

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

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Screenshots: Please add descriptions for these screenshots #10, #3, #4, #5, #6, #7, #8, #9 in bulk-menu-creator/assets to your readme.txt
The official readme.txt is a good inspiration

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

The principal PHP file in "Bulk menu creator" v. 9.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Everything looks great! No dangerous files found in this plugin412 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32019270
PHP11210114
PO File16628

PHP code Passed 2 tests

Analyzing 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.41
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/lines.png9.82KB11.30KB0.00%