89% login-attempt-limit

Code Review | Limit Login Attempts

WordPress plugin Limit Login Attempts scored89%from 54 tests.

About plugin

  • Plugin page: login-attempt-limit
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2017
  • Latest release: Jan 25, 2018
  • Number of updates: 4
  • Update frequency: every 14.0 days
  • Top authors: themeegg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,200 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.73ms] Passed 4 tests

An overview of server-side resources used by Limit Login Attempts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1843.86 ▲2.31
Dashboard /wp-admin3.46 ▲0.1158.04 ▼9.10
Posts /wp-admin/edit.php3.57 ▲0.2152.60 ▲1.89
Add New Post /wp-admin/post-new.php6.04 ▲0.1590.75 ▼4.68
Media Library /wp-admin/upload.php3.38 ▲0.1541.61 ▲0.98
Limit Login Attempts /wp-admin/options-general.php?page=login-attempt-limit3.3541.75

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/login-attempt-limit/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Limit Login Attempts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲8413.20 ▼1.185.28 ▲3.5943.84 ▲1.44
Dashboard /wp-admin2,228 ▲254.81 ▼1.1099.80 ▼3.2136.65 ▼3.02
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0235.86 ▼0.9132.43 ▼3.14
Add New Post /wp-admin/post-new.php1,543 ▲1723.39 ▲5.63736.46 ▲57.7264.27 ▼4.00
Media Library /wp-admin/upload.php1,401 ▲74.22 ▼0.0996.01 ▼6.1647.29 ▼0.75
Limit Login Attempts /wp-admin/options-general.php?page=login-attempt-limit9242.0426.6432.39

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: login, security, authentication

login-attempt-limit/login-attempt-limit.php 92% from 13 tests

The entry point to "Limit Login Attempts" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("2.8" instead of "3.0.1")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin848 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3261358848

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods20
▷ Static methods15.00%
▷ Public methods1575.00%
▷ Protected methods00.00%
▷ Private methods525.00%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
PNG images were not found in this plugin