89% formzu-wp

Code Review | Formzu WP

WordPress plugin Formzu WP scored89%from 54 tests.

About plugin

  • Plugin page: formzu-wp
  • Plugin version: 1.6.6
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2016
  • Latest release: Dec 2, 2022
  • Number of updates: 74
  • Update frequency: every 30.5 days
  • Top authors: skagaya (64.86%)hirokioyamada (31.08%)ogasawat (6.76%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /33,754 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.08MB] [CPU: ▼14.48ms] Passed 4 tests

This is a short check of server-side resources used by Formzu WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.35 ▼9.49
Dashboard /wp-admin3.39 ▲0.0545.47 ▼19.56
Posts /wp-admin/edit.php3.49 ▲0.1348.39 ▼3.51
Add New Post /wp-admin/post-new.php6.08 ▲0.2078.01 ▼25.35
Media Library /wp-admin/upload.php3.33 ▲0.1035.93 ▼3.47
フォーム管理 /wp-admin/admin.php?page=formzu-admin3.3039.81
使い方 /wp-admin/admin.php?page=how-to-use3.3034.09

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options
widget_formzudefaultwidget
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Formzu WP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲19513.60 ▼0.776.13 ▲4.0236.82 ▼6.32
Dashboard /wp-admin2,247 ▲414.86 ▼1.02108.24 ▲2.2048.70 ▲3.84
Posts /wp-admin/edit.php2,131 ▲312.05 ▲0.0835.60 ▼6.2342.59 ▲5.54
Add New Post /wp-admin/post-new.php1,561 ▲3023.15 ▼0.20669.84 ▼13.9356.29 ▼4.08
Media Library /wp-admin/upload.php1,428 ▲314.28 ▲0.03109.21 ▼3.6255.29 ▲4.82
フォーム管理 /wp-admin/admin.php?page=formzu-admin1,4262.4453.58124.89
使い方 /wp-admin/admin.php?page=how-to-use2,1632.3433.40102.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_formzudefaultwidget
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

formzu-wp/formzu-wp.php 85% from 13 tests

The main file in "Formzu WP" v. 1.6.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Description: A good plugin description is longer than 10 characters (currently 9 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,223 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP397161513,246
JavaScript4175250558
CSS4535419

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity20.38
▷ Minimum class complexity3.00
▷ Maximum class complexity33.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods86
▷ Static methods4855.81%
▷ Public methods7991.86%
▷ Protected methods00.00%
▷ Private methods78.14%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants990.00%
▷ Class constants110.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin