84% dashboard-welcome-for-beaver-builder

Code Review | Dashboard Welcome for Beaver Builder

WordPress plugin Dashboard Welcome for Beaver Builder scored84%from 54 tests.

About plugin

  • Plugin page: dashboard-welcome...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2016
  • Latest release: Sep 22, 2023
  • Number of updates: 21
  • Update frequency: every 118.0 days
  • Top authors: ideaboxcreations (71.43%)ibachal (33.33%)

Code review

54 tests

User reviews

7 reviews

Install metrics

5,000+ active /26,500 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.72ms] Passed 4 tests

Analyzing server-side resources used by Dashboard Welcome for Beaver Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.08 ▼2.43
Dashboard /wp-admin3.35 ▲0.0446.49 ▼12.87
Posts /wp-admin/edit.php3.46 ▲0.1053.00 ▼1.54
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.89 ▲1.96
Media Library /wp-admin/upload.php3.27 ▲0.0437.84 ▲4.50

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard Welcome for Beaver Builder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.23 ▼1.394.24 ▲2.2144.08 ▼0.03
Dashboard /wp-admin2,209 ▲215.87 ▲0.98106.79 ▲1.0340.67 ▼2.12
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0239.23 ▼0.5434.05 ▼2.32
Add New Post /wp-admin/post-new.php1,542 ▲918.46 ▼4.87598.54 ▼88.3354.02 ▼5.11
Media Library /wp-admin/upload.php1,391 ▲34.33 ▲0.1592.64 ▼9.1041.01 ▼2.89

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/dashboard-welcome-for-beaver-builder/includes/welcome-panel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/dashboard-welcome-for-beaver-builder/includes/admin-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dashboard-welcome-for-beaver-builder/bb-dashboard-welcome.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dashboard-welcome-for-beaver-builder/classes/class-dw-admin.php:81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

dashboard-welcome-for-beaver-builder/bb-dashboard-welcome.php 92% from 13 tests

"Dashboard Welcome for Beaver Builder" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("dashboard-welcome-for-beaver-builder.php" instead of "bb-dashboard-welcome.php")

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
There were no executable files found in this plugin409 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP467190359
Markdown122037
CSS10013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods17
▷ Static methods17100.00%
▷ Public methods1164.71%
▷ Protected methods00.00%
▷ Private methods635.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin