89% addonify-recaptcha-for-edd

Code Review | Addonify reCaptcha For EDD

WordPress plugin Addonify reCaptcha For EDD scored 89% from 54 tests.

About plugin

  • Plugin page: addonify-recaptch...
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Jan 12, 2021
  • Latest release: Feb 13, 2022
  • Number of updates: 6
  • Update frequency: every 66.2 days
  • Top authors: addonify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 359 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼291.39ms] Passed 4 tests

A check of server-side resources used by Addonify reCaptcha For EDD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1553.96 ▲2.98
Dashboard /wp-admin3.49 ▲0.0833.49 ▲0.42
Posts /wp-admin/edit.php3.72 ▲0.0838.75 ▼0.76
Add New Post /wp-admin/post-new.php6.95 ▼0.0290.68 ▼1,168.21
Media Library /wp-admin/upload.php3.37 ▲0.0726.60 ▲3.34

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Addonify reCaptcha For EDD
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,829 ▲7516.53 ▲0.8414.35 ▲7.602.55 ▲0.02
Dashboard /wp-admin2,913 ▲556.15 ▼0.08114.62 ▼21.78155.54 ▼3.96
Posts /wp-admin/edit.php2,712 ▲183.25 ▲0.0264.41 ▲1.30140.88 ▲1.73
Add New Post /wp-admin/post-new.php1,782 ▲12120.96 ▲3.18443.98 ▲59.43159.59 ▲7.70
Media Library /wp-admin/upload.php1,716 ▲215.52 ▲0.06136.04 ▼4.51194.82 ▲13.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/addonify-recaptcha-for-edd/public/partials/addonify-recaptcha-for-edd-public-display.php
    • > /wp-content/plugins/addonify-recaptcha-for-edd/admin/partials/addonify-recaptcha-for-edd-admin-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addonify-recaptcha-for-edd/admin/class-addonify-recaptcha-for-edd-settings.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: edd register recaptcha, security, edd login recaptcha, captcha for edd, recaptcha for edd...

addonify-recaptcha-for-edd/addonify-recaptcha-for-edd.php Passed 13 tests

The main PHP file in "Addonify reCaptcha For EDD" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
128 characters long description:
Addonify reCaptcha For EDD is a simple plugin that adds Google reCaptcha in Easy Digital Downloads login and registration forms.

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
No dangerous file extensions were detected343 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13170550310
JavaScript2114033
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.12
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2781.82%
▷ Protected methods00.00%
▷ Private methods618.18%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin