84% formassembly-web-forms

Code Review | WP-FormAssembly

WordPress plugin WP-FormAssembly scored84%from 54 tests.

About plugin

  • Plugin page: formassembly-web-...
  • Plugin version: 2.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2015
  • Latest release: Aug 21, 2023
  • Number of updates: 51
  • Update frequency: every 60.3 days
  • Top authors: veerwest (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /64,135 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.74ms] Passed 4 tests

A check of server-side resources used by WP-FormAssembly
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.82 ▼2.17
Dashboard /wp-admin3.33 ▼0.0149.27 ▼13.44
Posts /wp-admin/edit.php3.38 ▲0.0347.80 ▼6.81
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.31 ▼12.53
Media Library /wp-admin/upload.php3.26 ▲0.0337.40 ▲1.13

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP-FormAssembly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.28 ▼0.091.96 ▲0.1141.89 ▼0.82
Dashboard /wp-admin2,192 ▲125.53 ▼0.1287.04 ▼12.0543.77 ▼0.08
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0534.95 ▼5.3336.93 ▼0.44
Add New Post /wp-admin/post-new.php1,526 ▼223.07 ▼0.14674.21 ▼23.3150.47 ▼3.21
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.01112.78 ▲4.9448.10 ▲2.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 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/formassembly-web-forms/wp_formassembly.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: forms

formassembly-web-forms/wp_formassembly.php 85% from 13 tests

"WP-FormAssembly" version 2.0.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("formassembly-web-forms.php" instead of "wp_formassembly.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 177 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected137 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13036137

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.12
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin