100% e11-recaptcha

Code Review | e11 reCAPTCHA

WordPress plugin e11 reCAPTCHA scored 100% from 54 tests.

About plugin

  • Plugin page: e11-recaptcha
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7.3
  • WordPress version: 5.8.1
  • First release: Apr 12, 2017
  • Latest release: Apr 7, 2017
  • Number of updates: 13
  • Update frequency: every 6.8 days
  • Top authors: er11 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 436 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼141.77ms] Passed 4 tests

A check of server-side resources used by e11 reCAPTCHA
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1737.05 ▲17.11
Dashboard /wp-admin3.15 ▲0.1045.95 ▼4.29
Posts /wp-admin/edit.php3.20 ▲0.0844.08 ▼2.44
Add New Post /wp-admin/post-new.php5.51 ▲0.0895.13 ▼563.62
Media Library /wp-admin/upload.php3.09 ▲0.0937.67 ▲3.26
e11 reCAPTCHA /wp-admin/options-general.php?page=e11_recaptcha3.0631.45

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for e11 reCAPTCHA
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,709 ▲7216.60 ▲0.6812.16 ▲2.9250.61 ▲0.79
Dashboard /wp-admin3,004 ▲736.91 ▲0.91145.81 ▼9.09116.50 ▼3.67
Posts /wp-admin/edit.php2,754 ▲153.13 ▲0.4480.37 ▲9.9795.24 ▼6.95
Add New Post /wp-admin/post-new.php3,960 ▲2,34516.44 ▼5.01490.79 ▲202.03140.25 ▲26.54
Media Library /wp-admin/upload.php1,822 ▲155.57 ▲0.56163.42 ▼9.35134.33 ▲12.32
e11 reCAPTCHA /wp-admin/options-general.php?page=e11_recaptcha1,1682.7762.1093.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: register, recaptcha, users, comments, spam...

e11-recaptcha/e11-recaptcha.php Passed 13 tests

The principal PHP file in "e11 reCAPTCHA" v. 1.0 is loaded by WordPress automatically on each request
35 characters long description:
Add reCAPTCHA support to WordPress.

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
No dangerous file extensions were detected521 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3178213478
CSS29043

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity29.00
▷ Minimum class complexity12.00
▷ Maximum class complexity46.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods17100.00%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected