90% woo-generate-new-password-reset-link

Code Review | Woo Generate New Password Reset Link

WordPress plugin Woo Generate New Password Reset Link scored 90% from 54 tests.

About plugin

  • Plugin page: woo-generate-new-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2016
  • Latest release: Jun 30, 2016
  • Number of updates: 5
  • Update frequency: every 182.4 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,235 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.95ms] Passed 4 tests

Server-side resources used by Woo Generate New Password Reset Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.75 ▼5.68
Dashboard /wp-admin3.31 ▲0.0145.86 ▼4.43
Posts /wp-admin/edit.php3.36 ▲0.0144.88 ▼0.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.38 ▼13.22
Media Library /wp-admin/upload.php3.23 ▲0.0135.30 ▲1.89

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Generate New Password Reset Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.70 ▼0.681.67 ▼0.3138.65 ▼5.61
Dashboard /wp-admin2,209 ▲275.80 ▼0.1193.17 ▼26.6940.19 ▼7.22
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0534.43 ▼2.7532.36 ▼4.02
Add New Post /wp-admin/post-new.php1,514 ▼1917.80 ▼5.16665.29 ▼11.3861.51 ▼5.11
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0596.42 ▼16.1944.34 ▼1.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: user account, password link, customer account, password, security...

woo-generate-new-password-reset-link/woo-generate-new-password-reset-link.php Passed 13 tests

The main file in "Woo Generate New Password Reset Link" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
Sends new account users an email with a password reset link rather than an auto-generated password

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin56 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3264856

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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 functions2100.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
No PNG files were detected