84% users-login-monitor

Code Review | Users Login Monitor

WordPress plugin Users Login Monitor scored84%from 54 tests.

About plugin

  • Plugin page: users-login-monitor
  • Plugin version: ...
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2018
  • Latest release: Sep 5, 2023
  • Number of updates: 25
  • Update frequency: every 73.0 days
  • Top authors: wpgear (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,142 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.75ms] Passed 4 tests

An overview of server-side resources used by Users Login Monitor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.34 ▼7.11
Dashboard /wp-admin3.37 ▲0.0347.74 ▼15.41
Posts /wp-admin/edit.php3.42 ▲0.0745.96 ▼2.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.10 ▼6.02
Media Library /wp-admin/upload.php3.30 ▲0.0735.08 ▲1.16
Users Login Monitor /wp-admin/users.php?page=users-login-monitor/includes/options.php3.3534.00

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Users Login Monitor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲14814.12 ▼0.221.96 ▼0.1338.78 ▼4.18
Dashboard /wp-admin2,300 ▲1205.64 ▼0.0186.07 ▼12.6639.22 ▼2.56
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0237.95 ▼1.6336.54 ▲1.53
Add New Post /wp-admin/post-new.php1,529 ▲323.18 ▼0.46634.44 ▲26.5349.16 ▼11.33
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.0496.01 ▼1.1541.21 ▼0.25
Users Login Monitor /wp-admin/users.php?page=users-login-monitor/includes/options.php8322.0026.9927.80

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/users-login-monitor/users-login-monitor.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/users-login-monitor/includes/options.php:7

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: logout, security, users, dashboard, admin...

users-login-monitor/users-login-monitor.php 85% from 13 tests

This is the main PHP file of "Users Login Monitor" version ..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 199 characters long)
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "...")

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 plugin452 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP511864427
CSS10425

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
There are no PNG files in this plugin