68% contact-forms-builder

Code Review | Contact Form Builder, Contact Widget

WordPress plugin Contact Form Builder, Contact Widget scored68%from 54 tests.

About plugin

  • Plugin page: contact-forms-bui...
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Nov 5, 2023
  • Number of updates: 325
  • Update frequency: every 7.9 days
  • Top authors: wpdevart (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

3,000+ active /264,099 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.65MB] [CPU: ▲2.93ms] Passed 4 tests

Analyzing server-side resources used by Contact Form Builder, Contact Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6745.13 ▲8.57
Dashboard /wp-admin3.99 ▲0.6953.26 ▲4.98
Posts /wp-admin/edit.php4.05 ▲0.6948.00 ▼1.81
Add New Post /wp-admin/post-new.php6.51 ▲0.6386.69 ▼0.02
Media Library /wp-admin/upload.php3.85 ▲0.6345.59 ▲11.81
Wpdevart Forms /wp-admin/admin.php?page=wpdevart-forms-list3.8742.03
Edit /wp-admin/admin.php?page=wpdevart-forms-edit4.2136.58
Styling /wp-admin/admin.php?page=wpdevart-forms-styling3.8534.30
Featured Plugins /wp-admin/admin.php?page=featured_plugins3.8234.58
Uninstall /wp-admin/admin.php?page=wpda_form_uninstall3.8235.55
Add New /wp-admin/admin.php?page=wpdevart-forms-add-new3.9937.47
Extra Settings /wp-admin/admin.php?page=wpdevart-forms-extra-settings3.8436.58
Submissions /wp-admin/admin.php?page=wpdevart-forms-submissions3.9434.67
Settings /wp-admin/admin.php?page=wpdevart-forms-settings3.8033.87

Server storage [IO: ▲2.96MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 121 new files
Database: 5 new tables, 8 new options
New tables
wp_wpda_form_subfields
wp_wpda_form_submissions
wp_wpda_form_forms
wp_wpda_form_submit_time
wp_wpda_form_fields
New WordPress options
can_compress_scripts
db_upgraded
widget_wpdevart-forms
wpdevart_forms_plugin_version
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form Builder, Contact Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6114.07 ▼0.141.63 ▼0.0443.41 ▼0.31
Dashboard /wp-admin2,229 ▲575.54 ▼0.0986.72 ▼18.1281.40 ▲36.57
Posts /wp-admin/edit.php2,131 ▲282.00 ▲0.0637.05 ▼3.9536.30 ▼4.01
Add New Post /wp-admin/post-new.php6,393 ▲4,86727.53 ▲4.40969.87 ▲319.0541.03 ▼11.96
Media Library /wp-admin/upload.php1,428 ▲284.14 ▼0.08109.43 ▲12.6274.95 ▲32.02
Wpdevart Forms /wp-admin/admin.php?page=wpdevart-forms-list1,6412.0933.8568.55
Edit /wp-admin/admin.php?page=wpdevart-forms-edit1,7262.3336.1633.53
Styling /wp-admin/admin.php?page=wpdevart-forms-styling1,5482.3430.9728.21
Featured Plugins /wp-admin/admin.php?page=featured_plugins1,1072.0024.8040.82
Uninstall /wp-admin/admin.php?page=wpda_form_uninstall8952.0024.5730.63
Add New /wp-admin/admin.php?page=wpdevart-forms-add-new2,9542.4346.9659.30
Extra Settings /wp-admin/admin.php?page=wpdevart-forms-extra-settings9882.4331.7630.45
Submissions /wp-admin/admin.php?page=wpdevart-forms-submissions7191.4910.7419.35
Settings /wp-admin/admin.php?page=wpdevart-forms-settings7181.4911.0419.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 5 tables in the database
    • wp_wpda_form_submit_time
    • wp_wpda_form_forms
    • wp_wpda_form_subfields
    • wp_wpda_form_fields
    • wp_wpda_form_submissions
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_wpdevart-forms
    • theysaidso_admin_options
    • widget_recent-comments
    • wpdevart_forms_plugin_version
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/contact-forms-builder/wpdevart-layout/footer.php
    • > /wp-content/plugins/contact-forms-builder/wpdevart-inc/add-new-form.php
    • > /wp-content/plugins/contact-forms-builder/wpdevart-layout/help.php
    • > /wp-content/plugins/contact-forms-builder/wpdevart-inc/extra-settings.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-forms-builder/classes/GDPR.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: contact form plugin, responsive contact form, contact form, wordpress contact form, form builder

contact-forms-builder/wpdevart-form.php 85% from 13 tests

The entry point to "Contact Form Builder, Contact Widget" version 2.1.7 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("contact-forms-builder.php" instead of "wpdevart-form.php")
  • Description: The description should be shorter than 140 characters (currently 231 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin16,171 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PHP238875626,142
CSS23143965,328
JavaScript256115144,129
SVG100565
Markdown1106
INI1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity11.80
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods46
▷ Static methods48.70%
▷ Public methods3780.43%
▷ Protected methods00.00%
▷ Private methods919.57%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
27 PNG files occupy 0.35MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/featured_plugins/vertical-menu.png6.36KB3.88KB▼ 39.03%
images/featured_plugins/facebook-comments-icon.png35.59KB9.23KB▼ 74.06%
images/featured_plugins/lightbox.png10.00KB4.64KB▼ 53.64%
images/featured_plugins/chart-featured.png9.09KB4.30KB▼ 52.70%
assets/images/arrows_down.png1.16KB0.33KB▼ 71.24%