89% direct-password-reset-link

Code Review | Direct Password Reset Link | Share a password reset link to the user

WordPress plugin Direct Password Reset Link | Share a password reset link to the user scored89%from 54 tests.

About plugin

  • Plugin page: direct-password-r...
  • Plugin version: 0.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jan 18, 2023
  • Latest release: Nov 1, 2023
  • Number of updates: 10
  • Update frequency: every 28.7 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Direct Password Reset Link | Share a password reset link to the user
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.95 ▲1.99
Dashboard /wp-admin3.32 ▼0.0347.69 ▼8.18
Posts /wp-admin/edit.php3.37 ▲0.0147.99 ▼2.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.51 ▼21.97
Media Library /wp-admin/upload.php3.24 ▲0.0135.45 ▼1.25

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Direct Password Reset Link | Share a password reset link to the user
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.40 ▲0.041.62 ▼0.2842.69 ▼4.21
Dashboard /wp-admin2,195 ▲175.73 ▲0.0682.66 ▼24.8438.88 ▼1.36
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0142.62 ▲3.9736.40 ▲3.90
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▲0.02624.84 ▼80.6952.38 ▼2.90
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0699.60 ▼0.7839.88 ▼4.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: forgot password, profile, user

direct-password-reset-link/direct-password-reset-link.php 85% from 13 tests

This is the main PHP file of "Direct Password Reset Link | Share a password reset link to the user" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221838

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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 functions00.00%
▷ Anonymous functions2100.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
No PNG files were detected