84% vfb-custom-validation-messages

Code Review | Visual Form Builder - Custom Validation Messages

WordPress plugin Visual Form Builder - Custom Validation Messages scored84%from 54 tests.

About plugin

  • Plugin page: vfb-custom-valida...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Jan 28, 2014
  • Number of updates: 15
  • Update frequency: every 19.1 days
  • Top authors: mmuro (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /9,352 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.73ms] Passed 4 tests

This is a short check of server-side resources used by Visual Form Builder - Custom Validation Messages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.30 ▼7.98
Dashboard /wp-admin3.36 ▲0.0551.99 ▲1.09
Posts /wp-admin/edit.php3.41 ▲0.0554.35 ▲7.89
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.89 ▼0.50
Media Library /wp-admin/upload.php3.29 ▲0.0537.54 ▲0.46
Validation Messages /wp-admin/admin.php?page=vfb-custom-validation3.2532.73

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
vfb_validation_messages
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Visual Form Builder - Custom Validation Messages
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.26 ▲0.031.76 ▼0.3246.65 ▲3.17
Dashboard /wp-admin2,195 ▲185.65 ▼0.0595.14 ▼2.5442.60 ▲0.44
Posts /wp-admin/edit.php2,100 ▼02.15 ▲0.1233.88 ▼6.3933.94 ▼1.48
Add New Post /wp-admin/post-new.php1,526 ▼523.56 ▼0.16630.06 ▼45.3157.64 ▼0.91
Media Library /wp-admin/upload.php1,403 ▲94.19 ▼0.0399.36 ▼2.2944.61 ▼1.29
Validation Messages /wp-admin/admin.php?page=vfb-custom-validation1,1702.0023.7527.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • vfb_validation_messages
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vfb-custom-validation-messages/vfb-custom-validation-messages.php:65

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: jquery validation, form builder, forms, contact form

vfb-custom-validation-messages/vfb-custom-validation-messages.php Passed 13 tests

This is the main PHP file of "Visual Form Builder - Custom Validation Messages" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Customize the jQuery validation messages for Visual Form Builder and Visual Form Builder Pro forms

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin334 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP144106334

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin