78% flo-forms

Code Review | Flo Forms - Easy Drag & Drop Form Builder

WordPress plugin Flo Forms - Easy Drag & Drop Form Builder scored78%from 54 tests.

About plugin

  • Plugin page: flo-forms
  • Plugin version: 1.0.41
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 15, 2019
  • Latest release: Jul 28, 2023
  • Number of updates: 75
  • Update frequency: every 22.1 days
  • Top authors: flothemesplugins (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10,000+ active /141,917 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.57MB] [CPU: ▼1.30ms] Passed 4 tests

This is a short check of server-side resources used by Flo Forms - Easy Drag & Drop Form Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6149.55 ▲10.04
Dashboard /wp-admin3.90 ▲0.5553.49 ▼6.93
Posts /wp-admin/edit.php3.95 ▲0.6052.03 ▲6.95
Add New Post /wp-admin/post-new.php6.48 ▲0.5996.74 ▼15.25
Media Library /wp-admin/upload.php3.76 ▲0.5452.63 ▲17.29
All Forms /wp-admin/edit.php?post_type=flo_forms3.8744.08
All Entries /wp-admin/edit.php?post_type=flo_form_entry3.8844.96
Add New Form /wp-admin/post-new.php?post_type=flo_forms3.9155.53

Server storage [IO: ▲14.56MB] [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: 147 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flo Forms - Easy Drag & Drop Form Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲17513.18 ▼1.201.80 ▲0.0342.39 ▼0.55
Dashboard /wp-admin2,292 ▲1004.85 ▼0.11111.68 ▼2.8648.27 ▲6.84
Posts /wp-admin/edit.php2,175 ▲862.02 ▼0.0435.34 ▼5.3234.07 ▼1.96
Add New Post /wp-admin/post-new.php1,759 ▲24521.97 ▼1.61658.00 ▼19.6036.33 ▼16.33
Media Library /wp-admin/upload.php1,474 ▲894.24 ▲0.0996.09 ▼6.0143.40 ▼2.26
All Forms /wp-admin/edit.php?post_type=flo_forms1,18619.73217.6635.03
All Entries /wp-admin/edit.php?post_type=flo_form_entry1,21219.76218.3634.38
Add New Form /wp-admin/post-new.php?post_type=flo_forms2,17720.44256.07112.77

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/flo-forms/public/partials/flo-forms-public-display.php
  • 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/flo-forms/lib/grecaptcha/ReCaptcha/RequestMethod/SocketPost.php:37
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/flo-forms/public/partials/flo-forms-public-display.php on line 18
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/flo-forms/public/partials/flo-forms-public-display.php on line 18
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/flo-forms/public/partials/flo-forms-public-display.php on line 18
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/flo-forms/public/partials/flo-forms-public-display.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/flo-forms/admin/class-flo-form-meta-box.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/flo-forms/admin/partials/options-form.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/flo-forms/admin/partials/flo-forms-admin-display.php:16
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/flo-forms/public/partials/flo-forms-public-display.php on line 21
    • > PHP Fatal error
      Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/flo-forms/lib/grecaptcha/ReCaptcha/RequestMethod/Post.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in flo-forms/assets to your readme.txt
The official readme.txt is a good inspiration

flo-forms/flo-forms.php Passed 13 tests

The main PHP file in "Flo Forms - Easy Drag & Drop Form Builder" ver. 1.0.41 adds more information about the plugin and also serves as the entry point for this plugin
41 characters long description:
A easy to use contact form builder plugin

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
Everything looks great! No dangerous files found in this plugin21,120 lines of code in 109 files:
LanguageFilesBlank linesComment linesLines of code
Vuejs Component291,0085076,442
Sass3595433,882
CSS18221733,346
PHP281,1681,6232,979
JavaScript237766922,730
Markdown21310840
HTML3472701
JSON200147
SVG10053

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.05
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods133
▷ Static methods2921.80%
▷ Public methods12896.24%
▷ Protected methods00.00%
▷ Private methods53.76%
Functions12
▷ Named functions541.67%
▷ Anonymous functions758.33%
Constants10
▷ Global constants330.00%
▷ Class constants770.00%
▷ Public constants7100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.55MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/vendor/jquery-ui-flo/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
admin/vendor/jquery-ui-flo/images/ui-icons_cc0000_256x240.png4.44KB4.17KB▼ 6.02%
admin/images/how-it-works.png164.28KB181.11KB0.00%
public/vendor/jquery-ui-flo/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
admin/images/ff-pro-bg-popup.png40.98KB13.50KB▼ 67.07%