90% wpzoom-forms

Code Review | WPZOOM Forms - Contact Form Plugin for Gutenberg

WordPress plugin WPZOOM Forms - Contact Form Plugin for Gutenberg scored90%from 54 tests.

About plugin

  • Plugin page: wpzoom-forms
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: May 17, 2023
  • Latest release: Nov 8, 2023
  • Number of updates: 10
  • Update frequency: every 17.5 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.49MB] [CPU: ▼3.24ms] Passed 4 tests

An overview of server-side resources used by WPZOOM Forms - Contact Form Plugin for Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.4942.00 ▲6.13
Dashboard /wp-admin3.81 ▲0.4649.52 ▼11.58
Posts /wp-admin/edit.php3.91 ▲0.5552.58 ▲2.46
Add New Post /wp-admin/post-new.php7.71 ▲1.82102.52 ▼8.92
Media Library /wp-admin/upload.php3.70 ▲0.4739.10 ▲5.07
Add New /wp-admin/post-new.php?post_type=wpzf-form7.9691.22
Settings /wp-admin/edit.php?post_type=wpzf-form&page=wpzf-settings3.8235.25
Submissions 00 Submissions /wp-admin/edit.php?post_type=wpzf-submission3.7440.79
All Forms /wp-admin/edit.php?post_type=wpzf-form4.0141.29

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

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

Browser metrics Passed 4 tests

WPZOOM Forms - Contact Form Plugin for Gutenberg: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,082 ▲32021.28 ▲7.00152.33 ▲150.5345.13 ▲2.04
Dashboard /wp-admin2,234 ▲575.52 ▼0.1280.33 ▼19.7940.83 ▼1.36
Posts /wp-admin/edit.php2,145 ▲452.02 ▲0.0638.77 ▲3.0836.09 ▲2.41
Add New Post /wp-admin/post-new.php6,235 ▲4,70019.61 ▼5.51873.23 ▲219.6239.43 ▼6.85
Media Library /wp-admin/upload.php1,445 ▲484.16 ▼0.08103.70 ▲3.7244.11 ▲0.91
Add New /wp-admin/post-new.php?post_type=wpzf-form1,59920.12913.3144.14
Settings /wp-admin/edit.php?post_type=wpzf-form&page=wpzf-settings1,1092.1138.5732.21
Submissions 00 Submissions /wp-admin/edit.php?post_type=wpzf-submission1,2211.9731.3434.01
All Forms /wp-admin/edit.php?post_type=wpzf-form1,7232.0134.2535.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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 were found after uninstall: 7 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • wpzf-form_first-activate
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4 in wpzoom-forms/assets to your readme.txt
The official readme.txt might help

wpzoom-forms/wpzoom-forms.php Passed 13 tests

The entry point to "WPZOOM Forms - Contact Form Plugin for Gutenberg" version 1.1.0 is a PHP file that has certain tags in its header comment area
128 characters long description:
Simple, user-friendly contact form plugin for WordPress that utilizes Gutenberg blocks for easy form building and customization.

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 plugin9,101 lines of code in 102 files:
LanguageFilesBlank linesComment linesLines of code
Sass547322,637
JSON22002,113
PHP173566072,074
JavaScript5225982,044
CSS6105233

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity99.67
▷ Minimum class complexity45.00
▷ Maximum class complexity195.00
Average method complexity5.37
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods70
▷ Static methods1115.71%
▷ Public methods70100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/images/step-2.8da5c30c.png13.95KB15.24KB0.00%
src/main/images/step-2.png13.95KB15.24KB0.00%
build/images/step-3.b2c1669a.png33.53KB36.60KB0.00%
src/main/images/step-4.png37.45KB39.47KB0.00%
build/images/step-1.09dba585.png36.99KB39.44KB0.00%