84% ht-wpform

Code Review | WPForms Widget For Elementor Page Builder

WordPress plugin WPForms Widget For Elementor Page Builder scored 84% from 54 tests.

About plugin

  • Plugin page: ht-wpform
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 2, 2019
  • Latest release: Aug 1, 2023
  • Number of updates: 22
  • Update frequency: every 73.4 days
  • Top authors: htplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active / 44,966 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WPForms Widget For Elementor Page Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.26 ▼1.36
Dashboard /wp-admin3.31 ▲0.0145.33 ▼0.42
Posts /wp-admin/edit.php3.36 ▲0.0147.86 ▼0.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.64 ▲0.07
Media Library /wp-admin/upload.php3.24 ▲0.0135.07 ▼0.69

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

WPForms Widget For Elementor Page Builder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▼214.39 ▼0.371.62 ▼0.3142.05 ▼2.16
Dashboard /wp-admin2,215 ▲64.85 ▼0.20106.41 ▲11.7435.79 ▼0.61
Posts /wp-admin/edit.php2,097 ▲82.06 ▲0.0336.02 ▲2.7233.00 ▼0.76
Add New Post /wp-admin/post-new.php1,543 ▲2922.96 ▲5.30646.44 ▼10.9049.74 ▼1.52
Media Library /wp-admin/upload.php1,394 ▲64.23 ▲0.0293.53 ▼13.5644.82 ▼1.19

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ht-wpform/index.php:3

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: elementor addons, wpforms widget, elementor, wpforms, contact form

ht-wpform/wpform-widget-elementor.php 85% from 13 tests

The main PHP file in "WPForms Widget For Elementor Page Builder" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ht-wpform.php" instead of "wpform-widget-elementor.php")

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
Everything looks great! No dangerous files found in this plugin917 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP412640883
YAML22034

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity12.50
▷ Minimum class complexity6.00
▷ Maximum class complexity19.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1588.24%
▷ Protected methods211.76%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
.wordpress-org/screenshot-1.png11.09KB5.51KB▼ 50.33%
.wordpress-org/banner-772x250.png61.99KB29.45KB▼ 52.49%
.wordpress-org/screenshot-3.png11.19KB5.49KB▼ 50.91%
.wordpress-org/screenshot-2.png21.19KB8.46KB▼ 60.06%
.wordpress-org/icon-128x128.png5.56KB4.05KB▼ 27.15%