84% wp-serverless-forms

Code Review | WP Serverless Forms

WordPress plugin WP Serverless Forms scored 84% from 54 tests.

About plugin

  • Plugin page: wp-serverless-forms
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2018
  • Latest release: May 25, 2020
  • Number of updates: 15
  • Update frequency: every 54.6 days
  • Top authors: emaildano (100%)Otto42 (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,866 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by WP Serverless Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.43 ▼10.78
Dashboard /wp-admin3.31 ▲0.0145.13 ▼3.39
Posts /wp-admin/edit.php3.36 ▲0.0145.62 ▼1.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.77 ▼16.85
Media Library /wp-admin/upload.php3.24 ▲0.0134.34 ▼0.12
WP Serverless Forms /wp-admin/options-general.php?page=wp-sls-forms3.2332.90

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Serverless Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9913.16 ▼1.112.33 ▲0.3439.13 ▼10.39
Dashboard /wp-admin2,213 ▲225.85 ▼0.0499.18 ▼6.5037.06 ▼10.22
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0239.06 ▲4.9134.76 ▲0.59
Add New Post /wp-admin/post-new.php1,536 ▲323.56 ▲0.17679.45 ▼11.8657.71 ▲0.31
Media Library /wp-admin/upload.php1,389 ▲44.19 ▼0.0193.21 ▼10.5240.69 ▼3.21
WP Serverless Forms /wp-admin/options-general.php?page=wp-sls-forms8212.0325.6530.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means 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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-serverless-forms/lib/http-endpoint.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-serverless-forms/lib/providers/contact-form-7.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-serverless-forms/lib/providers/gravity-forms.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-serverless-forms/wp-serverless-forms.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-serverless-forms/lib/modules/endpoint-form.php:2

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-serverless-forms/wp-serverless-forms.php Passed 13 tests

The primary PHP file in "WP Serverless Forms" version 1.3.1 is used by WordPress to initiate all plugin functionality
48 characters long description:
Customizable form endpoints for WordPress sites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin133 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5224473
JavaScript112560

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/shifter-icon.png0.58KB0.65KB0.00%