10% gravity-forms-no-captcha-recaptcha

Code Review | Gravity Forms No CAPTCHA reCAPTCHA

WordPress plugin Gravity Forms No CAPTCHA reCAPTCHA scored10%from 54 tests.

About plugin

  • Plugin page: gravity-forms-no-...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.0.0
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Jan 21, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: folkhack (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

10,000+ active /49,245 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/gravity-forms-no-captcha-recaptcha/public/class-gf-no-captcha-recaptcha-public.php+104
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.85MB] [CPU: ▼56.72ms] Passed 4 tests

Server-side resources used by Gravity Forms No CAPTCHA reCAPTCHA
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.336.01 ▼40.09
Dashboard /wp-admin2.16 ▼1.157.25 ▼48.65
Posts /wp-admin/edit.php2.16 ▼1.207.34 ▼42.76
Add New Post /wp-admin/post-new.php2.16 ▼3.736.92 ▼95.36
Media Library /wp-admin/upload.php2.16 ▼1.076.63 ▼30.11
No CAPTCHA reCAPTCHA /wp-admin/options-general.php?page=gf-no-captcha-recaptcha-admin2.167.25

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravity Forms No CAPTCHA reCAPTCHA
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲1214.28 ▼0.251.74 ▼0.4143.67 ▼1.38
Dashboard /wp-admin2,201 ▲245.62 ▲0.0394.21 ▼6.8143.37 ▼0.13
Posts /wp-admin/edit.php2,109 ▲92.02 ▼0.0134.00 ▼2.8835.04 ▼3.67
Add New Post /wp-admin/post-new.php1,536 ▲123.08 ▲4.80674.73 ▼14.3854.69 ▼10.99
Media Library /wp-admin/upload.php1,409 ▲94.23 ▼0.01104.68 ▲0.4949.04 ▲2.99
No CAPTCHA reCAPTCHA /wp-admin/options-general.php?page=gf-no-captcha-recaptcha-admin8212.0132.7432.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/gravity-forms-no-captcha-recaptcha/public/class-gf-no-captcha-recaptcha-public.php+104
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=gf-no-captcha-recaptcha-admin
    • > Notice in wp-content/plugins/gravity-forms-no-captcha-recaptcha/public/class-gf-no-captcha-recaptcha-public.php+105
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/gravity-forms-no-captcha-recaptcha/public/partials/gf-no-captcha-recaptcha-public-gforms-editor-js.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/gravity-forms-no-captcha-recaptcha/public/partials/gf-no-captcha-recaptcha-public-theme-dropdown.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gravity-forms-no-captcha-recaptcha/admin/partials/gf-no-captcha-recaptcha-admin-display.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 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
4 plugin tags: no captcha, recaptcha, captcha, gravity forms

gravity-forms-no-captcha-recaptcha/gf-no-captcha-recaptcha.php 85% from 13 tests

The main file in "Gravity Forms No CAPTCHA reCAPTCHA" v. 1.0.7 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:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("gravity-forms-no-captcha-recaptcha.php" instead of "gf-no-captcha-recaptcha.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin360 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP12179668344
JavaScript111816

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods3083.33%
▷ Protected methods00.00%
▷ Private methods616.67%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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