84% formstack

Code Review | Formstack Online Forms

WordPress plugin Formstack Online Forms scored84%from 54 tests.

About plugin

  • Plugin page: formstack
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.1.1
  • WordPress version: 6.3.1
  • First release: Sep 9, 2010
  • Latest release: Apr 12, 2019
  • Number of updates: 54
  • Update frequency: every 58.1 days
  • Top authors: brianFormstack (33.33%)noahwesley (31.48%)tw2113 (22.22%)mmattax (12.96%)jeremyformstack (7.41%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /72,768 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.41ms] Passed 4 tests

Analyzing server-side resources used by Formstack Online Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1444.79 ▲1.89
Dashboard /wp-admin3.47 ▲0.1250.84 ▼16.05
Posts /wp-admin/edit.php3.58 ▲0.2254.59 ▲6.60
Add New Post /wp-admin/post-new.php6.07 ▲0.1887.75 ▼9.57
Media Library /wp-admin/upload.php3.39 ▲0.1638.33 ▼5.91

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_fs_wp_widget
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Formstack Online Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7713.22 ▼1.161.76 ▼0.2937.42 ▼4.28
Dashboard /wp-admin2,228 ▲435.13 ▼0.7293.99 ▼7.0892.82 ▲56.61
Posts /wp-admin/edit.php2,105 ▲162.05 ▼0.0133.93 ▼4.8432.18 ▼9.51
Add New Post /wp-admin/post-new.php1,540 ▲323.13 ▲4.62756.68 ▲83.7061.26 ▲0.17
Media Library /wp-admin/upload.php1,398 ▲134.24 ▲0.07106.28 ▼1.5568.17 ▲16.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_fs_wp_widget
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/formstack/widget.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/formstack/tmpl/options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/formstack/plugin.php:81

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

readme.txt Passed 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
7 plugin tags: forms, quizzes, web forms, lead generation, form builder...

formstack/plugin.php 85% from 13 tests

The entry point to "Formstack Online Forms" version 2.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("formstack.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin903 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6141455776
JavaScript21191
CSS10036

PHP code Passed 2 tests

A short 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.36
Average class complexity20.00
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods43
▷ Static methods12.33%
▷ Public methods43100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.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
PNG images were not found in this plugin