78% mightyforms

Code Review | Contact Form, Survey & Form Builder - MightyForms

WordPress plugin Contact Form, Survey & Form Builder - MightyForms scored78%from 54 tests.

About plugin

  • Plugin page: mightyforms
  • Plugin version: 1.3.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.8.1
  • WordPress version: 6.3.1
  • First release: May 30, 2019
  • Latest release: Sep 30, 2021
  • Number of updates: 40
  • Update frequency: every 21.4 days
  • Top authors: p0rthas (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

400+ active /6,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼7.46ms] Passed 4 tests

Server-side resources used by Contact Form, Survey & Form Builder - MightyForms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0547.46 ▲9.55
Dashboard /wp-admin3.36 ▲0.0549.90 ▼11.22
Posts /wp-admin/edit.php3.41 ▲0.0547.80 ▼4.00
Add New Post /wp-admin/post-new.php5.96 ▲0.0886.15 ▼12.46
Media Library /wp-admin/upload.php3.28 ▲0.0535.86 ▼2.17
Embed Forms /wp-admin/admin.php?page=mightyforms-forms3.2232.15
How to /wp-admin/admin.php?page=mightyforms-how-to3.2533.94
Dashboard /wp-admin/admin.php?page=mightyforms3.2533.88

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form, Survey & Form Builder - MightyForms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲6314.79 ▲0.141.60 ▼0.2239.82 ▼3.53
Dashboard /wp-admin2,227 ▲504.89 ▼0.7688.42 ▼2.2181.40 ▲36.13
Posts /wp-admin/edit.php2,132 ▲322.36 ▲0.4133.59 ▼3.4733.65 ▼0.26
Add New Post /wp-admin/post-new.php6,230 ▲4,70419.57 ▼3.49935.45 ▲266.0143.64 ▼10.67
Media Library /wp-admin/upload.php1,435 ▲324.56 ▲0.1897.34 ▼5.1577.11 ▲33.40
Embed Forms /wp-admin/admin.php?page=mightyforms-forms7011.7011.1623.12
How to /wp-admin/admin.php?page=mightyforms-how-to1,3292.7043.3893.86
Dashboard /wp-admin/admin.php?page=mightyforms1,40426.12951.36113.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mightyforms/shortcode.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mightyforms/gutenberg_block/init.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mightyforms/gutenberg_block/init.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mightyforms/views/application.php:39
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mightyforms/shortcode.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=mightyforms-how-to
    • > Console-api (warning) in unknown
    https://d3eto7onm69fcz.cloudfront.net/assets/javascripts/app3.min.js 0:108966 "You must bind Parsley on an existing element."
    • > GET request to /wp-admin/admin.php?page=mightyforms
    • > Console-api (warning) in unknown
    https://app.mightyforms.com/main-es2017.bcd307c08c0d78e77e2a.js 0:3238240 "Hotjar not launching due to suspicious userAgent:" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/118.0.5993.70 Safari/537.36"
    • > GET request to /wp-admin/admin.php?page=mightyforms
    • > Console-api (warning) in unknown
    https://app.mightyforms.com/main-es2017.bcd307c08c0d78e77e2a.js 0:3238240 "Your client application uses libraries for user authentication or authorization that are deprecated. See the [Migration Guide](https://developers.google.com/identity/gsi/web/guides/gis-migration) for more information."
    • > GET request to /wp-admin/admin.php?page=mightyforms
    • > Console-api (severe) in unknown
    https://app.mightyforms.com/main-es2017.bcd307c08c0d78e77e2a.js 0:3238240 "Cookies are currently disabled in the browser. Please enable cookies for GrowSurf to work."
    • > GET request to /wp-admin/admin.php?page=mightyforms
    • > Console-api (severe) in unknown
    https://app.mightyforms.com/main-es2017.bcd307c08c0d78e77e2a.js 0:3238240 "Unhandled Promise rejection:" "Cookies are currently disabled in the browser. Please enable cookies for GrowSurf to work." "; Zone:" "\u003Croot>" "; Task:" "Window.addEventListener:load" "; Value:" Error: Cookies are currently disabled in the browser. Please enable cookies for GrowSurf to work.at Function.value (https://growsurf.com/growsurf.js?v=2.0.0:1:481047)at https://growsurf.com/growsurf.js?v=2.0.0:1:778897at f (https://growsurf.com/growsurf.js?v=2.0.0:1:867193)at Generator._invoke (https://growsurf.com/growsurf.js?v=2.0.0:1:866981)at Generator.next (https://growsurf.com/growsurf.js?v=2.0.0:1:867622)at kp (https://growsurf.com/growsurf.js?v=2.0.0:1:775999)at i (https://growsurf.com/growsurf.js?v=2.0.0:1:776203)at https://growsurf.com/growsurf.js?v=2.0.0:1:776264at new C (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:17699)at https://growsurf.com/growsurf.js?v=2.0.0:1:776143at https://growsurf.com/growsurf.js?v=2.0.0:1:779708at c (https://growsurf.com/growsurf.js?v=2.0.0:1:779881)at i (https://app.mightyforms.com/main-es2017.bcd307c08c0d78e77e2a.js:1:3237078)at l.invokeTask (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:7166)at t.runTask (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:2562)at u.invokeTask [as invoke] (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:8216)at _ (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:20033)at k (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:20354) "Error: Cookies are currently disabled in the browser. Please enable cookies for GrowSurf to work.\n at Function.value (https://growsurf.com/growsurf.js?v=2.0.0:1:481047)\n at https://growsurf.com/growsurf.js?v=2.0.0:1:778897\n at f (https://growsurf.com/growsurf.js?v=2.0.0:1:867193)\n at Generator._invoke (https://growsurf.com/growsurf.js?v=2.0.0:1:866981)\n at Generator.next (https://growsurf.com/growsurf.js?v=2.0.0:1:867622)\n at kp (https://growsurf.com/growsurf.js?v=2.0.0:1:775999)\n at i (https://growsurf.com/growsurf.js?v=2.0.0:1:776203)\n at https://growsurf.com/growsurf.js?v=2.0.0:1:776264\n at new C (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:17699)\n at https://growsurf.com/growsurf.js?v=2.0.0:1:776143\n at https://growsurf.com/growsurf.js?v=2.0.0:1:779708\n at c (https://growsurf.com/growsurf.js?v=2.0.0:1:779881)\n at i (https://app.mightyforms.com/main-es2017.bcd307c08c0d78e77e2a.js:1:3237078)\n at l.invokeTask (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:7166)\n at t.runTask (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:2562)\n at u.invokeTask [as invoke] (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:8216)\n at _ (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:20033)\n at k (https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js:1:20354)"
    • > GET request to /wp-admin/admin.php?page=mightyforms
    • > Javascript (severe) in unknown
    https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js 0:6547 Uncaught Error: Cookies are currently disabled in the browser. Please enable cookies for GrowSurf to work.
    • > GET request to /wp-admin/admin.php?page=mightyforms
    • > Network (severe)
    https://app.mightyforms.com/api/user - Failed to load resource: the server responded with a status of 401 ()
    • > GET request to /wp-admin/admin.php?page=mightyforms
    • > Javascript (severe) in unknown
    https://app.mightyforms.com/polyfills-es2017.7e66656d7905cdf98949.js 0:2635 Uncaught

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 24 tag instead of maximum 10
You can look at the official readme.txt

mightyforms/mightyforms.php Passed 13 tests

The entry point to "Contact Form, Survey & Form Builder - MightyForms" version 1.3.8 is a PHP file that has certain tags in its header comment area
131 characters long description:
Powerful web forms - made easy. Quickly create beautiful forms for any website with this intuitive Drag & Drop online form builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin613 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP88990219
JavaScript3154217
CSS3253144
SVG30033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.83KB0.82KB▼ 1.30%
images/sort_both.png0.20KB0.29KB0.00%
images/gutenberg_icon.png1.21KB0.95KB▼ 21.50%
images/sort_desc.png0.15KB0.25KB0.00%
images/sort_asc.png0.16KB0.25KB0.00%