61% all-contact-form-integration-for-elementor

Code Review | EleForms - All In One Form Integration including DB for Elementor

WordPress plugin EleForms - All In One Form Integration including DB for Elementor scored61%from 54 tests.

About plugin

  • Plugin page: all-contact-form-...
  • Plugin version: 2.9.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Jul 16, 2018
  • Latest release: Aug 28, 2023
  • Number of updates: 54
  • Update frequency: every 34.6 days
  • Top authors: innovs (70.37%)cscode (25.93%)shawon786 (7.41%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /78,423 total downloads

Benchmarks

Plugin footprint 65% from 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.30MB] [CPU: ▼6.14ms] Passed 4 tests

A check of server-side resources used by EleForms - All In One Form Integration including DB for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3449.69 ▲1.34
Dashboard /wp-admin3.64 ▲0.3059.67 ▼17.06
Posts /wp-admin/edit.php3.69 ▲0.3459.36 ▲4.69
Add New Post /wp-admin/post-new.php6.18 ▲0.2993.83 ▼13.53
Media Library /wp-admin/upload.php3.50 ▲0.2844.39 ▲6.98
View Element /wp-admin/admin.php?page=view_db_element_form3.4841.03

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 53 new files
Database: 1 new table, 8 new options
New tables
wp_db_element_form
New WordPress options
widget_recent-posts
cssfe_install_time
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
void_db_element_elementor_activation_time
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for EleForms - All In One Form Integration including DB for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲22314.05 ▼0.265.61 ▲3.8643.62 ▼0.77
Dashboard /wp-admin2,289 ▲1005.29 ▲0.38111.13 ▼13.4037.73 ▼9.08
Posts /wp-admin/edit.php2,175 ▲862.59 ▲0.5944.57 ▲8.2735.06 ▼0.71
Add New Post /wp-admin/post-new.php1,588 ▲5623.04 ▲4.62662.72 ▼13.5366.06 ▲14.97
Media Library /wp-admin/upload.php1,477 ▲924.65 ▲0.44108.88 ▲12.4240.76 ▼1.95
View Element /wp-admin/admin.php?page=view_db_element_form9362.0531.0535.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_db_element_form
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • void_db_element_elementor_activation_time
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • cssfe_install_time
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=view_db_element_form
    • > Notice in wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/view_element_page.php+12
    Undefined index: id
    • > GET request to /wp-admin/admin.php?page=view_db_element_form
    • > Notice in wp-content/plugins/all-contact-form-integration-for-elementor/admin/class-db-elementor-form-admin.php+374
    Undefined offset: 0
    • > GET request to /wp-admin/admin.php?page=view_db_element_form
    • > Notice in wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/view_element_page.php+5
    Trying to get property 'submitedBy' of non-object
    • > GET request to /wp-admin/admin.php?page=view_db_element_form
    • > Notice in wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/view_element_page.php+33
    Trying to get property 'formID' of non-object
    • > GET request to /wp-admin/admin.php?page=view_db_element_form
    • > Notice in wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/view_element_page.php+42
    Trying to get property 'formData' of non-object
    • > GET request to /wp-admin/admin.php?page=view_db_element_form
    • > Warning in wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/view_element_page.php+42
    Invalid argument supplied for foreach()

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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/plugin-name-admin-display.php
    • > /wp-content/plugins/all-contact-form-integration-for-elementor/public/partials/plugin-name-public-display.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'DB_Elementor_Form_Admin' not found in wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/view_element_page.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/all-contact-form-integration-for-elementor/includes/elementor-helper.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/all-contact-form-integration-for-elementor/admin/partials/db_element_form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-contact-form-integration-for-elementor/includes/wp-ajax.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can take inspiration from this readme.txt

all-contact-form-integration-for-elementor/all-in-one-contact-forms-integration-elementor.php 77% from 13 tests

Analyzing the main PHP file in "EleForms - All In One Form Integration including DB for Elementor" version 2.9.9.6
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("all-contact-form-integration-for-elementor.php" instead of "all-in-one-contact-forms-integration-elementor.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin10,754 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42,0057,0896,433
PHP299371,1383,602
CSS101558719

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.17
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods121
▷ Static methods1814.88%
▷ Public methods10385.12%
▷ Protected methods97.44%
▷ Private methods97.44%
Functions26
▷ Named functions2596.15%
▷ Anonymous functions13.85%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/theinnovs.png50.31KB14.92KB▼ 70.35%