94% active-users-list

Code Review | Active Users List

WordPress plugin Active Users List scored 94% from 54 tests.

About plugin

  • Plugin page: active-users-list
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.3
  • WordPress version: 5.8.1
  • First release: Nov 5, 2019
  • Latest release: Nov 5, 2019
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: ambarishchatterjee89 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 321 total downloads


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
Installer ran successfully

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

Server-side resources used by Active Users List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.49 ▲12.51
Dashboard /wp-admin3.07 ▲0.0142.14 ▼7.62
Posts /wp-admin/edit.php3.12 ▲0.0146.63 ▼3.41
Add New Post /wp-admin/post-new.php5.43 ▼0.0193.98 ▼568.28
Media Library /wp-admin/upload.php3.01 ▲0.0131.79 ▼5.81

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Active Users List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲11715.91 ▲0.168.70 ▼1.4858.11 ▲11.27
Dashboard /wp-admin2,970 ▲335.93 ▼0.16134.82 ▼6.80106.91 ▼10.43
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0163.89 ▲0.9188.02 ▼8.35
Add New Post /wp-admin/post-new.php1,672 ▼38518.86 ▼0.52374.39 ▲10.27110.95 ▲3.12
Media Library /wp-admin/upload.php1,807 ▼05.06 ▲0.03140.85 ▼6.50121.26 ▲0.12

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
Uninstall script 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/active-users-list/active-users-list.php

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)
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: online-users, available-users, active-users, users

active-users-list/active-users-list.php Passed 13 tests

"Active Users List" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
This is a plugin which lists all the active/Logged in users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin152 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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 functions5100.00%
▷ Anonymous functions00.00%
▷ 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