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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.26 | 38.39 ▲17.16 |
Dashboard /wp-admin | 3.21 ▲0.15 | 45.66 ▲5.05 |
Posts /wp-admin/edit.php | 3.29 ▲0.18 | 45.92 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 95.08 ▼546.01 |
Media Library /wp-admin/upload.php | 3.15 ▲0.15 | 31.91 ▲5.99 |
Add Submission /wp-admin/post-new.php?post_type=azf_submission | 3.21 | 41.78 |
Forms Submissions /wp-admin/edit.php?post_type=azf_submission | 3.19 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,743 ▲148 | 16.25 ▲0.74 | 8.97 ▲0.87 | 46.66 ▲1.39 |
Dashboard /wp-admin | 3,028 ▲97 | 5.95 ▼0.00 | 136.01 ▼13.41 | 113.27 ▼7.49 |
Posts /wp-admin/edit.php | 2,794 ▲55 | 2.70 ▲0.01 | 65.83 ▲0.62 | 90.48 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,532 ▲32 | 18.64 ▲0.13 | 365.13 ▲10.52 | 106.20 ▼14.83 |
Media Library /wp-admin/upload.php | 1,865 ▲58 | 5.02 ▲0.01 | 148.91 ▲0.94 | 116.72 ▲2.36 |
Add Submission /wp-admin/post-new.php?post_type=azf_submission | 2,692 | 3.70 | 113.48 | 99.22 |
Forms Submissions /wp-admin/edit.php?post_type=azf_submission | 1,489 | 2.62 | 68.68 | 75.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 120 | 20 | 2,998 |
LESS | 4 | 69 | 7 | 617 |
PHP | 2 | 30 | 8 | 495 |
HTML | 17 | 9 | 0 | 125 |
JSON | 2 | 0 | 0 | 119 |
CSS | 2 | 11 | 0 | 61 |
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 code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
azh/forms/submit-confirmation.png | 2.12KB | 2.11KB | ▼ 0.60% |
azh/general/form-without-submit.png | 3.71KB | 3.35KB | ▼ 9.78% |
azh/forms/sum-container.png | 2.97KB | 2.08KB | ▼ 29.84% |
azh/forms/radio-color-fan.png | 0.79KB | 0.46KB | ▼ 40.99% |
azh/forms/submit-button.png | 5.54KB | 3.02KB | ▼ 45.49% |