83% d-elementor-widgets

Code Review | D-Elementor-widgets

WordPress plugin D-Elementor-widgets scored83%from 54 tests.

About plugin

  • Plugin page: d-elementor-widgets
  • Plugin version: 5.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Aug 7, 2021
  • Latest release: Aug 7, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: salahelhamouly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /389 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.16MB] [CPU: ▼14.33ms] Passed 4 tests

A check of server-side resources used by D-Elementor-widgets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.72 ▼0.66
Dashboard /wp-admin3.21 ▼0.0933.47 ▼15.65
Posts /wp-admin/edit.php3.28 ▼0.0836.81 ▼12.00
Add New Post /wp-admin/post-new.php5.45 ▼0.4469.25 ▼29.00
Media Library /wp-admin/upload.php3.21 ▼0.0132.70 ▼0.63

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for D-Elementor-widgets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲9713.14 ▼1.231.84 ▲0.1440.56 ▲0.53
Dashboard /wp-admin2,224 ▲394.86 ▼0.99109.84 ▲7.0641.88 ▲1.65
Posts /wp-admin/edit.php2,109 ▲202.00 ▲0.0141.09 ▲5.1736.62 ▲5.55
Add New Post /wp-admin/post-new.php1,555 ▲1318.25 ▼0.02635.62 ▲41.7152.53 ▼10.36
Media Library /wp-admin/upload.php1,406 ▲184.16 ▼0.0697.43 ▼1.9642.49 ▼2.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function DelwElementor\\apply_filters() in wp-content/plugins/d-elementor-widgets/elementor/class-widgets.php:6

User-side errors Passed 1 test

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


Plugin configuration 86% 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 to be fixed:
  • Tags: There are too many tags (19 tag instead of maximum 10)
Please take inspiration from this readme.txt

d-elementor-widgets/d-elementor.php 77% from 13 tests

Analyzing the main PHP file in "D-Elementor-widgets" version 5.8
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.6" instead of "5.5")
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("d-elementor-widgets.php" instead of "d-elementor.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
Success! There were no dangerous files found in this plugin9,052 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity18.67
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
▷ Static methods12.17%
▷ Public methods3984.78%
▷ Protected methods715.22%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected