93% no-captcha-recaptcha

Code Review | No CAPTCHA reCAPTCHA

WordPress plugin No CAPTCHA reCAPTCHA scored 93% from 54 tests.

About plugin

  • Plugin page: no-captcha-recaptcha
  • Plugin version: 1.3.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 5.8.1
  • First release: Dec 9, 2014
  • Latest release: Apr 15, 2020
  • Number of updates: 56
  • Update frequency: every 34.9 days
  • Top authors: Collizo4sky (91.07%)adeptplus (10.71%)

Code review

54 tests

User reviews

69 reviews

Install metrics

10,000+ active / 139,220 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼145.20ms] 75% from 4 tests

Analyzing server-side resources used by No CAPTCHA reCAPTCHA
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 602.05ms on /wp-admin/options-general.php?page=ncr-config)
PageMemory (MB)CPU Time (ms)
Home /2.98 ▲0.2637.47 ▲14.25
Dashboard /wp-admin3.25 ▲0.2049.15 ▲0.06
Posts /wp-admin/edit.php3.35 ▲0.2447.84 ▼1.90
Add New Post /wp-admin/post-new.php5.83 ▲0.4083.69 ▼582.01
Media Library /wp-admin/upload.php3.21 ▲0.2139.78 ▲3.04
No CAPTCHA reCAPTCHA /wp-admin/options-general.php?page=ncr-config3.59602.05

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 1 new option
New WordPress options
ncr_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for No CAPTCHA reCAPTCHA
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲19416.70 ▲1.0812.79 ▲3.9649.04 ▼1.47
Dashboard /wp-admin3,045 ▲1116.05 ▼0.17143.12 ▼14.26122.40 ▼1.19
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0170.07 ▼0.9490.31 ▼10.34
Add New Post /wp-admin/post-new.php1,686 ▲10518.40 ▼1.99379.11 ▼18.26124.29 ▲9.24
Media Library /wp-admin/upload.php1,812 ▲25.00 ▼0.01161.37 ▼3.26121.79 ▲2.75
No CAPTCHA reCAPTCHA /wp-admin/options-general.php?page=ncr-config1,6902.0962.8186.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 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 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha/comment-form.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha/registration.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-recaptcha/mo-admin-notice.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha/login.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Ncr_No_Captcha_Recaptcha' not found in wp-content/plugins/no-captcha-recaptcha/buddypress-registration.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-captcha-recaptcha/mo-admin-notice.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === no-captcha-recaptcha === )
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can take inspiration from this readme.txt

no-captcha-recaptcha/no-captcha-recaptcha.php 92% from 13 tests

The main PHP script in "No CAPTCHA reCAPTCHA" version 1.3.4 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin961 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8185122686
PO File2109133275

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.29
▷ Minimum class complexity5.00
▷ Maximum class complexity19.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods2678.79%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin