84% formbot-form-builder

Code Review | Formbot Online Forms - Drag & Drop Form Builder, Securely Embed Contact Forms

WordPress plugin Formbot Online Forms - Drag & Drop Form Builder, Securely Embed Contact Forms scored 84% from 54 tests.

About plugin

  • Plugin page: formbot-form-builder
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Nov 4, 2022
  • Latest release: Nov 5, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: mirzamehranfb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 188 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Formbot Online Forms - Drag & Drop Form Builder, Securely Embed Contact Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.31 ▼2.18
Dashboard /wp-admin3.37 ▲0.0747.56 ▼1.71
Posts /wp-admin/edit.php3.42 ▲0.0748.61 ▲0.08
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.40 ▼9.43
Media Library /wp-admin/upload.php3.30 ▲0.0736.21 ▲3.58

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Formbot Online Forms - Drag & Drop Form Builder, Securely Embed Contact Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8514.84 ▲0.611.76 ▼0.0944.96 ▼6.21
Dashboard /wp-admin2,226 ▲385.05 ▲0.03116.61 ▲0.9540.73 ▼6.83
Posts /wp-admin/edit.php2,109 ▲412.14 ▲0.1540.50 ▲3.5937.66 ▲1.47
Add New Post /wp-admin/post-new.php6,429 ▲4,89920.52 ▲2.26923.96 ▲252.6355.08 ▲0.60
Media Library /wp-admin/upload.php1,411 ▲264.29 ▲0.02105.08 ▲3.6644.13 ▼3.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/formbot-form-builder/formbot-form-builder.php:12

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 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 templates, forms, order form, formbot, survey...

formbot-form-builder/formbot-form-builder.php 92% from 13 tests

The principal PHP file in "Formbot Online Forms - Drag & Drop Form Builder, Securely Embed Contact Forms" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 284 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected782 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33814306
PHP16029298
CSS1123170
JSON1008

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.19
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/form-bot.png8.88KB8.61KB▼ 2.96%