Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.67ms] Passed 4 tests
Analyzing server-side resources used by Who's Online
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 44.04 ▼0.72 |
Dashboard /wp-admin | 3.34 ▼0.00 | 47.08 ▼15.85 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.05 ▼5.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 91.60 ▼8.85 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.63 ▲3.60 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_widget_wpwhosonline |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Who's Online
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲164 | 13.61 ▼0.63 | 5.86 ▲3.06 | 40.05 ▼4.51 |
Dashboard /wp-admin | 2,203 ▲12 | 5.76 ▲0.89 | 102.61 ▼8.72 | 40.21 ▼5.37 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.02 | 37.05 ▼1.77 | 30.20 ▼6.21 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.55 ▼5.59 | 697.08 ▲6.00 | 64.81 ▲7.80 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.03 | 97.68 ▼14.52 | 41.64 ▼5.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_widget_wpwhosonline
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-whos-online/wp-whos-online.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 ("Who's Online" in a P2 blog.) image not found
wp-whos-online/wp-whos-online.php Passed 13 tests
"Who's Online" version 0.7.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
49 characters long description:
Sidebar widget to log when a user was last online
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin329 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 50 | 47 | 145 |
JavaScript | 1 | 20 | 19 | 95 |
PO File | 2 | 18 | 19 | 63 |
CSS | 1 | 6 | 1 | 26 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected