10% disable-reset-password

Code Review | Disable Reset Password

WordPress plugin Disable Reset Password scored10%from 54 tests.

About plugin

  • Plugin page: disable-reset-pas...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7.4
  • WordPress version: 6.3.1
  • First release: May 6, 2017
  • Latest release: May 6, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: jonirenoug (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/disable-reset-password/index.php+26
    Use of undefined constant this - assumed 'this' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.94MB] [CPU: ▼51.98ms] Passed 4 tests

A check of server-side resources used by Disable Reset Password
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.26 ▼37.17
Dashboard /wp-admin2.07 ▼1.245.72 ▼41.83
Posts /wp-admin/edit.php2.07 ▼1.297.22 ▼39.69
Add New Post /wp-admin/post-new.php2.07 ▼3.827.82 ▼89.21
Media Library /wp-admin/upload.php2.07 ▼1.165.34 ▼26.41

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Disable Reset Password
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.191.46 ▼0.4040.14 ▼2.56
Dashboard /wp-admin2,206 ▲184.86 ▼0.07108.85 ▼9.4339.33 ▼5.29
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0139.27 ▲1.6735.99 ▲4.02
Add New Post /wp-admin/post-new.php1,533 ▼223.37 ▲0.32648.01 ▲21.8855.18 ▲1.94
Media Library /wp-admin/upload.php1,388 ▲64.23 ▲0.0194.05 ▼3.9242.35 ▲0.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/disable-reset-password/index.php+26
    Use of undefined constant this - assumed 'this' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/disable-reset-password/index.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === disable-reset-password === )
The official readme.txt might help

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

Analyzing the main PHP file in "Disable Reset Password" version 1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("disable-reset-password.php" instead of "index.php")

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
No dangerous file extensions were detected27 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101027

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected