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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼9.52ms] Passed 4 tests
Analyzing server-side resources used by WP Online Users Stats
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.78 ▲0.29 |
Dashboard /wp-admin | 3.42 ▲0.08 | 50.61 ▼7.04 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.78 ▼5.93 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 83.50 ▼25.40 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.98 ▲1.69 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WP Online Users Stats: 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,956 ▲195 | 14.31 ▲0.06 | 18.05 ▲16.44 | 39.88 ▲0.06 |
Dashboard /wp-admin | 2,230 ▲50 | 5.09 ▼0.48 | 93.95 ▲7.98 | 84.41 ▲42.90 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.44 ▲0.47 | 42.03 ▲2.14 | 34.56 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,555 ▲20 | 23.01 ▲4.77 | 678.03 ▲58.87 | 37.07 ▼26.27 |
Media Library /wp-admin/upload.php | 1,432 ▲29 | 4.54 ▲0.37 | 106.24 ▲8.47 | 71.28 ▲28.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-online-users-stats/public/partials/wp-online-users-stats-public-display.php
- > /wp-content/plugins/wp-online-users-stats/admin/partials/wp-online-users-stats-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #3 (You will see sub menu created name as "Online Users")
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-online-users-stats/wp-online-users-stats.php Passed 13 tests
"WP Online Users Stats" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin7,546 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 2,001 | 7,065 | 6,498 |
PHP | 14 | 197 | 719 | 525 |
CSS | 5 | 7 | 38 | 523 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 27 | 50.00% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 4 | |
▷ Named functions | 4 | 100.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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
public/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
public/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
admin/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
admin/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |