84% gf-unique-list

Code Review | Unique List For Gravity Forms

WordPress plugin Unique List For Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: gf-unique-list
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 15, 2020
  • Latest release: Jul 6, 2023
  • Number of updates: 6
  • Update frequency: every 185.8 days
  • Top authors: jamesdlow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /544 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼13.14ms] Passed 4 tests

A check of server-side resources used by Unique List For Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.08 ▼5.65
Dashboard /wp-admin3.32 ▼0.0342.20 ▼27.82
Posts /wp-admin/edit.php3.37 ▲0.0143.51 ▼9.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.99 ▼10.08
Media Library /wp-admin/upload.php3.24 ▲0.0139.13 ▲5.10

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Unique List For Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.69 ▲0.341.63 ▼0.2842.03 ▲1.19
Dashboard /wp-admin2,198 ▲215.64 ▼0.0293.78 ▲2.8542.64 ▲0.75
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0036.58 ▲1.3331.20 ▲0.22
Add New Post /wp-admin/post-new.php1,528 ▼723.07 ▲4.92646.17 ▲31.8653.74 ▼7.83
Media Library /wp-admin/upload.php1,403 ▲64.20 ▲0.0298.76 ▼3.2242.61 ▼1.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-unique-list/gf-unique-list.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
10 plugin tags: forms, stripe, paypal, transactions, gforms...

gf-unique-list/gf-unique-list.php Passed 13 tests

Analyzing the main PHP file in "Unique List For Gravity Forms" version 1.0.5
79 characters long description:
Add a unique piece of text or code to each gravity form from a predefined list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected113 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2518113

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity12.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods777.78%
▷ Public methods9100.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

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