94% formsite

Code Review | Formsite | Embed online forms to collect orders, registrations, leads, and surveys

WordPress plugin Formsite | Embed online forms to collect orders, registrations, leads, and surveys scored 94% from 54 tests.

About plugin

  • Plugin page: formsite
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.7.2
  • WordPress version: 5.8.1
  • First release: Oct 15, 2019
  • Latest release: Jul 26, 2021
  • Number of updates: 11
  • Update frequency: every 60.7 days
  • Top authors: formsite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 3,262 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼141.48ms] Passed 4 tests

This is a short check of server-side resources used by Formsite | Embed online forms to collect orders, registrations, leads, and surveys
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.02 ▲15.55
Dashboard /wp-admin3.06 ▲0.0143.34 ▼10.58
Posts /wp-admin/edit.php3.12 ▲0.0135.28 ▼9.33
Add New Post /wp-admin/post-new.php5.43 ▼0.0095.21 ▼550.55
Media Library /wp-admin/upload.php3.01 ▲0.0137.68 ▲4.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Formsite | Embed online forms to collect orders, registrations, leads, and surveys
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.32 ▲0.6710.59 ▲0.3847.75 ▼5.96
Dashboard /wp-admin2,973 ▲395.86 ▼0.14131.81 ▼22.68116.48 ▲2.91
Posts /wp-admin/edit.php2,739 ▲32.73 ▲0.0162.12 ▼3.7693.04 ▼0.75
Add New Post /wp-admin/post-new.php1,683 ▲17918.46 ▼0.08372.18 ▲4.52111.85 ▲3.90
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.01174.66 ▲16.85130.50 ▲2.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/formsite/formsite.php:37

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 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

formsite/formsite.php Passed 13 tests

The primary PHP file in "Formsite | Embed online forms to collect orders, registrations, leads, and surveys" version 1.2 is used by WordPress to initiate all plugin functionality
100 characters long description:
Embed online forms and surveys from Formsite into pages, posts, and sidebars with an easy shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151123

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected