84% formito

Code Review | Formito — Chatbot and Chat-style Form Builder

WordPress plugin Formito — Chatbot and Chat-style Form Builder scored84%from 54 tests.

About plugin

  • Plugin page: formito
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2020
  • Latest release: Oct 14, 2020
  • Number of updates: 6
  • Update frequency: every 37.3 days
  • Top authors: formito (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /686 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.39ms] Passed 4 tests

Server-side resources used by Formito — Chatbot and Chat-style Form Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.86 ▼2.38
Dashboard /wp-admin3.35 ▲0.0447.52 ▼4.98
Posts /wp-admin/edit.php3.40 ▲0.0449.55 ▼9.16
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.96 ▼8.23
Media Library /wp-admin/upload.php3.27 ▲0.0433.18 ▼3.17
Formito /wp-admin/options-general.php?page=formito3.2530.59

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
formito-plugin-settings
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Formito — Chatbot and Chat-style Form Builder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.25 ▲0.083.06 ▲1.2540.98 ▼3.82
Dashboard /wp-admin2,193 ▲135.63 ▼0.0198.23 ▼16.2737.15 ▼13.04
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0140.66 ▼1.5637.57 ▼1.30
Add New Post /wp-admin/post-new.php1,529 ▼823.18 ▲5.10677.55 ▲25.9848.34 ▼14.91
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0096.63 ▼11.0142.11 ▼4.42
Formito /wp-admin/options-general.php?page=formito9442.1322.5532.59

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: 7 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • formito-plugin-settings
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/formito/meta.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/formito/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/formito/sidebar.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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 to be fixed:
  • Screenshots: Please add images for these screenshots: #6 (Start super quick with copying a template), #7 (Settings page in your WordPress dashboard)
You can take inspiration from this readme.txt

formito/formito.php 92% from 13 tests

The main PHP script in "Formito — Chatbot and Chat-style Form Builder" version 1.1.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 195 characters long)

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 plugin186 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP47538186

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin