84% wp-login-alerts

Code Review | WP Login Alerts by DigiP

WordPress plugin WP Login Alerts by DigiP scored84%from 54 tests.

About plugin

  • Plugin page: wp-login-alerts
  • Plugin version: 2013-05-30.10...
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.9
  • WordPress version: 6.3.1
  • First release: Aug 14, 2012
  • Latest release: Apr 16, 2014
  • Number of updates: 15
  • Update frequency: every 40.7 days
  • Top authors: DigiP (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /4,426 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.70ms] Passed 4 tests

An overview of server-side resources used by WP Login Alerts by DigiP
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.32 ▼6.64
Dashboard /wp-admin3.32 ▼0.0244.64 ▼16.55
Posts /wp-admin/edit.php3.37 ▲0.0247.55 ▲0.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.97 ▼5.81
Media Library /wp-admin/upload.php3.25 ▲0.0233.87 ▼1.79

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Login Alerts by DigiP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4313.70 ▼0.581.89 ▲0.1338.81 ▼6.26
Dashboard /wp-admin2,192 ▲115.51 ▼0.1589.55 ▼22.9241.07 ▲0.09
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.1940.20 ▲2.0635.39 ▲4.04
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▼0.10594.60 ▼38.3152.15 ▲7.58
Media Library /wp-admin/upload.php1,394 ▼64.18 ▲0.0299.01 ▲3.8340.85 ▲0.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-login-alerts/login-alerts.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: email, digip, wordpress, alerts, security...

wp-login-alerts/login-alerts.php 85% from 13 tests

The main file in "WP Login Alerts by DigiP" v. 2013-05-30.10... serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "2013-05-30.10...")
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-login-alerts.php" instead of "login-alerts.php")

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
No dangerous file extensions were detected43 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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