90% wp-login-attempts

Code Review | WP Login Attempts

WordPress plugin WP Login Attempts scored90%from 54 tests.

About plugin

  • Plugin page: wp-login-attempts
  • Plugin version: 5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2019
  • Latest release: Nov 4, 2022
  • Number of updates: 20
  • Update frequency: every 52.9 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,080 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by WP Login Attempts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2240.39 ▼8.91
Dashboard /wp-admin3.59 ▲0.2856.42 ▲10.07
Posts /wp-admin/edit.php3.64 ▲0.2862.32 ▲16.10
Add New Post /wp-admin/post-new.php6.10 ▲0.2187.57 ▼18.35
Media Library /wp-admin/upload.php3.43 ▲0.1941.60 ▲6.46
WP Login Attempts /wp-admin/options-general.php?page=wp-login-attempts3.5545.34

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Login Attempts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲24316.05 ▲1.751.87 ▼0.2642.04 ▼1.80
Dashboard /wp-admin2,367 ▲1766.74 ▲1.66138.70 ▲35.7243.50 ▼0.40
Posts /wp-admin/edit.php2,285 ▲1963.68 ▲1.6557.34 ▲21.3433.04 ▲1.14
Add New Post /wp-admin/post-new.php1,541 ▲823.39 ▲0.13649.45 ▼33.0136.06 ▼15.81
Media Library /wp-admin/upload.php1,419 ▲314.55 ▲0.2983.68 ▼31.8442.14 ▼6.38
WP Login Attempts /wp-admin/options-general.php?page=wp-login-attempts1,6663.4162.2338.10

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • 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 | 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: hack, authentication, loginizer, login link, attempts...

wp-login-attempts/wp-login-attempts.php 92% from 13 tests

The entry point to "WP Login Attempts" version 5.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 431 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,841 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP33001461,389
CSS1168325
JavaScript52631127

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions60
▷ Named functions5795.00%
▷ Anonymous functions35.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin