89% recaptcha-for-easy-digital-downloads

Code Review | reCAPTCHA for Easy Digital Downloads

WordPress plugin reCAPTCHA for Easy Digital Downloads scored89%from 54 tests.

About plugin

  • Plugin page: recaptcha-for-eas...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2015
  • Latest release: Nov 23, 2015
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: teFox (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,701 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by reCAPTCHA for Easy Digital Downloads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.36 ▲2.22
Dashboard /wp-admin3.32 ▼0.0349.86 ▼11.94
Posts /wp-admin/edit.php3.37 ▲0.0150.52 ▼3.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.52 ▼14.64
Media Library /wp-admin/upload.php3.24 ▲0.0135.69 ▲1.07

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

reCAPTCHA for Easy Digital Downloads: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.70 ▲0.141.93 ▲0.2540.31 ▼4.78
Dashboard /wp-admin2,198 ▲215.59 ▼0.0284.30 ▼6.7240.79 ▼2.17
Posts /wp-admin/edit.php2,106 ▲22.03 ▲0.0140.03 ▼1.0439.45 ▲4.14
Add New Post /wp-admin/post-new.php1,529 ▼823.11 ▲4.86671.44 ▲6.8152.99 ▼19.63
Media Library /wp-admin/upload.php1,406 ▲64.25 ▲0.0197.98 ▼4.5844.27 ▼0.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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

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)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: captcha, easy digital downloads, recaptcha, edd

recaptcha-for-easy-digital-downloads/recaptcha-for-edd.php 85% from 13 tests

Analyzing the main PHP file in "reCAPTCHA for Easy Digital Downloads" version 1.0.0
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("recaptcha-for-easy-digital-downloads.php" instead of "recaptcha-for-edd.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.75
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods415.38%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ 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 were not PNG files found in your plugin