84% quickform

Code Review | QuickForm

WordPress plugin QuickForm scored84%from 54 tests.

About plugin

  • Plugin page: quickform
  • Plugin version: 3.3.03
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3
  • WordPress version: 6.3.1
  • First release: Apr 10, 2021
  • Latest release: Sep 4, 2023
  • Number of updates: 33
  • Update frequency: every 26.6 days
  • Top authors: varx (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /658 total downloads

Benchmarks

Plugin footprint 83% from 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.04MB] [CPU: ▼4.08ms] Passed 4 tests

Analyzing server-side resources used by QuickForm
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.11 ▲2.53
Dashboard /wp-admin3.36 ▲0.0651.07 ▼1.27
Posts /wp-admin/edit.php3.41 ▲0.0652.54 ▲2.36
Add New Post /wp-admin/post-new.php5.94 ▲0.0685.77 ▼19.94
Media Library /wp-admin/upload.php3.29 ▲0.0643.16 ▲4.94
E-mail History /wp-admin/admin.php?page=qf3-historys2.056.44
Projects /wp-admin/admin.php?page=qf3-projects2.057.52
/wp-admin/admin.php?page=qf3-forms2.057.10
General settings /wp-admin/admin.php?page=qf3-settings2.057.05

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 84 new files
Database: 3 new tables, 6 new options
New tables
wp_qf3_ps
wp_qf3_projects
wp_qf3_forms
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

QuickForm: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8814.26 ▼0.291.89 ▼0.1542.65 ▼1.61
Dashboard /wp-admin2,255 ▲755.50 ▼0.1686.78 ▼9.8538.06 ▼5.63
Posts /wp-admin/edit.php2,160 ▲601.99 ▲0.0335.44 ▼2.5135.95 ▲0.47
Add New Post /wp-admin/post-new.php1,554 ▲2823.19 ▼0.55650.81 ▼29.1752.58 ▼12.66
Media Library /wp-admin/upload.php1,458 ▲584.21 ▼0.0296.30 ▼23.1444.39 ▼2.69
E-mail History /wp-admin/admin.php?page=qf3-historys9852.0527.1666.65
Projects /wp-admin/admin.php?page=qf3-projects1,0752.0428.0350.79
/wp-admin/admin.php?page=qf3-forms1,7312.2629.7253.41
General settings /wp-admin/admin.php?page=qf3-settings1,0461.8225.4154.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=qf3-settings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the list.js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=qf3-settings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the list.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=qf3-settings
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the awesome handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

quickform/quickform.php Passed 13 tests

The main file in "QuickForm" v. 3.3.03 serves as a complement to information provided in readme.txt and as the entry point to the plugin
18 characters long description:
Cool Form Builder.

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
No dangerous file extensions were detected13,217 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,3792396,349
JavaScript5372143,424
CSS6430602,240
INI8200996
XML5620208

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.69
▷ Minimum class complexity1.00
▷ Maximum class complexity216.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes45
▷ Abstract classes24.44%
▷ Concrete classes4395.56%
▷ Final classes00.00%
Methods303
▷ Static methods206.60%
▷ Public methods18460.73%
▷ Protected methods11939.27%
▷ Private methods00.00%
Functions12
▷ Named functions325.00%
▷ Anonymous functions975.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
site/assets/shopcart/imgs/cart_2.png2.51KB1.83KB▼ 27.07%
site/assets/shopcart/imgs/cart_3.png2.58KB1.89KB▼ 26.79%
site/assets/datepicker/images/calendar.png1.49KB1.56KB0.00%
site/assets/shopcart/imgs/cart_0.png2.21KB1.72KB▼ 22.07%
site/assets/shopcart/imgs/cart_1.png2.40KB1.78KB▼ 25.75%