56% forminator

Code Review | Forminator - Contact Form, Payment Form & Custom Form Builder

WordPress plugin Forminator - Contact Form, Payment Form & Custom Form Builder scored56%from 54 tests.

About plugin

  • Plugin page: forminator
  • Plugin version: 1.28.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4
  • WordPress version: 6.3.1
  • First release: Sep 4, 2018
  • Latest release: Nov 13, 2023
  • Number of updates: 125
  • Update frequency: every 15.2 days
  • Top authors: alerzhus (38.4%)Dency (32.8%)jdailey (21.6%)rickjc89 (8%)vanyukov (2.4%)

Code review

54 tests

User reviews

1531 reviews

Install metrics

400,000+ active /5,676,787 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲16.29MB] [CPU: ▲130.37ms] 50% from 4 tests

This is a short check of server-side resources used by Forminator - Contact Form, Payment Form & Custom Form Builder
Please take the time to fix the following items
  • RAM: Try to keep total memory usage under 10MB (currently 22.31MB on /wp-admin/admin.php?page=forminator-settings)
  • Extra RAM: The extra memory usage should kept under 5MB (currently 16.29MB on /wp-admin/admin.php?page=forminator-settings)
PageMemory (MB)CPU Time (ms)
Home /17.77 ▲14.30145.21 ▲102.03
Dashboard /wp-admin22.28 ▲18.97214.46 ▲160.01
Posts /wp-admin/edit.php20.29 ▲16.93187.62 ▲143.45
Add New Post /wp-admin/post-new.php22.87 ▲16.98231.36 ▲130.33
Media Library /wp-admin/upload.php20.18 ▲16.95177.60 ▲145.66
Integrations /wp-admin/admin.php?page=forminator-integrations22.31188.00
Quizzes /wp-admin/admin.php?page=forminator-quiz22.27210.53
Dashboard /wp-admin/admin.php?page=forminator22.27194.41
View Quizzes /wp-admin/admin.php?page=forminator-quiz-view19.99147.33
Polls /wp-admin/admin.php?page=forminator-poll22.27192.39
New Custom Form /wp-admin/admin.php?page=forminator-cform-wizard22.32171.30
Forminator Pro /wp-admin/admin.php?page=forminator-upgrade22.28184.68
Add-ons /wp-admin/admin.php?page=forminator-addons22.28188.69
Submissions /wp-admin/admin.php?page=forminator-entries22.28198.42
Settings /wp-admin/admin.php?page=forminator-settings22.31218.81

Server storage [IO: ▲35.85MB] [DB: ▲0.02MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • Try to limit filesystem usage to 25MB (currently using 35.85MB)
Filesystem: 1,645 new files
Database: 8 new tables, 13 new options
New tables
wp_frmt_form_entry
wp_actionscheduler_claims
wp_frmt_form_reports
wp_actionscheduler_actions
wp_frmt_form_views
wp_actionscheduler_logs
wp_frmt_form_entry_meta
wp_actionscheduler_groups
New WordPress options
schema-ActionScheduler_StoreSchema
forminator_default_report_entry
db_upgraded
forminator_appearance_presets
theysaidso_admin_options
widget_recent-comments
widget_forminator_widget
widget_theysaidso_widget
widget_recent-posts
schema-ActionScheduler_LoggerSchema
...

Browser metrics Passed 4 tests

Checking browser requirements for Forminator - Contact Form, Payment Form & Custom Form Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,860 ▲3,11321.32 ▲7.071.78 ▲0.0940.33 ▼7.35
Dashboard /wp-admin5,272 ▲3,09111.42 ▲5.74209.28 ▲97.27128.03 ▲83.24
Posts /wp-admin/edit.php2,184 ▲812.06 ▲0.0339.70 ▲1.0437.11 ▲2.37
Add New Post /wp-admin/post-new.php2,120 ▲59421.38 ▼1.70719.97 ▲48.2148.41 ▼2.29
Media Library /wp-admin/upload.php1,486 ▲834.09 ▼0.0783.15 ▼15.5744.61 ▲1.76
Integrations /wp-admin/admin.php?page=forminator-integrations4,3727.02113.87147.34
Quizzes /wp-admin/admin.php?page=forminator-quiz4,0228.83112.51115.27
Dashboard /wp-admin/admin.php?page=forminator4,3238.31100.5984.69
View Quizzes /wp-admin/admin.php?page=forminator-quiz-view4,0088.73114.4045.64
Polls /wp-admin/admin.php?page=forminator-poll4,0208.82109.83106.56
New Custom Form /wp-admin/admin.php?page=forminator-cform-wizard1,5939.54196.5848.37
Forminator Pro /wp-admin/admin.php?page=forminator-upgrade4,1987.00113.4476.77
Add-ons /wp-admin/admin.php?page=forminator-addons5,0097.25133.15111.19
Submissions /wp-admin/admin.php?page=forminator-entries3,9958.67111.4377.37
Settings /wp-admin/admin.php?page=forminator-settings4,4698.80276.49108.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 8 tables
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
    • wp_frmt_form_views
    • wp_frmt_form_entry
    • wp_actionscheduler_groups
    • wp_frmt_form_reports
    • wp_actionscheduler_logs
    • wp_frmt_form_entry_meta
  • The uninstall procedure has failed, leaving 14 options in the database
    • can_compress_scripts
    • action_scheduler_hybrid_store_demarkation
    • theysaidso_admin_options
    • widget_forminator_widget
    • schema-ActionScheduler_StoreSchema
    • action_scheduler_migration_status
    • forminator_default_report_entry
    • db_upgraded
    • schema-ActionScheduler_LoggerSchema
    • forminator_appearance_presets
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/forminator/admin/views/poll/wizard/content.php
    • > /wp-content/plugins/forminator/admin/views/common/list/temp_css.php
    • > /wp-content/plugins/forminator/admin/views/custom-form/wizard/content.php
    • > /wp-content/plugins/forminator/admin/views/quiz/nowrong/content.php
    • > /wp-content/plugins/forminator/admin/views/quiz/knowledge/content.php
    • > /wp-content/plugins/forminator/addons/pro/zapier/views/settings/setup-connect-success.php
  • 882× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Forminator\\Stripe\\Service\\AbstractService' not found in wp-content/plugins/forminator/library/external/src/Forminator/stripe/stripe-php/lib/Service/PromotionCodeService.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Forminator_Google_Service' not found in wp-content/plugins/forminator/addons/pro/googlesheet/lib/external/Google/Service/AdExchangeSeller.php:30
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/forminator/addons/pro/aweber/views/sections/authorize.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'Forminator_Core' not found in wp-content/plugins/forminator/admin/views/settings/tab-payments.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Forminator_Calculator_Symbol_Abstract' not found in wp-content/plugins/forminator/library/calculator/symbol/brackets/class-opening-bracket.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Forminator_GFBlock_Abstract' not found in wp-content/plugins/forminator/addons/pro/gutenberg/library/blocks/class-forminator-gfblock-polls.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/forminator/addons/pro/campaignmonitor/views/form-settings/setup-list.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Forminator\\Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/forminator/library/external/src/Forminator/stripe/stripe-php/lib/Exception/ApiErrorException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Forminator\\Stripe\\ApiResource' not found in wp-content/plugins/forminator/library/external/src/Forminator/stripe/stripe-php/lib/Issuing/Dispute.php:27
    • > PHP Notice
      Undefined variable: template_vars in wp-content/plugins/forminator/addons/pro/campaignmonitor/views/quiz-settings/map-fields.php on line 14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt is a good inspiration

forminator/forminator.php 92% from 13 tests

"Forminator - Contact Form, Payment Form & Custom Form Builder" version 1.28.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 193 characters long)

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
It is important to fix the following items
  • Do not include executable or dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/forminator/library/external/src/Forminator/stripe/stripe-php/data/ca-certificates.crt
387,962 lines of code in 1,419 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,02838,946102,288317,756
CSS555,43919628,721
HTML2102,423020,908
JavaScript1132,7193,31514,420
JSON1004,910
SVG600834
Markdown61430413

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.17
▷ Minimum class complexity1.00
▷ Maximum class complexity417.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces27
Interfaces12
Traits7
Classes4,494
▷ Abstract classes691.54%
▷ Concrete classes4,42598.46%
▷ Final classes110.25%
Methods34,941
▷ Static methods8852.53%
▷ Public methods34,08897.56%
▷ Protected methods3491.00%
▷ Private methods5041.44%
Functions325
▷ Named functions28788.31%
▷ Anonymous functions3811.69%
Constants1,164
▷ Global constants252.15%
▷ Class constants1,13997.85%
▷ Public constants1,139100.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
155 PNG files occupy 1.53MB with 0.92MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/forminator-disabled@2x.png5.83KB2.53KB▼ 56.59%
assets/images/pdf-template-receipt.png4.84KB2.61KB▼ 46.13%
addons/pro/webhook/assets/icons/webhook@2x.png1.39KB0.71KB▼ 48.84%
(invalid) assets/images/forminator-stripe-logo.png1.05KB0.00KB▼ 100.00%
library/lib/free-notices/assets/images/giveaway/success/common.png10.47KB5.35KB▼ 48.88%