89% new-user-password-reset

Code Review | New User Password Reset

WordPress plugin New User Password Reset scored89%from 54 tests.

About plugin

  • Plugin page: new-user-password...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.9.0
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Feb 10, 2022
  • Number of updates: 5
  • Update frequency: every 612.2 days
  • Top authors: jchristopher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,651 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by New User Password Reset
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.39 ▼0.31
Dashboard /wp-admin3.32 ▲0.0246.23 ▼6.59
Posts /wp-admin/edit.php3.37 ▲0.0150.58 ▲1.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.16 ▼23.83
Media Library /wp-admin/upload.php3.24 ▲0.0135.49 ▼0.99

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

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

Browser metrics Passed 4 tests

New User Password Reset: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.021.64 ▲0.0842.58 ▲2.20
Dashboard /wp-admin2,189 ▲125.54 ▼0.0286.07 ▲1.0638.19 ▼4.69
Posts /wp-admin/edit.php2,100 ▲31.98 ▼0.0234.44 ▲1.6330.82 ▼0.63
Add New Post /wp-admin/post-new.php1,528 ▼023.31 ▼0.03673.69 ▼13.1855.54 ▲2.55
Media Library /wp-admin/upload.php1,403 ▼04.18 ▲0.0399.58 ▲1.2641.63 ▼3.30

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (The trigger) image not found
You can take inspiration from this readme.txt

new-user-password-reset/index.php 85% from 13 tests

"New User Password Reset" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("new-user-password-reset.php" instead of "index.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin56 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141437
Markdown112016
JavaScript1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png89.28KB33.30KB▼ 62.70%