94% form-widget-for-elementor

Code Review | Form Widget for Elementor

WordPress plugin Form Widget for Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: form-widget-for-e...
  • Plugin version: 1.27.15
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 5.8.1
  • First release: Jan 17, 2018
  • Latest release: Nov 11, 2018
  • Number of updates: 24
  • Update frequency: every 12.4 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,735 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Form Widget for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.2638.39 ▲17.16
Dashboard /wp-admin3.21 ▲0.1545.66 ▲5.05
Posts /wp-admin/edit.php3.29 ▲0.1845.92 ▼0.64
Add New Post /wp-admin/post-new.php5.57 ▲0.1495.08 ▼546.01
Media Library /wp-admin/upload.php3.15 ▲0.1531.91 ▲5.99
Add Submission /wp-admin/post-new.php?post_type=azf_submission3.2141.78
Forms Submissions /wp-admin/edit.php?post_type=azf_submission3.1934.53

Server storage [IO: ▲0.24MB] [DB: ▲0.62MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Form Widget for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,743 ▲14816.25 ▲0.748.97 ▲0.8746.66 ▲1.39
Dashboard /wp-admin3,028 ▲975.95 ▼0.00136.01 ▼13.41113.27 ▼7.49
Posts /wp-admin/edit.php2,794 ▲552.70 ▲0.0165.83 ▲0.6290.48 ▲2.80
Add New Post /wp-admin/post-new.php1,532 ▲3218.64 ▲0.13365.13 ▲10.52106.20 ▼14.83
Media Library /wp-admin/upload.php1,865 ▲585.02 ▲0.01148.91 ▲0.94116.72 ▲2.36
Add Submission /wp-admin/post-new.php?post_type=azf_submission2,6923.70113.4899.22
Forms Submissions /wp-admin/edit.php?post_type=azf_submission1,4892.6268.6875.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.62MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/form-widget-for-elementor/azh_forms.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-widget-for-elementor/settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: elementor, elementor widget, elementor payment form, elementor calculator, elementor form widget...

form-widget-for-elementor/azh_forms.php 85% from 13 tests

"Form Widget for Elementor" version 1.27.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("form-widget-for-elementor.php" instead of "azh_forms.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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,415 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4120202,998
LESS4697617
PHP2308495
HTML1790125
JSON200119
CSS211061

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
18 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
azh/forms/submit-confirmation.png2.12KB2.11KB▼ 0.60%
azh/general/form-without-submit.png3.71KB3.35KB▼ 9.78%
azh/forms/sum-container.png2.97KB2.08KB▼ 29.84%
azh/forms/radio-color-fan.png0.79KB0.46KB▼ 40.99%
azh/forms/submit-button.png5.54KB3.02KB▼ 45.49%