79% bbp-user-online-status

Code Review | bbp user online status

WordPress plugin bbp user online status scored79%from 54 tests.

About plugin

  • Plugin page: bbp-user-online-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 22, 2015
  • Latest release: Aug 16, 2015
  • Number of updates: 8
  • Update frequency: every 18.4 days
  • Top authors: abreksa4 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,316 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.04ms] Passed 4 tests

Server-side resources used by bbp user online status
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.90 ▲2.96
Dashboard /wp-admin3.33 ▲0.0243.96 ▼12.70
Posts /wp-admin/edit.php3.38 ▲0.0246.31 ▲0.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.84 ▲6.32
Media Library /wp-admin/upload.php3.25 ▲0.0236.51 ▲5.09
bbp user online status /wp-admin/options-general.php?page=bbp-user-online-status-settings3.2028.84

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for bbp user online status
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.39 ▼1.201.85 ▲0.2641.24 ▲1.83
Dashboard /wp-admin2,210 ▲194.88 ▼0.02103.91 ▲0.0937.73 ▼2.87
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0340.39 ▲0.1335.58 ▼5.25
Add New Post /wp-admin/post-new.php1,546 ▲1318.11 ▼4.96626.81 ▲3.4866.62 ▲8.07
Media Library /wp-admin/upload.php1,386 ▲14.21 ▲0.0398.94 ▼0.8643.24 ▼2.42
bbp user online status /wp-admin/options-general.php?page=bbp-user-online-status-settings7912.0324.4126.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=bbp-user-online-status-settings
    • > Notice in wp-content/plugins/bbp-user-online-status/includes/settings.php+52
    Trying to access array offset on value of type bool

SRP 50% 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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-user-online-status/includes/display.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbp-user-online-status/bbp-user-online-status.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbp-user-online-status/includes/settings.php:44

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: user offline, bbpress, forums, user online

bbp-user-online-status/bbp-user-online-status.php Passed 13 tests

The main file in "bbp user online status" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
displays user's online/offline status in bbpress topics/replies

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
No dangerous file extensions were detected125 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32416107
Markdown19018

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin