84% login-recaptcha

Code Review | Login No Captcha reCAPTCHA

WordPress plugin Login No Captcha reCAPTCHA scored84%from 54 tests.

About plugin

  • Plugin page: login-recaptcha
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Apr 17, 2015
  • Latest release: Nov 25, 2023
  • Number of updates: 61
  • Update frequency: every 51.5 days
  • Top authors: robert.peake (100%)

Code review

54 tests

User reviews

59 reviews

Install metrics

90,000+ active /1,190,874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

This is a short check of server-side resources used by Login No Captcha reCAPTCHA
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.82 ▼4.07
Dashboard /wp-admin3.41 ▲0.1148.70 ▼0.59
Posts /wp-admin/edit.php3.52 ▲0.1751.36 ▲4.66
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.95 ▼0.77
Media Library /wp-admin/upload.php3.33 ▲0.1034.24 ▲0.71
Login NoCaptcha /wp-admin/options-general.php?page=login-recaptcha/admin.php3.3233.45

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 12 new options
New WordPress options
login_nocaptcha_whitelist
login_nocaptcha_secret
can_compress_scripts
login_nocaptcha_error
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
login_nocaptcha_disable_css
login_nocaptcha_message_type
...

Browser metrics Passed 4 tests

Login No Captcha reCAPTCHA: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6314.23 ▼0.111.58 ▼0.1540.11 ▼4.22
Dashboard /wp-admin2,212 ▲375.52 ▼0.1599.46 ▼2.1844.37 ▲1.87
Posts /wp-admin/edit.php2,121 ▲211.98 ▲0.0040.60 ▼0.1637.61 ▲4.05
Add New Post /wp-admin/post-new.php1,542 ▲1623.19 ▼0.16657.31 ▲49.7969.05 ▲7.45
Media Library /wp-admin/upload.php1,420 ▲264.22 ▼0.02100.52 ▲2.4043.19 ▲2.22
Login NoCaptcha /wp-admin/options-general.php?page=login-recaptcha/admin.php9012.0233.8932.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 12 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • login_nocaptcha_disable_css
    • login_nocaptcha_whitelist
    • login_nocaptcha_message_type
    • login_nocaptcha_key
    • login_nocaptcha_error
    • db_upgraded
    • ...

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/login-recaptcha/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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: bots, login, nocaptcha, security, google...

login-recaptcha/login-nocaptcha.php 92% from 13 tests

The entry point to "Login No Captcha reCAPTCHA" version 1.7.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("login-recaptcha.php" instead of "login-nocaptcha.php")

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 plugin974 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File5163295515
PHP23522454
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods19100.00%
▷ Public methods19100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected