84% ninja-forms-recaptcha-field

Code Review | reCAPTCHA for Ninja Forms

WordPress plugin reCAPTCHA for Ninja Forms scored84%from 54 tests.

About plugin

  • Plugin page: ninja-forms-recap...
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2015
  • Latest release: Jan 21, 2023
  • Number of updates: 45
  • Update frequency: every 63.6 days
  • Top authors: aman086 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /92,935 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by reCAPTCHA for Ninja Forms
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.70 ▼3.40
Dashboard /wp-admin3.31 ▲0.0044.89 ▼2.88
Posts /wp-admin/edit.php3.36 ▲0.0047.96 ▲3.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.88 ▼3.62
Media Library /wp-admin/upload.php3.23 ▲0.0033.99 ▼3.01

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for reCAPTCHA for Ninja Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.36 ▼0.041.70 ▼0.3940.86 ▼2.29
Dashboard /wp-admin2,206 ▲155.83 ▲0.96102.02 ▼1.4336.87 ▼4.89
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0140.10 ▲6.0534.10 ▼1.33
Add New Post /wp-admin/post-new.php1,534 ▼323.11 ▲0.00655.68 ▼5.9052.68 ▼10.86
Media Library /wp-admin/upload.php1,388 ▼34.22 ▲0.0392.14 ▼3.7542.06 ▲0.67

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ninja-forms-recaptcha-field/ninja-forms-recaptcha.php

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

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
9 plugin tags: google recaptcha, addon, custom field, getresponse, sendy...

ninja-forms-recaptcha-field/ninja-forms-recaptcha.php 85% from 13 tests

The principal PHP file in "reCAPTCHA for Ninja Forms" v. 1.2.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ninja-forms-recaptcha-field.php" instead of "ninja-forms-recaptcha.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.4" instead of "3.5")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin150 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17037150

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin