90% gf-no-duplicates

Code Review | GF No Duplicates

WordPress plugin GF No Duplicates scored 90% from 54 tests.

About plugin

  • Plugin page: gf-no-duplicates
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2022
  • Latest release: Sep 14, 2023
  • Number of updates: 9
  • Update frequency: every 64.3 days
  • Top authors: samuelaguilera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 2,535 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by GF No Duplicates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.70 ▼2.97
Dashboard /wp-admin3.31 ▲0.0145.90 ▼6.28
Posts /wp-admin/edit.php3.36 ▲0.0148.50 ▼4.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.88 ▼9.93
Media Library /wp-admin/upload.php3.23 ▲0.0136.86 ▲0.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by GF No Duplicates
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.051.80 ▲0.0842.61 ▼1.63
Dashboard /wp-admin2,206 ▲155.89 ▲0.9898.30 ▼18.8638.97 ▼9.22
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0339.69 ▲3.3534.42 ▼2.06
Add New Post /wp-admin/post-new.php1,533 ▲1923.34 ▼0.33677.02 ▲8.3257.63 ▲1.15
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0294.43 ▼1.8841.63 ▼3.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gravity forms, gravityforms, duplicated entry, duplicated submission, duplicates

gf-no-duplicates/gf-no-duplicates.php Passed 13 tests

The main file in "GF No Duplicates" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
97 characters long description:
Prevents duplicate Gravity Forms submissions caused by the same POST request sent more than once.

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

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin