83% dashboard-welcome-for-elementor

Code Review | Dashboard Welcome for Elementor

WordPress plugin Dashboard Welcome for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: dashboard-welcome...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2018
  • Latest release: Dec 13, 2022
  • Number of updates: 23
  • Update frequency: every 70.1 days
  • Top authors: ideaboxcreations (82.61%)simrandeep (17.39%)ibachal (8.7%)

Code review

54 tests

User reviews

21 reviews

Install metrics

20,000+ active /102,149 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲1.11ms] Passed 4 tests

This is a short check of server-side resources used by Dashboard Welcome for Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.18 ▼2.37
Dashboard /wp-admin3.32 ▲0.0246.97 ▼0.39
Posts /wp-admin/edit.php3.37 ▲0.0249.32 ▲1.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0295.46 ▲10.75
Media Library /wp-admin/upload.php3.24 ▲0.0136.83 ▲5.77

Server storage [IO: ▲0.14MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dashboard Welcome for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.22 ▼1.181.54 ▼0.1036.37 ▼4.72
Dashboard /wp-admin2,212 ▲214.86 ▼0.04109.75 ▲7.1542.89 ▲4.75
Posts /wp-admin/edit.php2,097 ▲82.01 ▼0.1639.93 ▼2.0835.48 ▲1.52
Add New Post /wp-admin/post-new.php1,543 ▲923.42 ▲0.41613.48 ▼55.1052.03 ▼6.59
Media Library /wp-admin/upload.php1,397 ▲64.21 ▲0.0095.32 ▲0.4739.43 ▼5.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/dashboard-welcome-for-elementor/includes/admin-settings.php:5
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/dashboard-welcome-for-elementor/includes/admin-settings.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/dashboard-welcome-for-elementor/includes/welcome-panel.php:2

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

dashboard-welcome-for-elementor/dashboard-welcome-elementor.php 85% from 13 tests

The principal PHP file in "Dashboard Welcome for Elementor" v. 1.0.7 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("dashboard-welcome-for-elementor.php" instead of "dashboard-welcome-elementor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,162 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP84978031,938
Markdown2770184
JSON10021
CSS14019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity40.83
▷ Minimum class complexity8.00
▷ Maximum class complexity81.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods109
▷ Static methods32.75%
▷ Public methods7165.14%
▷ Protected methods65.50%
▷ Private methods3229.36%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin