90% gravity-forms-wcag-20-form-fields

Code Review | WCAG 2.0 form fields for Gravity Forms

WordPress plugin WCAG 2.0 form fields for Gravity Forms scored90%from 54 tests.

About plugin

  • Plugin page: gravity-forms-wca...
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Apr 24, 2019
  • Number of updates: 88
  • Update frequency: every 17.6 days
  • Top authors: ovann86 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

7,000+ active /73,125 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
Install script ran successfully

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

A check of server-side resources used by WCAG 2.0 form fields for Gravity Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.33 ▼2.88
Dashboard /wp-admin3.31 ▼0.0343.31 ▼16.25
Posts /wp-admin/edit.php3.36 ▲0.0047.97 ▲0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.40 ▼14.75
Media Library /wp-admin/upload.php3.23 ▲0.0033.71 ▲2.09

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WCAG 2.0 form fields for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5614.31 ▲0.041.61 ▼0.1842.83 ▲2.30
Dashboard /wp-admin2,211 ▲405.61 ▲0.0388.45 ▲0.1840.77 ▼0.56
Posts /wp-admin/edit.php2,113 ▲162.10 ▲0.1139.22 ▲2.6337.20 ▲1.07
Add New Post /wp-admin/post-new.php1,539 ▲1123.55 ▲0.33698.41 ▲61.9253.01 ▼0.36
Media Library /wp-admin/upload.php1,413 ▲134.20 ▲0.04106.47 ▲8.1248.82 ▲8.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive 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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: wcag, gravity forms, accessibility, usability

gravity-forms-wcag-20-form-fields/gravity_forms_wcag20_form_fields_plugin.php 92% from 13 tests

The principal PHP file in "WCAG 2.0 form fields for Gravity Forms" v. 1.7.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravity-forms-wcag-20-form-fields.php" instead of "gravity_forms_wcag20_form_fields_plugin.php")

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
Good job! No executable or dangerous file extensions detected278 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP252114227
CSS23029
JavaScript22222

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity7.50
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods337.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin