84% wp-whos-online

Code Review | Who's Online

WordPress plugin Who's Online scored84%from 54 tests.

About plugin

  • Plugin page: wp-whos-online
  • Plugin version: 0.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2009
  • Latest release: Nov 8, 2017
  • Number of updates: 33
  • Update frequency: every 91.3 days
  • Top authors: AdamBackstrom (66.67%)abackstrom (36.36%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /20,846 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0744.04 ▼0.72
Dashboard /wp-admin3.34 ▼0.0047.08 ▼15.85
Posts /wp-admin/edit.php3.39 ▲0.0444.05 ▼5.24
Add New Post /wp-admin/post-new.php5.92 ▲0.0491.60 ▼8.85
Media Library /wp-admin/upload.php3.27 ▲0.0437.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16413.61 ▼0.635.86 ▲3.0640.05 ▼4.51
Dashboard /wp-admin2,203 ▲125.76 ▲0.89102.61 ▼8.7240.21 ▼5.37
Posts /wp-admin/edit.php2,089 ▼31.98 ▼0.0237.05 ▼1.7730.20 ▼6.21
Add New Post /wp-admin/post-new.php1,514 ▼2017.55 ▼5.59697.08 ▲6.0064.81 ▲7.80
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0397.68 ▼14.5241.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP15047145
JavaScript1201995
PO File2181963
CSS16126

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 code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected