89% multisite-logout-all-users

Code Review | Multisite Logout Users

WordPress plugin Multisite Logout Users scored89%from 54 tests.

About plugin

  • Plugin page: multisite-logout-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 9, 2017
  • Latest release: Jun 10, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: m1tk00 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.62ms] Passed 4 tests

Analyzing server-side resources used by Multisite Logout Users
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.26 ▼5.88
Dashboard /wp-admin3.31 ▲0.0042.63 ▼2.70
Posts /wp-admin/edit.php3.36 ▲0.0049.70 ▼0.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.23 ▼21.63
Media Library /wp-admin/upload.php3.23 ▲0.0039.14 ▲3.56

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Multisite Logout Users
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.30 ▼1.051.75 ▼0.7039.07 ▼6.40
Dashboard /wp-admin2,206 ▲185.90 ▲0.97111.66 ▲2.3342.90 ▼0.69
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0137.44 ▼1.4935.51 ▼1.58
Add New Post /wp-admin/post-new.php1,528 ▼523.31 ▼0.12650.93 ▲15.2058.71 ▲6.82
Media Library /wp-admin/upload.php1,388 ▼04.34 ▲0.1397.24 ▼0.2544.55 ▲1.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

multisite-logout-all-users/multisite-logout-users.php 92% from 13 tests

This is the main PHP file of "Multisite Logout Users" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multisite-logout-all-users.php" instead of "multisite-logout-users.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP141522
Markdown17018

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin