74% simple-multisite-login-log

Code Review | Simple Multisite Login Log

WordPress plugin Simple Multisite Login Log scored74%from 54 tests.

About plugin

  • Plugin page: simple-multisite-...
  • Plugin version: 0.6.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Jan 4, 2016
  • Number of updates: 6
  • Update frequency: every 175.8 days
  • Top authors: blobaugh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,451 total downloads

Benchmarks

Plugin footprint 65% 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.01MB] [CPU: ▼4.77ms] Passed 4 tests

This is a short check of server-side resources used by Simple Multisite Login Log
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.04 ▲3.95
Dashboard /wp-admin3.32 ▲0.0148.80 ▼0.04
Posts /wp-admin/edit.php3.37 ▲0.0151.24 ▼3.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.29 ▼9.99
Media Library /wp-admin/upload.php3.24 ▲0.0133.12 ▼5.47
Login Log /wp-admin/users.php?page=snll_admin_menu3.2735.99

Server storage [IO: ▲0.02MB] [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: 4 new files
Database: 1 new table, 6 new options
New tables
wp_simple_network_login_log
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Simple Multisite Login Log: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.25 ▲0.022.14 ▲0.3340.68 ▼4.38
Dashboard /wp-admin2,202 ▲255.59 ▲0.0390.04 ▲3.9837.56 ▼7.67
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0539.32 ▼0.8336.40 ▼1.50
Add New Post /wp-admin/post-new.php1,532 ▼323.11 ▲4.99650.19 ▲33.6056.23 ▼9.74
Media Library /wp-admin/upload.php1,407 ▲104.26 ▲0.1099.31 ▼13.7540.47 ▼8.20
Login Log /wp-admin/users.php?page=snll_admin_menu1,0482.0125.8939.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_simple_network_login_log
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/simple-multisite-login-log/login-log-table.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-multisite-login-log/login-log-table.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/simple-multisite-login-log/net-admin-login-log-table.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-multisite-login-log/net-admin-login-log-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-multisite-login-log/login-log-table.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/simple-multisite-login-log/net-admin-login-log-table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simple-multisite-login-log/simple-multisite-login-log.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: users, log, user log, multisite, login...

simple-multisite-login-log/simple-multisite-login-log.php 85% from 13 tests

The primary PHP file in "Simple Multisite Login Log" version 0.6.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin341 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3120119341

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.00
▷ Minimum class complexity15.00
▷ Maximum class complexity19.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin