90% frontend-reset-password

Code Review | Frontend Reset Password

WordPress plugin Frontend Reset Password scored90%from 54 tests.

About plugin

  • Plugin page: frontend-reset-pa...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Jan 13, 2018
  • Latest release: Aug 1, 2023
  • Number of updates: 29
  • Update frequency: every 69.9 days
  • Top authors: squareonemedia (86.21%)wpenhanced (17.24%)

Code review

54 tests

User reviews

34 reviews

Install metrics

10,000+ active /99,528 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.39ms] Passed 4 tests

Analyzing server-side resources used by Frontend Reset Password
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1737.76 ▼4.91
Dashboard /wp-admin3.48 ▲0.1453.25 ▼11.73
Posts /wp-admin/edit.php3.60 ▲0.2449.97 ▲5.56
Add New Post /wp-admin/post-new.php6.08 ▲0.20104.66 ▲5.02
Media Library /wp-admin/upload.php3.40 ▲0.1836.52 ▲2.06
Frontend Reset Password /wp-admin/options-general.php?page=somfrp_options_page3.4436.72

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Frontend Reset Password
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.75 ▼0.504.85 ▲2.9841.66 ▼0.75
Dashboard /wp-admin2,229 ▲445.08 ▼0.80107.01 ▲3.9537.92 ▼3.17
Posts /wp-admin/edit.php2,117 ▲282.30 ▲0.1441.62 ▲3.5033.10 ▼2.85
Add New Post /wp-admin/post-new.php1,531 ▼1123.31 ▲5.25697.37 ▲76.6338.12 ▼14.48
Media Library /wp-admin/upload.php1,414 ▲234.43 ▲0.2297.21 ▼3.2842.98 ▼1.29
Frontend Reset Password /wp-admin/options-general.php?page=somfrp_options_page2,1827.91182.72123.23

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: password, lost password, login, reset password

frontend-reset-password/som-frontend-reset-password.php 92% from 13 tests

"Frontend Reset Password" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("frontend-reset-password.php" instead of "som-frontend-reset-password.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,822 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP94981421,203
CSS211016579
JavaScript219340

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions59
▷ Named functions59100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png20.33KB4.49KB▼ 77.94%
assets/images/logo-white.png1.12KB0.12KB▼ 88.89%