78% forminix

Code Review | Forminix – Drag & Drop Contact Form Builder for WordPress

WordPress plugin Forminix – Drag & Drop Contact Form Builder for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: forminix
  • Plugin version: 1.2.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2022
  • Latest release: Jul 16, 2023
  • Number of updates: 38
  • Update frequency: every 12.5 days
  • Top authors: forminix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /22,806 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.30ms] Passed 4 tests

A check of server-side resources used by Forminix – Drag & Drop Contact Form Builder for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.06 ▲2.40
Dashboard /wp-admin3.42 ▲0.0749.73 ▼14.00
Posts /wp-admin/edit.php3.47 ▲0.1147.53 ▲4.65
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.90 ▼17.01
Media Library /wp-admin/upload.php3.28 ▲0.0534.16 ▲3.42
Dashboard /wp-admin/admin.php?page=forminix-dashboard3.5134.97
Modules /wp-admin/admin.php?page=forminix-modules3.3432.00

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 177 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
forminix_modules
widget_theysaidso_widget
forminix_entry_settings
widget_recent-posts
can_compress_scripts
db_upgraded
forminix_forms
forminix_form_settings
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Forminix – Drag & Drop Contact Form Builder for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,142 ▲39615.43 ▲1.0627.53 ▲25.7644.95 ▼0.00
Dashboard /wp-admin2,234 ▲575.59 ▲0.0592.20 ▼6.9274.51 ▲26.98
Posts /wp-admin/edit.php2,139 ▲391.96 ▼0.0539.71 ▲2.7438.38 ▼2.85
Add New Post /wp-admin/post-new.php1,712 ▲17521.76 ▲3.54660.27 ▲68.5454.75 ▼8.33
Media Library /wp-admin/upload.php1,439 ▲394.28 ▲0.0295.04 ▼9.5677.94 ▲36.15
Dashboard /wp-admin/admin.php?page=forminix-dashboard4,5063.5555.6960.42
Modules /wp-admin/admin.php?page=forminix-modules1,8011.9823.0863.08

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_recent-comments
    • forminix_modules
    • can_compress_scripts
    • forminix_form_settings
    • forminix_forms
    • widget_theysaidso_widget
    • forminix_entry_settings
    • db_upgraded
    • theysaidso_admin_options
    • forminix_entries
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/forminix/frontend/api/submit_form.php
  • 37× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      include(FORMINIX_PATHbackend/templates/views/forms.php): failed to open stream: No such file or directory in wp-content/plugins/forminix/backend/templates/dashboard.php on line 4
    • > PHP Warning
      include(): Failed opening 'FORMINIX_PATHbackend/templates/views/settings.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/forminix/backend/templates/dashboard.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/forminix/backend/api/get_settings.php:6
    • > PHP Warning
      Use of undefined constant FORMINIX_PATH - assumed 'FORMINIX_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/forminix/backend/templates/dashboard.php on line 8
    • > PHP Warning
      Use of undefined constant FORMINIX_PATH - assumed 'FORMINIX_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/forminix/backend/templates/dashboard.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/forminix/backend/api/list_forms.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/forminix/backend/templates/views/entry.php:7
    • > PHP Warning
      include(FORMINIX_PATHbackend/templates/views/entries.php): failed to open stream: No such file or directory in wp-content/plugins/forminix/backend/templates/dashboard.php on line 6
    • > PHP Warning
      include(FORMINIX_PATHbackend/templates/views/settings.php): failed to open stream: No such file or directory in wp-content/plugins/forminix/backend/templates/dashboard.php on line 5
    • > PHP Warning
      include(): Failed opening 'FORMINIX_PATHbackend/templates/views/builder.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/forminix/backend/templates/dashboard.php on line 8

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: custom form, form builder, contact form, forms

forminix/forminix.php 92% from 13 tests

The main PHP file in "Forminix – Drag & Drop Contact Form Builder for WordPress" ver. 1.2.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected14,186 lines of code in 144 files:
LanguageFilesBlank linesComment linesLines of code
PHP359201404,570
JavaScript166601104,538
CSS11741764,223
SVG8211855

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity39.11
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity5.70
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods73
▷ Static methods00.00%
▷ Public methods73100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
11 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/imports/feedback_form.png12.61KB13.47KB0.00%
assets/imports/user_registration_form.png6.51KB6.86KB0.00%
assets/img/module_icons/forminix_module_icon_pabbly.png10.52KB5.90KB▼ 43.89%
assets/imports/volunteer_registration_form.png11.04KB11.08KB0.00%
assets/imports/photo_contest_entry_form.png19.29KB19.93KB0.00%