90% login-security-recaptcha

Code Review | Login Security Captcha

WordPress plugin Login Security Captcha scored90%from 54 tests.

About plugin

  • Plugin page: login-security-re...
  • Plugin version: 1.5.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: May 14, 2019
  • Latest release: Nov 23, 2023
  • Number of updates: 61
  • Update frequency: every 27.1 days
  • Top authors: scriptstown (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

8,000+ active /134,209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼2.95ms] Passed 4 tests

An overview of server-side resources used by Login Security Captcha
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1935.76 ▼2.90
Dashboard /wp-admin3.55 ▲0.2448.49 ▼2.79
Posts /wp-admin/edit.php3.66 ▲0.3048.49 ▲0.56
Add New Post /wp-admin/post-new.php6.13 ▲0.2488.97 ▼6.65
Media Library /wp-admin/upload.php3.47 ▲0.2438.05 ▲4.93
Login Security /wp-admin/options-general.php?page=stlsr_settings3.5838.49
Login Security Captcha /wp-admin/admin.php?page=stlsr_settings3.5835.76

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Login Security Captcha
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5514.68 ▲0.401.55 ▼0.0837.76 ▼5.53
Dashboard /wp-admin2,202 ▲245.62 ▼0.0694.40 ▼12.7641.43 ▼3.51
Posts /wp-admin/edit.php2,101 ▲42.00 ▼0.1342.31 ▲3.9837.92 ▲4.96
Add New Post /wp-admin/post-new.php1,529 ▲323.15 ▲0.32660.86 ▲16.9160.06 ▲11.95
Media Library /wp-admin/upload.php1,398 ▼54.27 ▲0.0398.43 ▼2.9440.16 ▼4.84
Login Security /wp-admin/options-general.php?page=stlsr_settings1,6741.7429.1447.19
Login Security Captcha /wp-admin/admin.php?page=stlsr_settings1,6681.9128.1038.14

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

login-security-recaptcha/login-security-recaptcha.php Passed 13 tests

"Login Security Captcha" version 1.5.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
139 characters long description:
Secure WordPress login, registration, and comment form with Google reCAPTCHA or Cloudflare Turnstile. Prevent Brute-force attacks and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,107 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP16331221,828
CSS414410794
PO File1113145266
JavaScript1153219

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity38.62
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity5.93
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods61
▷ Static methods5895.08%
▷ Public methods5895.08%
▷ Protected methods00.00%
▷ Private methods34.92%
Functions0
▷ Named functions00.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
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/Login-Security-Pro.png20.41KB18.95KB▼ 7.16%