84% simple-login-log

Code Review | Simple Login Log

WordPress plugin Simple Login Log scored84%from 54 tests.

About plugin

  • Plugin page: simple-login-log
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.5
  • WordPress version: 6.3.1
  • First release: Sep 9, 2011
  • Latest release: Nov 10, 2017
  • Number of updates: 51
  • Update frequency: every 44.2 days
  • Top authors: maxchirkov (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

9,000+ active /132,150 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼7.50ms] Passed 4 tests

A check of server-side resources used by Simple Login Log
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.68 ▼2.21
Dashboard /wp-admin3.47 ▲0.1648.35 ▼13.08
Posts /wp-admin/edit.php3.58 ▲0.2246.22 ▼8.03
Add New Post /wp-admin/post-new.php6.05 ▲0.1688.29 ▼4.86
Media Library /wp-admin/upload.php3.39 ▲0.1638.09 ▼4.03
Login Log /wp-admin/users.php?page=login_log3.3737.22

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables
wp_simple_login_log
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
sll_db_ver
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Login Log
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.17 ▼0.462.17 ▲0.0943.53 ▲0.02
Dashboard /wp-admin2,199 ▲255.63 ▲0.0496.44 ▼3.2540.75 ▼1.08
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0034.25 ▼4.7834.70 ▼1.78
Add New Post /wp-admin/post-new.php1,531 ▲523.04 ▲0.02685.53 ▲1.1962.58 ▲13.78
Media Library /wp-admin/upload.php1,401 ▲14.11 ▼0.06104.09 ▲0.5444.55 ▼5.79
Login Log /wp-admin/users.php?page=login_log1,1672.0522.1329.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/simple-login-log/simple-login-log.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === simple-login-log === )
  • Screenshots: Please add images for these screenshots: #1 (Simple Login Log Settings.), #2 (Login Log Management Screen.)
You can take inspiration from this readme.txt

simple-login-log/simple-login-log.php Passed 13 tests

The entry point to "Simple Login Log" version 1.1.3 is a PHP file that has certain tags in its header comment area
92 characters long description:
This plugin keeps a log of WordPress user logins. Offers user filtering and export features.

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
Good job! No executable or dangerous file extensions detected719 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2258167719

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity66.50
▷ Minimum class complexity48.00
▷ Maximum class complexity85.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods00.00%
▷ Public methods41100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin