68% formidable

Code Review | Formidable Forms - Contact Form, Survey, Quiz, Payment, Calculator Form & Custom Form Builder

WordPress plugin Formidable Forms - Contact Form, Survey, Quiz, Payment, Calculator Form & Custom Form Builder scored68%from 54 tests.

About plugin

  • Plugin page: formidable
  • Plugin version: 6.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.4.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2009
  • Latest release: Nov 30, 2023
  • Number of updates: 1,313
  • Update frequency: every 3.9 days
  • Top authors: sswells (86.52%)formidableforms (6.78%)srwells (5.26%)jamie.wahlin (1.68%)

Code review

54 tests

User reviews

1053 reviews

Install metrics

300,000+ active /18,880,471 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲2.70MB] [CPU: ▲19.61ms] Passed 4 tests

This is a short check of server-side resources used by Formidable Forms - Contact Form, Survey, Quiz, Payment, Calculator Form & Custom Form Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /5.51 ▲2.0547.23 ▲6.72
Dashboard /wp-admin6.24 ▲2.9473.77 ▲23.23
Posts /wp-admin/edit.php6.30 ▲2.9571.79 ▲22.99
Add New Post /wp-admin/post-new.php9.44 ▲3.56339.19 ▲238.55
Media Library /wp-admin/upload.php6.10 ▲2.8859.70 ▲25.51
Entries /wp-admin/admin.php?page=formidable-entries7.3080.86
Inbox 1 /wp-admin/admin.php?page=formidable-inbox6.4577.97
Import/Export /wp-admin/admin.php?page=formidable-import7.1169.66
Upgrade /wp-admin/admin.php?page=formidable-pro-upgrade6.4570.77
Views /wp-admin/admin.php?page=formidable-views7.3163.93
Add-Ons /wp-admin/admin.php?page=formidable-addons7.3186.93
Applications /wp-admin/admin.php?page=formidable-applications6.1856.57
SMTP /wp-admin/admin.php?page=formidable-smtp6.4570.24
Global Settings /wp-admin/admin.php?page=formidable-settings7.0473.77
Forms (Lite) /wp-admin/admin.php?page=formidable8.93369.66

Server storage [IO: ▲6.90MB] [DB: ▲0.42MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 420 new files
Database: 4 new tables, 13 new options
New tables
wp_frm_items
wp_frm_fields
wp_frm_item_metas
wp_frm_forms
New WordPress options
widget_frm_show_form
widget_theysaidso_widget
widget_recent-posts
frm_options
db_upgraded
theysaidso_admin_options
frm_strp_options
frm_connect_token
frm_honeypot_class
frm_last_style_update
...

Browser metrics 75% from 4 tests

Formidable Forms - Contact Form, Survey, Quiz, Payment, Calculator Form & Custom Form Builder: an overview of browser usage
Please improve the following
  • Nodes: It is recommended to reduce the number of DOM nodes under 25,000 (currently 27,844 on /wp-admin/admin.php?page=formidable)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲16414.62 ▲0.341.80 ▼0.0837.41 ▼8.79
Dashboard /wp-admin2,297 ▲1205.65 ▲0.1295.03 ▼14.2641.75 ▲0.76
Posts /wp-admin/edit.php2,209 ▲1092.00 ▲0.0440.62 ▲1.9933.37 ▼0.62
Add New Post /wp-admin/post-new.php6,342 ▲4,81626.44 ▲3.26812.19 ▲204.5137.48 ▼10.51
Media Library /wp-admin/upload.php1,506 ▲1034.17 ▼0.0597.57 ▼1.9342.24 ▼1.08
Entries /wp-admin/admin.php?page=formidable-entries3,4702.8458.3250.33
Inbox 1 /wp-admin/admin.php?page=formidable-inbox3,5532.7252.6257.28
Import/Export /wp-admin/admin.php?page=formidable-import3,5682.8755.6260.11
Upgrade /wp-admin/admin.php?page=formidable-pro-upgrade4,5422.8153.4863.49
Views /wp-admin/admin.php?page=formidable-views3,64311.12289.2165.55
Add-Ons /wp-admin/admin.php?page=formidable-addons4,5932.8748.6169.04
Applications /wp-admin/admin.php?page=formidable-applications3,5092.3333.6168.67
SMTP /wp-admin/admin.php?page=formidable-smtp3,3942.7051.5460.93
Global Settings /wp-admin/admin.php?page=formidable-settings6,8075.53113.1778.92
Forms (Lite) /wp-admin/admin.php?page=formidable27,8443.0477.0054.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.42MB] 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
  • Zombie tables detected upon uninstall: 4 tables
    • wp_frm_item_metas
    • wp_frm_fields
    • wp_frm_items
    • wp_frm_forms
  • Zombie WordPress options detected upon uninstall: 13 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • frm_last_style_update
    • can_compress_scripts
    • frm_strp_options
    • frm_honeypot_class
    • frm_db_version
    • frm_options
    • widget_frm_show_form
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=formidable-pro-upgrade
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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
  • 310× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/formidable/classes/views/styles/_field-labels.php
    • > /wp-content/plugins/formidable/classes/views/shared/review.php
    • > /wp-content/plugins/formidable/classes/views/styles/_form-title.php
    • > /wp-content/plugins/formidable/classes/views/frm-settings/recaptcha.php
    • > /wp-content/plugins/formidable/classes/models/FrmFormAction.php
    • > /wp-content/plugins/formidable/classes/views/styles/_form-description.php
    • > /wp-content/plugins/formidable/classes/views/styles/_buttons.php
    • > /wp-content/plugins/formidable/stripe/views/settings/messages.php
    • > /wp-content/plugins/formidable/classes/views/frm-forms/add_field_links.php
    • > /wp-content/plugins/formidable/classes/models/FrmApplicationTemplate.php

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Too many tags (38 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

formidable/formidable.php Passed 13 tests

This is the main PHP file of "Formidable Forms - Contact Form, Survey, Quiz, Payment, Calculator Form & Custom Form Builder" version 6.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Quickly and easily create drag-and-drop forms

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
There were no executable files found in this plugin90,401 lines of code in 369 files:
LanguageFilesBlank linesComment linesLines of code
PHP3129,54817,00446,402
PO File88,3289,99218,597
JavaScript232,9371,79914,642
CSS131,8631689,568
SVG12001,092
XML111100

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity36.02
▷ Minimum class complexity1.00
▷ Maximum class complexity436.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes164
▷ Abstract classes31.83%
▷ Concrete classes16198.17%
▷ Final classes00.00%
Methods2,774
▷ Static methods1,68160.60%
▷ Public methods1,55656.09%
▷ Protected methods38613.91%
▷ Private methods83229.99%
Functions45
▷ Named functions48.89%
▷ Anonymous functions4191.11%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.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
30 compressed PNG files occupy 0.84MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/applications/thumbnails/real-estate-listings.png24.55KB24.57KB0.00%
images/tooltip.png0.63KB0.71KB0.00%
images/hcaptcha.png2.02KB2.00KB▼ 1.02%
images/smtp-screenshot-tnail.png23.41KB24.58KB0.00%
images/screenshots/scheduling.png22.25KB24.18KB0.00%