84% vision6-gravity-forms

Code Review | Vision6 Gravity Forms Add-On

WordPress plugin Vision6 Gravity Forms Add-On scored 84% from 54 tests.

About plugin

  • Plugin page: vision6-gravity-f...
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 3, 2018
  • Latest release: Aug 9, 2023
  • Number of updates: 30
  • Update frequency: every 65.3 days
  • Top authors: vision6 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,732 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Vision6 Gravity Forms Add-On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.73 ▼5.91
Dashboard /wp-admin3.31 ▲0.0146.55 ▼4.05
Posts /wp-admin/edit.php3.36 ▲0.0154.04 ▲9.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.45 ▲2.90
Media Library /wp-admin/upload.php3.23 ▲0.0131.78 ▼3.78

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Vision6 Gravity Forms Add-On
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.51 ▲0.141.91 ▲0.2139.81 ▼3.29
Dashboard /wp-admin2,209 ▲175.91 ▲0.98105.04 ▼9.7943.52 ▲0.20
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0038.83 ▲4.3735.50 ▲2.50
Add New Post /wp-admin/post-new.php1,544 ▲2518.54 ▼4.60627.95 ▼44.1253.27 ▼2.07
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0194.13 ▼10.4443.19 ▼3.52

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vision6-gravity-forms/vision6.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/vision6-gravity-forms/class-gf-vision6.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: form, contact, vision6, gravity forms, forms...

vision6-gravity-forms/vision6.php 85% from 13 tests

The main file in "Vision6 Gravity Forms Add-On" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("vision6-gravity-forms.php" instead of "vision6.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,118 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP54956841,118

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity40.20
▷ Minimum class complexity1.00
▷ Maximum class complexity133.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods52
▷ Static methods23.85%
▷ Public methods4892.31%
▷ Protected methods11.92%
▷ Private methods35.77%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin