10% bh-dashboard-menus-settings

Code Review | BH Dashboard Menus Settings

WordPress plugin BH Dashboard Menus Settings scored10%from 54 tests.

About plugin

  • Plugin page: bh-dashboard-menu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jul 4, 2015
  • Latest release: Jul 4, 2015
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: masumbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,143 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/bh-dashboard-menus-settings/plugin-main.php+512
    Undefined variable: bh_bh_wordpress_dashboard_rename_settings

Server metrics [RAM: ▼1.79MB] [CPU: ▼51.59ms] Passed 4 tests

A check of server-side resources used by BH Dashboard Menus Settings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.264.91 ▼36.84
Dashboard /wp-admin2.22 ▼1.096.54 ▼42.79
Posts /wp-admin/edit.php2.22 ▼1.146.44 ▼40.64
Add New Post /wp-admin/post-new.php2.22 ▼3.676.25 ▼86.08
Media Library /wp-admin/upload.php2.22 ▼1.015.17 ▼27.03
BH WordPress Dashboard Menus Settings /wp-admin/options-general.php?page=bh_wp_dashboard_menus_settings2.226.09
Privacy /wp-admin/options-general.php?page=2.226.98
Link Categories /wp-admin/link-manager.php?page=2.235.41

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

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

Browser metrics Passed 4 tests

A check of browser resources used by BH Dashboard Menus Settings
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,787 ▲3013.30 ▼1.081.68 ▼0.3543.63 ▼4.72
Dashboard /wp-admin2,193 ▲25.89 ▲0.99103.45 ▼17.0239.41 ▼4.91
Posts /wp-admin/edit.php2,076 ▼132.03 ▼0.0234.91 ▼3.1136.00 ▲1.06
Add New Post /wp-admin/post-new.php1,535 ▲223.32 ▲0.15642.93 ▼23.4853.86 ▲1.90
Media Library /wp-admin/upload.php1,378 ▼44.18 ▼0.02100.99 ▼5.3642.04 ▼1.40
BH WordPress Dashboard Menus Settings /wp-admin/options-general.php?page=bh_wp_dashboard_menus_settings1,5562.0623.1235.07
Privacy /wp-admin/options-general.php?page=280.440.093.69
Link Categories /wp-admin/link-manager.php?page=310.440.063.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/bh-dashboard-menus-settings/plugin-main.php+512
    Undefined variable: bh_bh_wordpress_dashboard_rename_settings
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/link-manager.php?page=
    • > Notice in wp-content/plugins/bh-dashboard-menus-settings/plugin-main.php+512
    Undefined variable: bh_bh_wordpress_dashboard_rename_settings
    • > GET request to /wp-admin/options-general.php?page=bh_wp_dashboard_menus_settings
    • > Notice in wp-admin/menu-header.php+202
    Undefined offset: 1
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/link-manager.php?page=
    • > Notice in wp-admin/includes/plugin.php+1946
    Undefined offset: 2

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-dashboard-menus-settings/plugin-main.php:17

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=
    • > Network (severe)
    wp-admin/options-general.php?page= - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/link-manager.php?page=
    • > Network (severe)
    wp-admin/link-manager.php?page= - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg), #3 (screenshot-3.jpg), #4 (screenshot-4.jpg)
The official readme.txt might help

bh-dashboard-menus-settings/plugin-main.php 92% from 13 tests

"BH Dashboard Menus Settings" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bh-dashboard-menus-settings.php" instead of "plugin-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin467 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18116467

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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