93% wppm-login-security-notification

Code Review | WPPM Login Security Notification

WordPress plugin WPPM Login Security Notification scored 93% from 54 tests.

About plugin

  • Plugin page: wppm-login-securi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Feb 5, 2018
  • Latest release: Feb 5, 2018
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: pradeepku041 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 421 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼296.11ms] Passed 4 tests

Server-side resources used by WPPM Login Security Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.00 ▲5.49
Dashboard /wp-admin3.41 ▲0.0131.96 ▼0.82
Posts /wp-admin/edit.php3.65 ▲0.0135.74 ▼1.99
Add New Post /wp-admin/post-new.php6.92 ▼0.0897.91 ▼1,174.60
Media Library /wp-admin/upload.php3.30 ▼0.0023.45 ▼7.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WPPM Login Security Notification: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4015.89 ▲0.315.64 ▼0.642.82 ▲0.06
Dashboard /wp-admin2,895 ▲345.98 ▼0.17113.90 ▼16.74154.52 ▼9.06
Posts /wp-admin/edit.php2,694 ▼03.23 ▲0.0063.35 ▲1.09138.38 ▼4.89
Add New Post /wp-admin/post-new.php1,661 ▼9116.02 ▼5.39398.01 ▼25.85157.48 ▼0.06
Media Library /wp-admin/upload.php1,698 ▲65.53 ▲0.08142.33 ▼7.34189.31 ▼2.13

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wppm-login-security-notification/functions.php:81

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 errors were detected

Optimizations

Plugin configuration 90% 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
8 plugin tags: notify, email, alert, security, notification...

wppm-login-security-notification/functions.php 77% from 13 tests

Analyzing the main PHP file in "WPPM Login Security Notification" version 1.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wppm-login-security-notification.php" instead of "functions.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Description: The description should be shorter than 140 characters (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2275257

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected