90% custom-error-messages-for-gravityforms

Code Review | Custom Error Messages for Gravity Forms

WordPress plugin Custom Error Messages for Gravity Forms scored90%from 54 tests.

About plugin

  • Plugin page: custom-error-mess...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 3, 2022
  • Latest release: Oct 23, 2023
  • Number of updates: 9
  • Update frequency: every 49.7 days
  • Top authors: Domaneni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /808 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.34ms] Passed 4 tests

Server-side resources used by Custom Error Messages for Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.18 ▲0.52
Dashboard /wp-admin3.32 ▼0.0246.22 ▼15.12
Posts /wp-admin/edit.php3.37 ▲0.0243.17 ▲0.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.18 ▲0.80
Media Library /wp-admin/upload.php3.24 ▲0.0233.94 ▼2.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Custom Error Messages for Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.45 ▼0.221.74 ▲0.0244.51 ▲5.84
Dashboard /wp-admin2,198 ▲185.57 ▼0.0795.55 ▲8.8541.54 ▲2.21
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0039.73 ▲2.4336.75 ▲0.51
Add New Post /wp-admin/post-new.php1,526 ▼023.38 ▲0.20621.96 ▼39.1952.13 ▼1.08
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.0196.88 ▼5.3243.54 ▼0.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
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 on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gravityforms, gravity forms, custom, error message, error

custom-error-messages-for-gravityforms/custom-error-messages-for-gravityforms.php Passed 13 tests

This is the main PHP file of "Custom Error Messages for Gravity Forms" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Adds custom error messages to Gravity Forms inputs

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin275 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP45489201
JavaScript221065
CSS2009

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods444.44%
▷ Protected methods00.00%
▷ Private methods555.56%
Functions11
▷ Named functions436.36%
▷ Anonymous functions763.64%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin