68% bootstrap-main-menu-responsive

Code Review | bootstrap main menu responsive

WordPress plugin bootstrap main menu responsive scored68%from 54 tests.

About plugin

  • Plugin page: bootstrap-main-me...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Apr 9, 2015
  • Number of updates: 19
  • Update frequency: every 0.6 days
  • Top authors: jarim (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /11,243 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by bootstrap main menu responsive
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.89 ▼35.82
Dashboard /wp-admin2.17 ▼1.147.49 ▼50.24
Posts /wp-admin/edit.php2.17 ▼1.196.99 ▼43.98
Add New Post /wp-admin/post-new.php2.17 ▼3.726.99 ▼113.98
Media Library /wp-admin/upload.php2.17 ▼1.066.26 ▼33.33
bootstrap_M_menu /wp-admin/options-general.php?page=bootstrap_main_menu_list_option2.175.87

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
bootstrap_main_menu_option
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for bootstrap main menu responsive
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14813.56 ▼0.8212.95 ▲11.0153.17 ▲10.65
Dashboard /wp-admin2,199 ▲195.60 ▲0.0385.09 ▼11.7340.28 ▼5.27
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0133.66 ▼5.9433.03 ▼0.66
Add New Post /wp-admin/post-new.php1,530 ▼823.17 ▲0.22607.29 ▼64.5958.10 ▼10.69
Media Library /wp-admin/upload.php1,404 ▲74.19 ▲0.10101.77 ▼23.8747.19 ▼0.79
bootstrap_M_menu /wp-admin/options-general.php?page=bootstrap_main_menu_list_option1,1973.2443.4728.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+67
    Undefined index: menu_name_option_bmmj
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+219
    Undefined index: menu_name_option_bmmj
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+234
    Undefined index: menu_appareance_option_bmmj
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+287
    Undefined index: menu_register_option_bmmj
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+282
    Undefined index: menu_login_option_bmmj
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+292
    Undefined index: menu_search_option_bmmj
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+297
    Undefined index: menu_sitename_option_bmmj
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+257
    Undefined index: logo_option_bmmj
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+277
    Undefined index: logo_show_option_bmmj
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+266
    Undefined index: logo_height_option_bmmj
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=bootstrap_main_menu_list_option
    • > Notice in wp-content/plugins/bootstrap-main-menu-responsive/Class_Install_BootstrapJarim.php+263
    Undefined index: logo_width_option_bmmj

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bootstrap-main-menu-responsive/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

bootstrap-main-menu-responsive/index.php 92% from 13 tests

The main file in "bootstrap main menu responsive" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bootstrap-main-menu-responsive.php" instead of "index.php")

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
There were no executable files found in this plugin857 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP4217130511
SVG100288
JavaScript3313250
CSS241598

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity19.33
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin