84% disable-lost-your-password

Code Review | Disable Lost Your Password

WordPress plugin Disable Lost Your Password scored84%from 54 tests.

About plugin

  • Plugin page: disable-lost-your...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 22, 2018
  • Latest release: Nov 25, 2018
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: greatguideinfo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /747 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.01MB] [CPU: ▲0.41ms] Passed 4 tests

An overview of server-side resources used by Disable Lost Your Password
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.98 ▲6.39
Dashboard /wp-admin3.32 ▲0.0152.23 ▼0.62
Posts /wp-admin/edit.php3.37 ▲0.0154.12 ▲3.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.13 ▼4.26
Media Library /wp-admin/upload.php3.24 ▲0.0140.16 ▲3.39

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Lost Your Password
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,788 ▲2714.38 ▲0.172.18 ▲0.3442.12 ▼1.23
Dashboard /wp-admin2,195 ▲155.58 ▲0.0187.48 ▼2.1039.59 ▼1.13
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0540.51 ▲1.4734.75 ▼0.66
Add New Post /wp-admin/post-new.php1,545 ▲1423.53 ▲0.44687.42 ▲56.8457.93 ▲0.83
Media Library /wp-admin/upload.php1,400 ▼34.25 ▼0.04100.08 ▼1.9144.00 ▼3.05

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-lost-your-password/disable-lost-your-password.php:16

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: disable lost your password, password reset, disable, wordpress security

disable-lost-your-password/disable-lost-your-password.php Passed 13 tests

The main PHP file in "Disable Lost Your Password" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
Disable Wordpress Login Screen "Lost Yoyr Password?" Option Usign Disable Password Reset Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16726

PHP code Passed 2 tests

This is a very shot review 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.44
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
There were not PNG files found in your plugin