79% cbxuseronline

Code Review | CBX User Online & Last Login

WordPress plugin CBX User Online & Last Login scored 79% from 54 tests.

About plugin

  • Plugin page: cbxuseronline
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: May 16, 2023
  • Number of updates: 45
  • Update frequency: every 63.0 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active / 19,973 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.56MB] [CPU: ▲5.93ms] 75% from 4 tests

An overview of server-side resources used by CBX User Online & Last Login
Please fix the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 1,898.38ms on /wp-admin/admin.php?page=cbxuseronline_doc)
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5651.31 ▲3.47
Dashboard /wp-admin3.90 ▲0.5957.36 ▲8.21
Posts /wp-admin/edit.php3.95 ▲0.5961.51 ▲13.46
Add New Post /wp-admin/post-new.php6.44 ▲0.5598.00 ▲0.16
Media Library /wp-admin/upload.php3.76 ▲0.5347.05 ▲11.86
CBX Useronline /wp-admin/admin.php?page=cbxuseronline3.7750.59
Helps & Updates /wp-admin/admin.php?page=cbxuseronline_doc5.641,898.38

Server storage [IO: ▲2.52MB] [DB: ▲0.16MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 251 new files
Database: 1 new table, 12 new options
New tables
wp_cbxuseronline
New WordPress options
widget_recent-comments
cbxuseronline_onlinelist
theysaidso_admin_options
widget_theysaidso_widget
cbxuseronline_integration
can_compress_scripts
widget_recent-posts
db_upgraded
cbxuseronline_mostonline
widget_cbxuseronline
...

Browser metrics Passed 4 tests

CBX User Online & Last Login: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲11113.54 ▼0.861.79 ▼0.2938.97 ▼9.99
Dashboard /wp-admin2,220 ▲325.82 ▲0.94108.77 ▼7.4577.28 ▲37.81
Posts /wp-admin/edit.php2,118 ▲262.01 ▼0.0137.15 ▼5.6632.89 ▼4.50
Add New Post /wp-admin/post-new.php1,545 ▲1722.98 ▲4.69770.98 ▲150.5655.29 ▲4.28
Media Library /wp-admin/upload.php1,411 ▲204.23 ▲0.0298.35 ▼4.5680.25 ▲31.57
CBX Useronline /wp-admin/admin.php?page=cbxuseronline1,6303.7270.0093.25
Helps & Updates /wp-admin/admin.php?page=cbxuseronline_doc1,7232.0226.8437.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_cbxuseronline
  • Zombie WordPress options detected upon uninstall: 12 options
    • cbxuseronline_mostonline
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_cbxuseronline
    • can_compress_scripts
    • widget_recent-posts
    • cbxuseronline_integration
    • cbxuseronline_tools
    • widget_theysaidso_widget
    • ...

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in cbxuseronline/assets to your readme.txt
The official readme.txt might help

cbxuseronline/cbxuseronline.php Passed 13 tests

The primary PHP file in "CBX User Online & Last Login" version 1.2.9 is used by WordPress to initiate all plugin functionality
63 characters long description:
This plugin shows WordPress online users and records last login

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin25,846 lines of code in 198 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1373,1362,67719,604
PHP198051,2522,999
Sass527591,469
CSS3013050946
LESS3130158727
SVG403101

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity23.08
▷ Minimum class complexity1.00
▷ Maximum class complexity119.00
Average method complexity3.13
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods125
▷ Static methods2217.60%
▷ Public methods11390.40%
▷ Protected methods32.40%
▷ Private methods97.20%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/vendors/tablesorter/css/images/metro-black-asc.png0.15KB0.21KB0.00%
assets/vendors/tablesorter/css/images/dropbox-desc.png0.20KB0.20KB0.00%
assets/images/icon_brand_48.png1.47KB0.88KB▼ 40.25%
assets/images/widget_icons/useronline-icon.png1.71KB1.54KB▼ 9.61%
assets/vendors/tablesorter/css/images/metro-white-asc.png0.16KB0.21KB0.00%