90% limit-login-attempts-security

Code Review | Limit Login Attempts Security

WordPress plugin Limit Login Attempts Security scored90%from 54 tests.

About plugin

  • Plugin page: limit-login-attem...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Sep 19, 2019
  • Latest release: Sep 30, 2019
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: wpdo5ea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /580 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.63MB] [CPU: ▼22.20ms] Passed 4 tests

Server-side resources used by Limit Login Attempts Security
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.02 ▼5.59
Dashboard /wp-admin3.35 ▲0.0548.63 ▼3.55
Posts /wp-admin/edit.php3.47 ▲0.1147.20 ▼2.75
Add New Post /wp-admin/post-new.php3.23 ▼2.6637.24 ▼76.89
Media Library /wp-admin/upload.php3.28 ▲0.0537.27 ▲0.46
Light Login Security /wp-admin/options-general.php?page=llas3.2532.45

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Limit Login Attempts Security: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.32 ▼0.021.72 ▲0.1144.41 ▲0.56
Dashboard /wp-admin2,196 ▲165.61 ▼0.0393.79 ▲3.7742.60 ▼4.76
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0739.88 ▼0.4635.04 ▼3.02
Add New Post /wp-admin/post-new.php1,529 ▼223.04 ▼0.10676.22 ▲58.4150.99 ▼2.98
Media Library /wp-admin/upload.php1,404 ▲44.10 ▲0.01100.92 ▲2.2345.46 ▼0.49
Light Login Security /wp-admin/options-general.php?page=llas9252.0428.2429.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: login security, login lock, login attempts

limit-login-attempts-security/limit-login-attempts-security.php Passed 13 tests

Analyzing the main PHP file in "Limit Login Attempts Security" version 1.0.2
106 characters long description:
A lightweight version that support GeoLocation for login security. Use GeoLocation (Country/City setting).

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
Success! There were no dangerous files found in this plugin371 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP690167371

PHP code Passed 2 tests

Analyzing 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.40
Average class complexity14.67
▷ Minimum class complexity2.00
▷ Maximum class complexity39.00
Average method complexity3.05
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods630.00%
▷ Public methods1470.00%
▷ Protected methods00.00%
▷ Private methods630.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected