90% qform

Code Review | Qform creating complex forms

WordPress plugin Qform creating complex forms scored90%from 54 tests.

About plugin

  • Plugin page: qform
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 16, 2023
  • Latest release: Oct 16, 2023
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: qform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /23 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.33ms] Passed 4 tests

This is a short check of server-side resources used by Qform creating complex forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0848.31 ▲4.51
Dashboard /wp-admin3.39 ▲0.0549.33 ▼15.74
Posts /wp-admin/edit.php3.51 ▲0.1549.87 ▼2.50
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.19 ▼15.58
Media Library /wp-admin/upload.php3.32 ▲0.0843.11 ▲5.24
Shortcode /wp-admin/admin.php?page=qform-short-page3.3335.10
Settings /wp-admin/admin.php?page=qform-main3.2935.08

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 35 new files
Database: 1 new table, 6 new options
New tables
wp_qform_short_code
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Qform creating complex forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8713.49 ▼0.504.72 ▲3.1239.43 ▼3.95
Dashboard /wp-admin2,251 ▲716.07 ▲0.4495.47 ▲3.0782.01 ▲40.24
Posts /wp-admin/edit.php2,176 ▲732.46 ▲0.4447.55 ▲6.1334.22 ▼1.53
Add New Post /wp-admin/post-new.php6,517 ▲4,99122.71 ▼0.30986.72 ▲321.4462.58 ▲11.53
Media Library /wp-admin/upload.php1,464 ▲674.50 ▲0.34110.06 ▲7.7484.06 ▲38.70
Shortcode /wp-admin/admin.php?page=qform-short-page8612.2236.5727.24
Settings /wp-admin/admin.php?page=qform-main1,0602.1333.7548.69

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: form builder, quiz, contact form, survey, recaptcha...

qform/qform.php Passed 13 tests

"Qform creating complex forms" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
22 characters long description:
Creating complex forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected13,786 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
JSON20010,705
JavaScript45116552,010
PHP1111914760
CSS2285166
PO File1396892
SVG20031
Markdown13022

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 complexity11.50
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods724.14%
▷ Public methods2586.21%
▷ Protected methods00.00%
▷ Private methods413.79%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants6
▷ Global constants6100.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
There were not PNG files found in your plugin