10% forms-by-made-it

Code Review | Forms

WordPress plugin Forms scored10%from 54 tests.

About plugin

  • Plugin page: forms-by-made-it
  • Plugin version: 2.7.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Sep 29, 2023
  • Number of updates: 75
  • Update frequency: every 34.7 days
  • Top authors: madeit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,287 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User error in wp-content/plugins/forms-by-made-it/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.

Server metrics [RAM: ▼1.91MB] [CPU: ▼51.36ms] Passed 4 tests

This is a short check of server-side resources used by Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.386.74 ▼34.77
Dashboard /wp-admin2.10 ▼1.205.48 ▼48.93
Posts /wp-admin/edit.php2.10 ▼1.2513.81 ▼34.72
Add New Post /wp-admin/post-new.php2.10 ▼3.786.33 ▼87.00
Media Library /wp-admin/upload.php2.10 ▼1.136.48 ▼28.49

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,076 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,059 ▲2,31314.45 ▲0.205.92 ▲4.0542.53 ▲0.54
Dashboard /wp-admin4,354 ▲2,1665.63 ▲0.76127.16 ▲18.6667.10 ▲21.47
Posts /wp-admin/edit.php4,252 ▲2,1632.46 ▲0.4257.33 ▲22.9843.81 ▲6.23
Add New Post /wp-admin/post-new.php3,660 ▲2,12320.57 ▼2.42680.51 ▲39.3036.76 ▼15.51
Media Library /wp-admin/upload.php3,539 ▲2,1484.72 ▲0.46108.27 ▲8.4141.31 ▼2.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User error in wp-content/plugins/forms-by-made-it/vendor/composer/platform_check.php+24
    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.16.
  • The uninstall procedure has failed, leaving 7 options in the database
    • madeit_form_db_v
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
  • 584× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/RequestContactImportNewList.php:44
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/UpdateEmailCampaignRecipients.php:44
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/RemainingCreditModelChild.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/test/Model/CreateContactTest.php:41
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/GetEmailEventReportEvents.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/CreateList.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/test/Model/Body1Test.php:41
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/PostContactInfoContacts.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/forms-by-made-it/vendor/sendinblue/api-v3-sdk/lib/Model/CreateSender.php:43
    • > PHP Warning
      Use of undefined constant MADEIT_FORM_DIR - assumed 'MADEIT_FORM_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/forms-by-made-it/actions/Mailerlite.php on line 4

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: form submit, contact form, newsletter, email, contact...

forms-by-made-it/madeit-form.php 92% from 13 tests

The main file in "Forms" v. 2.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("forms-by-made-it.php" instead of "madeit-form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin247,307 lines of code in 1,013 files:
LanguageFilesBlank linesComment linesLines of code
JSON2520141,434
PHP65920,52678,85388,197
Markdown2634,562012,994
JavaScript312812261,893
CSS18121981,852
PO File1190233453
Sass127412439
XML11020
YAML20014
Bourne Shell14011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.67
▷ Minimum class complexity1.00
▷ Maximum class complexity841.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity84.00
Code structure
Namespaces15
Interfaces27
Traits3
Classes599
▷ Abstract classes00.00%
▷ Concrete classes599100.00%
▷ Final classes355.84%
Methods9,119
▷ Static methods1,79419.67%
▷ Public methods8,80996.60%
▷ Protected methods1661.82%
▷ Private methods1441.58%
Functions574
▷ Named functions447.67%
▷ Anonymous functions53092.33%
Constants525
▷ Global constants40.76%
▷ Class constants52199.24%
▷ Public constants51097.89%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
admin/css/smoothness/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
images/icon-128x128.png21.35KB1.99KB▼ 90.70%
admin/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
admin/css/smoothness/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%