79% recent-logins

Code Review | Recent Logins

WordPress plugin Recent Logins scored79%from 54 tests.

About plugin

  • Plugin page: recent-logins
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: Apr 23, 2016
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: mukto90 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,077 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.71ms] Passed 4 tests

This is a short check of server-side resources used by Recent Logins
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1643.74 ▲0.12
Dashboard /wp-admin3.33 ▲0.0250.67 ▲2.57
Posts /wp-admin/edit.php3.44 ▲0.0847.09 ▲2.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.63 ▼5.08
Media Library /wp-admin/upload.php3.25 ▲0.0235.21 ▼0.13

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

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

Browser metrics Passed 4 tests

Recent Logins: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.24 ▼1.121.72 ▼0.3944.29 ▼3.28
Dashboard /wp-admin2,206 ▲274.86 ▼1.00111.80 ▲9.1742.61 ▼1.58
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0435.32 ▼2.2031.58 ▼4.63
Add New Post /wp-admin/post-new.php1,533 ▼023.20 ▼0.25661.01 ▼2.5651.76 ▲1.31
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.06102.21 ▲1.4443.62 ▼0.07

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_recent_logins
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: latest login records, login record, login times, recent login, user monitor...

recent-logins/recent-logins.php 85% from 13 tests

Analyzing the main PHP file in "Recent Logins" version 1.0.0
Please take the time to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.0.0" instead of "3.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 258 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin238 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14142238

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 files were detected