10% lh-recover-password

Code Review | LH Recover Password

WordPress plugin LH Recover Password scored10%from 54 tests.

About plugin

  • Plugin page: lh-recover-password
  • Plugin version: 1.13
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 19, 2015
  • Latest release: Aug 28, 2019
  • Number of updates: 9
  • Update frequency: every 153.4 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,222 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/lh-recover-password/lh-recover-password.php+44
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.19MB] [CPU: ▼13.76ms] Passed 4 tests

An overview of server-side resources used by LH Recover Password
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▼0.6320.15 ▼21.45
Dashboard /wp-admin3.32 ▲0.0249.26 ▼1.82
Posts /wp-admin/edit.php3.18 ▼0.1731.48 ▼15.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.09 ▼15.88
Media Library /wp-admin/upload.php3.24 ▲0.0233.92 ▲0.63
Recover Password /wp-admin/options-general.php?page=lh-recover-password/lh-recover-password.php3.2738.72

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
lh_recover_password-options

Browser metrics Passed 4 tests

Checking browser requirements for LH Recover Password
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.21 ▼1.182.89 ▲0.9846.47 ▲3.37
Dashboard /wp-admin2,210 ▲284.92 ▼0.95104.67 ▼0.9837.77 ▼8.93
Posts /wp-admin/edit.php2,090 ▼22.02 ▲0.0136.60 ▼5.8132.70 ▼4.96
Add New Post /wp-admin/post-new.php1,517 ▼217.61 ▼5.28590.75 ▼72.5851.96 ▼1.76
Media Library /wp-admin/upload.php1,392 ▲134.21 ▼0.0395.50 ▼7.5843.81 ▼1.59
Recover Password /wp-admin/options-general.php?page=lh-recover-password/lh-recover-password.php1,5576.89137.8864.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=lh-recover-password/lh-recover-password.php
    • > Notice in wp-content/plugins/lh-recover-password/lh-recover-password.php+178
    Undefined index: lh_recover_password-front_end-form-nonce

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lh-recover-password/lh-recover-password.php:403

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Requires at least: Invalid plugin version format
The official readme.txt might help

lh-recover-password/lh-recover-password.php Passed 13 tests

"LH Recover Password" version 1.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
Creates a front end recover password form

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
Everything looks great! No dangerous files found in this plugin208 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP120825202
JavaScript1506

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.33
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin