90% um-online

Code Review | Ultimate Member - Online Users

WordPress plugin Ultimate Member - Online Users scored90%from 54 tests.

About plugin

  • Plugin page: um-online
  • Plugin version: 2.1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2019
  • Latest release: Aug 23, 2023
  • Number of updates: 21
  • Update frequency: every 87.3 days
  • Top authors: nsinelnikov (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

5,000+ active /70,116 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Ultimate Member - Online Users
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0344.19 ▲5.44
Dashboard /wp-admin3.37 ▼0.0251.92 ▼10.84
Posts /wp-admin/edit.php3.48 ▲0.0847.78 ▼6.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0285.11 ▼14.85
Media Library /wp-admin/upload.php3.29 ▲0.0238.68 ▼0.09

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options
db_upgraded
theysaidso_admin_options
um_online_version
um_online_last_version_upgrade
um_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Member - Online Users
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲2514.23 ▼0.301.64 ▼0.4543.46 ▲1.32
Dashboard /wp-admin2,203 ▲235.61 ▼0.03120.06 ▲29.7854.31 ▲14.02
Posts /wp-admin/edit.php2,105 ▲82.02 ▲0.0235.29 ▼1.2531.18 ▼4.37
Add New Post /wp-admin/post-new.php1,536 ▲723.03 ▼0.09669.70 ▲18.0754.05 ▲0.70
Media Library /wp-admin/upload.php1,408 ▲84.23 ▲0.08116.08 ▲6.8149.54 ▲3.49

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
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • um_online_version
    • widget_recent-comments
    • um_online_last_version_upgrade
    • widget_recent-posts
    • um_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

um-online/um-online.php Passed 13 tests

The primary PHP file in "Ultimate Member - Online Users" version 2.1.8 is used by WordPress to initiate all plugin functionality
66 characters long description:
Display online users and show the user online status on your site.

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 detected770 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12210385670
CSS221480
JavaScript22020

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.00
▷ Minimum class complexity3.00
▷ Maximum class complexity24.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods49
▷ Static methods12.04%
▷ Public methods4897.96%
▷ Protected methods00.00%
▷ Private methods12.04%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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 images were found in this plugin