83% emergency-password-reset

Code Review | Emergency Password Reset

WordPress plugin Emergency Password Reset scored 83% from 54 tests.

About plugin

  • Plugin page: emergency-passwor...
  • Plugin version: 8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 26, 2013
  • Latest release: Oct 12, 2022
  • Number of updates: 40
  • Update frequency: every 87.1 days
  • Top authors: andy_moyle (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active / 20,798 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.73ms] Passed 4 tests

This is a short check of server-side resources used by Emergency Password Reset
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.67 ▼4.97
Dashboard /wp-admin3.31 ▲0.0143.70 ▼6.82
Posts /wp-admin/edit.php3.36 ▲0.0144.11 ▼4.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.55 ▼18.25
Media Library /wp-admin/upload.php3.23 ▲0.0133.50 ▼0.02
Emergency Password Reset /wp-admin/users.php?page=emergency_password_reset_main3.2132.91
Reset SALTs /wp-admin/options-general.php?page=emergency_password_reset/index.php3.2029.04

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
These are issues you should consider
  • Illegal file modification detected: 1 file (4.19KB) outside of "wp-content/plugins/emergency-password-reset/" and "wp-content/uploads/"
    • (modified) wp-config.php
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
emergency_password_reset_settings
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Emergency Password Reset
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.25 ▼1.371.86 ▲0.0543.84 ▼0.59
Dashboard /wp-admin2,214 ▲265.82 ▲0.9094.17 ▼12.4737.72 ▼2.87
Posts /wp-admin/edit.php2,094 ▲82.06 ▲0.0133.89 ▼6.2034.83 ▲0.23
Add New Post /wp-admin/post-new.php1,554 ▲4023.33 ▲5.78665.32 ▼16.9562.71 ▼2.31
Media Library /wp-admin/upload.php1,396 ▲84.23 ▲0.0691.55 ▼21.3939.24 ▼5.51
Emergency Password Reset /wp-admin/users.php?page=emergency_password_reset_main8612.1525.9328.95
Reset SALTs /wp-admin/options-general.php?page=emergency_password_reset/index.php7642.0223.6124.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • emergency_password_reset_settings
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emergency-password-reset/index.php:14

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The main and only screen!) image missing
Please take inspiration from this readme.txt

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

"Emergency Password Reset" version 8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("emergency-password-reset.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin251 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13316251

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions9
▷ Named functions9100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png57.61KB15.83KB▼ 72.52%