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)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 51.31 ▲3.47 |
Dashboard /wp-admin | 3.90 ▲0.59 | 57.36 ▲8.21 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 61.51 ▲13.46 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 98.00 ▲0.16 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 47.05 ▲11.86 |
CBX Useronline /wp-admin/admin.php?page=cbxuseronline | 3.77 | 50.59 |
Helps & Updates /wp-admin/admin.php?page=cbxuseronline_doc | 5.64 | 1,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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲111 | 13.54 ▼0.86 | 1.79 ▼0.29 | 38.97 ▼9.99 |
Dashboard /wp-admin | 2,220 ▲32 | 5.82 ▲0.94 | 108.77 ▼7.45 | 77.28 ▲37.81 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.01 ▼0.01 | 37.15 ▼5.66 | 32.89 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 22.98 ▲4.69 | 770.98 ▲150.56 | 55.29 ▲4.28 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.23 ▲0.02 | 98.35 ▼4.56 | 80.25 ▲31.57 |
CBX Useronline /wp-admin/admin.php?page=cbxuseronline | 1,630 | 3.72 | 70.00 | 93.25 |
Helps & Updates /wp-admin/admin.php?page=cbxuseronline_doc | 1,723 | 2.02 | 26.84 | 37.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 137 | 3,136 | 2,677 | 19,604 |
PHP | 19 | 805 | 1,252 | 2,999 |
Sass | 5 | 275 | 9 | 1,469 |
CSS | 30 | 130 | 50 | 946 |
LESS | 3 | 130 | 158 | 727 |
SVG | 4 | 0 | 3 | 101 |
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 code | 0.32 |
Average class complexity | 23.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 22 | 17.60% |
▷ Public methods | 113 | 90.40% |
▷ Protected methods | 3 | 2.40% |
▷ Private methods | 9 | 7.20% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendors/tablesorter/css/images/metro-black-asc.png | 0.15KB | 0.21KB | 0.00% |
assets/vendors/tablesorter/css/images/dropbox-desc.png | 0.20KB | 0.20KB | 0.00% |
assets/images/icon_brand_48.png | 1.47KB | 0.88KB | ▼ 40.25% |
assets/images/widget_icons/useronline-icon.png | 1.71KB | 1.54KB | ▼ 9.61% |
assets/vendors/tablesorter/css/images/metro-white-asc.png | 0.16KB | 0.21KB | 0.00% |