84% simply-disable-password-reset

Code Review | Simply Disable Password Reset

WordPress plugin Simply Disable Password Reset scored84%from 54 tests.

About plugin

  • Plugin page: simply-disable-pa...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2022
  • Latest release: Nov 2, 2022
  • Number of updates: 3
  • Update frequency: every 90.3 days
  • Top authors: boopathi0001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /1,232 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.27ms] Passed 4 tests

Analyzing server-side resources used by Simply Disable Password Reset
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.51 ▼13.49
Dashboard /wp-admin3.31 ▲0.0049.44 ▼1.09
Posts /wp-admin/edit.php3.36 ▲0.0047.71 ▲0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.26 ▼6.98
Media Library /wp-admin/upload.php3.23 ▲0.0036.53 ▲4.75

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Simply Disable 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,800 ▲6513.26 ▼1.531.71 ▼0.9644.12 ▼26.53
Dashboard /wp-admin2,206 ▲155.79 ▲0.87100.65 ▼0.6336.38 ▼2.35
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0039.48 ▼6.0434.72 ▼1.16
Add New Post /wp-admin/post-new.php1,533 ▲1323.18 ▲0.17717.20 ▲57.0853.25 ▼2.95
Media Library /wp-admin/upload.php1,385 ▼04.25 ▲0.0593.41 ▼6.1540.84 ▼3.60

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simply-disable-password-reset/disable-password-reset.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: disable password reset, disable rest, wordpress password reset

simply-disable-password-reset/disable-password-reset.php 92% from 13 tests

The main PHP script in "Simply Disable Password Reset" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simply-disable-password-reset.php" instead of "disable-password-reset.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
Good job! No executable or dangerous file extensions detected4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin