94% flatsite-serverless-forms

Code Review | FLATsite Serverless Forms

WordPress plugin FLATsite Serverless Forms scored 94% from 54 tests.

About plugin

  • Plugin page: flatsite-serverle...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7
  • WordPress version: 5.9.2
  • First release: Dec 9, 2020
  • Latest release: Mar 11, 2021
  • Number of updates: 8
  • Update frequency: every 12.5 days
  • Top authors: flatsite (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active / 330 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼294.44ms] Passed 4 tests

Server-side resources used by FLATsite Serverless Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0263.43 ▲8.94
Dashboard /wp-admin3.43 ▲0.0236.87 ▼1.18
Posts /wp-admin/edit.php3.65 ▲0.0145.37 ▲5.81
Add New Post /wp-admin/post-new.php6.89 ▼0.0897.74 ▼1,180.97
Media Library /wp-admin/upload.php3.30 ▲0.0124.40 ▼1.41
FLATsite Serverless Forms /wp-admin/options-general.php?page=flatsite-forms3.2727.89

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for FLATsite Serverless Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,774 ▲3015.81 ▲0.046.59 ▲0.542.01 ▼0.38
Dashboard /wp-admin2,893 ▲326.17 ▼0.00117.43 ▼18.51158.06 ▼2.67
Posts /wp-admin/edit.php2,693 ▲53.23 ▼0.0166.57 ▲2.32145.85 ▲4.34
Add New Post /wp-admin/post-new.php1,693 ▲320.17 ▼0.71410.22 ▼42.99156.88 ▼0.33
Media Library /wp-admin/upload.php1,703 ▲55.55 ▲0.08152.75 ▲9.24201.88 ▲13.84
FLATsite Serverless Forms /wp-admin/options-general.php?page=flatsite-forms1,0932.5056.24151.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

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
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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flatsite-serverless-forms/src/lib/SettingsFlatsiteForms.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: serverless, decoupled wordpress, contact form, headless wordpress, forms...

flatsite-serverless-forms/flatsite-serverless-forms.php 92% from 13 tests

This is the main PHP file of "FLATsite Serverless Forms" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP228897
JavaScript112266

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin