62% online-status-insl

Code Review | Online Status inSL

WordPress plugin Online Status inSL scored62%from 54 tests.

About plugin

  • Plugin page: online-status-insl
  • Plugin version: 1.6.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2011
  • Latest release: Aug 31, 2023
  • Number of updates: 49
  • Update frequency: every 93.6 days
  • Top authors: GwynethLlewelyn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,903 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.77MB] [CPU: ▼34.69ms] Passed 4 tests

An overview of server-side resources used by Online Status inSL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1839.04 ▼1.84
Dashboard /wp-admin3.17 ▼0.1424.18 ▼28.61
Posts /wp-admin/edit.php3.17 ▼0.1925.37 ▼24.29
Add New Post /wp-admin/post-new.php3.17 ▼2.7227.73 ▼75.07
Media Library /wp-admin/upload.php3.17 ▼0.0623.36 ▼10.80
Online Status inSL /wp-admin/options-general.php?page=Online_Status_InSL3.1724.76

Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_online_status_insl_widget
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Online Status inSL
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.521.59 ▼0.1540.44 ▼4.82
Dashboard /wp-admin2,207 ▲195.88 ▼0.02102.34 ▼0.3940.00 ▼0.83
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0337.14 ▲0.8636.63 ▲3.93
Add New Post /wp-admin/post-new.php1,531 ▲1223.19 ▼0.19653.20 ▲48.8251.81 ▲2.33
Media Library /wp-admin/upload.php1,395 ▲74.40 ▲0.00100.33 ▼5.1141.94 ▼0.84
Online Status inSL /wp-admin/options-general.php?page=Online_Status_InSL9722.0723.5832.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_online_status_insl_widget
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Online_Status_InSL
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/online-status-insl/class-online-status-insl.php
    • > /wp-content/plugins/online-status-insl/online-status-insl.php
    • > /wp-content/plugins/online-status-insl/class-online-status-insl-list-table.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/online-status-insl/save-channel.php:20

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: profile, status, online, second life, opensimulator...

online-status-insl/online-status-insl.php 92% from 13 tests

The main PHP file in "Online Status inSL" ver. 1.6.3 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,642 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41235281,193
PO File2152208449

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.00
▷ Minimum class complexity21.00
▷ Maximum class complexity27.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1890.00%
▷ Protected methods15.00%
▷ Private methods15.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ 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
There were not PNG files found in your plugin