Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.16ms] Passed 4 tests
Analyzing server-side resources used by WP Online Active Users
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.27 ▲1.79 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.05 ▼1.28 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.87 ▼0.15 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.54 ▼11.30 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 33.97 ▲0.10 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Online Active Users
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲121 | 14.42 ▼0.09 | 1.79 ▲0.32 | 41.94 ▲3.90 |
Dashboard /wp-admin | 2,278 ▲98 | 5.62 ▼0.02 | 97.50 ▲9.79 | 53.45 ▲14.12 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.06 ▲0.11 | 41.65 ▲0.58 | 39.36 ▲2.18 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.27 ▼0.14 | 609.46 ▼39.87 | 59.30 ▲10.38 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.23 ▲0.05 | 97.92 ▼1.23 | 42.47 ▲2.35 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
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 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
online-active-users/online-active-users.php 85% from 13 tests
The main PHP script in "WP Online Active Users" version 1.9 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected227 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 31 | 162 |
CSS | 1 | 0 | 0 | 34 |
JSON | 1 | 0 | 0 | 17 |
JavaScript | 1 | 3 | 5 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.50MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 190.23KB | 89.84KB | ▼ 52.77% |
assets/screenshot-2.png | 42.85KB | 11.21KB | ▼ 73.85% |
assets/screenshot-1.png | 90.80KB | 26.51KB | ▼ 70.81% |
assets/banner-772x250.png | 190.23KB | 89.84KB | ▼ 52.77% |