84% recaptcha-give

Code Review | reCAPTCHA for GiveWP

WordPress plugin reCAPTCHA for GiveWP scored84%from 54 tests.

About plugin

  • Plugin page: recaptcha-give
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Nov 18, 2021
  • Latest release: Feb 10, 2022
  • Number of updates: 8
  • Update frequency: every 10.6 days
  • Top authors: bmarshall511 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,303 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼9.51ms] Passed 4 tests

Analyzing server-side resources used by reCAPTCHA for GiveWP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1138.18 ▼2.62
Dashboard /wp-admin3.44 ▲0.0950.25 ▼12.63
Posts /wp-admin/edit.php3.55 ▲0.1946.74 ▼0.12
Add New Post /wp-admin/post-new.php6.02 ▲0.1381.25 ▼22.65
Media Library /wp-admin/upload.php3.36 ▲0.1336.54 ▲3.15
reCAPTCHA for Give /wp-admin/options-general.php?page=recaptchagive-settings3.3330.73

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

reCAPTCHA for GiveWP: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.16 ▼0.231.96 ▲0.4345.29 ▲4.95
Dashboard /wp-admin2,202 ▲215.62 ▼0.0992.40 ▼3.4641.52 ▼0.30
Posts /wp-admin/edit.php2,101 ▲42.16 ▲0.1833.58 ▼1.4535.54 ▲2.80
Add New Post /wp-admin/post-new.php1,531 ▼523.37 ▲0.13627.32 ▼73.3257.77 ▼1.03
Media Library /wp-admin/upload.php1,404 ▲74.19 ▼0.1694.60 ▲0.8940.98 ▼2.70
reCAPTCHA for Give /wp-admin/options-general.php?page=recaptchagive-settings8551.9921.8425.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=recaptchagive-settings
    • > Network (severe)
    wp-content/plugins/recaptcha-give/assets/css/admin.css?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=recaptchagive-settings
    • > Network (severe)
    wp-content/plugins/recaptcha-give/assets/js/admin.js?ver=1.0.0 - Failed to load resource: the server responded with a status of 404 (Not 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
5 plugin tags: givewp, spam blocker, recaptcha, spam, give

recaptcha-give/recaptcha-give.php 85% from 13 tests

The main PHP file in "reCAPTCHA for GiveWP" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected536 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7113229529
JavaScript1007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity13.00
▷ Minimum class complexity2.00
▷ Maximum class complexity56.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods25
▷ Static methods624.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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