78% widget-builder-for-elementor

Code Review | EleBuilder - Widget Creator and Builder for Elementor

WordPress plugin EleBuilder - Widget Creator and Builder for Elementor scored 78% from 54 tests.

About plugin

  • Plugin page: widget-builder-fo...
  • Plugin version: 1.0.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: May 6, 2020
  • Number of updates: 15
  • Update frequency: every 1.5 days
  • Top authors: elementorwidgetbuilder (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10+ active / 1,619 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.03MB] [CPU: ▼25.05ms] Passed 4 tests

This is a short check of server-side resources used by EleBuilder - Widget Creator and Builder for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.04 ▼2.64
Dashboard /wp-admin3.35 ▲0.0450.47 ▼13.48
Posts /wp-admin/edit.php3.46 ▲0.1057.46 ▼83.30
Add New Post /wp-admin/post-new.php5.93 ▲0.0397.20 ▼0.77
Media Library /wp-admin/upload.php3.27 ▲0.0338.40 ▲2.12

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

EleBuilder - Widget Creator and Builder for Elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲1813.64 ▼1.122.13 ▲0.0147.15 ▼3.89
Dashboard /wp-admin2,224 ▲325.87 ▲1.03101.28 ▼30.1542.73 ▼9.69
Posts /wp-admin/edit.php2,106 ▲172.07 ▲0.0134.75 ▼4.9339.27 ▲5.15
Add New Post /wp-admin/post-new.php1,532 ▼823.33 ▲0.15585.98 ▼66.7753.59 ▲12.09
Media Library /wp-admin/upload.php1,409 ▲214.24 ▲0.0598.37 ▲0.3143.36 ▼3.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/widget-builder-for-elementor/includes/admin/views/welcome-message.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/widget-builder-for-elementor/includes/custom-widget/classes/base.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/widget-builder-for-elementor/includes/admin/views/welcome-message.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
You can take inspiration from this readme.txt

widget-builder-for-elementor/elebuilder.php 85% from 13 tests

The primary PHP file in "EleBuilder - Widget Creator and Builder for Elementor" version 1.0.3.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("widget-builder-for-elementor.php" instead of "elebuilder.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin1,713 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP127511,3531,554
CSS452103
SVG70050
JavaScript6026

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity27.89
▷ Minimum class complexity1.00
▷ Maximum class complexity102.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods153
▷ Static methods106.54%
▷ Public methods11373.86%
▷ Protected methods117.19%
▷ Private methods2918.95%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants320.00%
▷ Class constants1280.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin