84% user-registration-date-last-login

Code Review | User Registration Date And Last Login Date

WordPress plugin User Registration Date And Last Login Date scored84%from 54 tests.

About plugin

  • Plugin page: user-registration...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0.3
  • WordPress version: 6.3.1
  • First release: Sep 17, 2022
  • Latest release: Sep 17, 2022
  • Number of updates: 14
  • Update frequency: N/A
  • Top authors: krajesh0018 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,586 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by User Registration Date And Last Login Date
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.25 ▼5.93
Dashboard /wp-admin3.32 ▼0.0247.25 ▼13.58
Posts /wp-admin/edit.php3.37 ▲0.0148.05 ▼1.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.69 ▼13.56
Media Library /wp-admin/upload.php3.24 ▲0.0135.89 ▲0.06

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for User Registration Date And Last Login Date
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.031.67 ▲0.1342.43 ▲1.26
Dashboard /wp-admin2,195 ▲175.57 ▼0.1894.18 ▼18.0339.75 ▼0.43
Posts /wp-admin/edit.php2,079 ▼02.04 ▲0.0643.91 ▲6.0036.55 ▲4.15
Add New Post /wp-admin/post-new.php1,536 ▲1023.00 ▼0.14613.49 ▲3.0156.15 ▼22.37
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0398.28 ▼3.1242.04 ▼0.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 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)
Even though everything seems fine, this is not 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/user-registration-date-last-login/uninstall.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-registration-date-last-login/user.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: datetime, date, time, show, user last login...

user-registration-date-last-login/user.php 85% from 13 tests

The main file in "User Registration Date And Last Login Date" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: The principal plugin file should be the same as the plugin slug ("user-registration-date-last-login.php" instead of "user.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin50 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112850

PHP code Passed 2 tests

An short overview of 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.22
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected