84% elform

Code Review | Elementor Form Builder

WordPress plugin Elementor Form Builder scored84%from 54 tests.

About plugin

  • Plugin page: elform
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Dec 8, 2021
  • Latest release: Dec 8, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mhmdm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /308 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.17ms] Passed 4 tests

An overview of server-side resources used by Elementor Form Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.38 ▼5.58
Dashboard /wp-admin3.31 ▲0.0145.83 ▼5.64
Posts /wp-admin/edit.php3.37 ▲0.0148.31 ▼2.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.63 ▼15.36
Media Library /wp-admin/upload.php3.24 ▲0.0136.04 ▲0.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Elementor Form Builder: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.26 ▼1.201.91 ▼0.1239.76 ▼4.32
Dashboard /wp-admin2,203 ▲125.84 ▲0.93102.05 ▲0.0838.84 ▼4.27
Posts /wp-admin/edit.php2,086 ▼62.02 ▲0.0235.86 ▲0.5133.71 ▲2.29
Add New Post /wp-admin/post-new.php1,514 ▼2817.61 ▼0.70684.61 ▲78.1653.45 ▲1.02
Media Library /wp-admin/upload.php1,388 ▲64.23 ▲0.02110.41 ▲12.6247.55 ▲3.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/elform/elform.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in elform/assets to your readme.txt
The official readme.txt might help

elform/elform.php Passed 13 tests

The primary PHP file in "Elementor Form Builder" version 1.0.0 is used by WordPress to initiate all plugin functionality
39 characters long description:
Advanced Elementor form builder widget.

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 plugin1,302 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP61752181,198
CSS114059
JavaScript16445

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity21.80
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes240.00%
▷ Concrete classes360.00%
▷ Final classes00.00%
Methods37
▷ Static methods25.41%
▷ Public methods1335.14%
▷ Protected methods1540.54%
▷ Private methods924.32%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin