84% validation-error-message-cf7

Code Review | Validation Error Message - CF7

WordPress plugin Validation Error Message - CF7 scored84%from 54 tests.

About plugin

  • Plugin page: validation-error-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 17, 2015
  • Latest release: Dec 17, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: praveen_goswami (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /761 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.00MB] [CPU: ▼2.62ms] Passed 4 tests

This is a short check of server-side resources used by Validation Error Message - CF7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.11 ▲1.36
Dashboard /wp-admin3.31 ▲0.0045.11 ▼1.62
Posts /wp-admin/edit.php3.36 ▲0.0044.27 ▲2.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.93 ▼10.68
Media Library /wp-admin/upload.php3.23 ▲0.0033.31 ▲0.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Validation Error Message - CF7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.27 ▼1.112.06 ▲0.2347.26 ▲4.57
Dashboard /wp-admin2,209 ▲214.83 ▼1.04100.52 ▼17.4039.75 ▼3.63
Posts /wp-admin/edit.php2,089 ▼32.14 ▲0.1334.32 ▼1.5335.49 ▼2.02
Add New Post /wp-admin/post-new.php1,535 ▲2123.16 ▲5.73676.40 ▼42.5163.22 ▲8.62
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0496.49 ▼12.3341.96 ▼6.52

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 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)
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/validation-error-message-cf7/validation-error-msg-cf7.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

validation-error-message-cf7/validation-error-msg-cf7.php 92% from 13 tests

Analyzing the main PHP file in "Validation Error Message - CF7" version 1.0
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("validation-error-message-cf7.php" instead of "validation-error-msg-cf7.php")

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
There were no executable files found in this plugin169 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24554169

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods240.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin