84% reset-password-removed

Code Review | Reset Password Removed

WordPress plugin Reset Password Removed scored84%from 54 tests.

About plugin

  • Plugin page: reset-password-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2012
  • Latest release: Oct 3, 2012
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: smartshovon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,529 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Reset Password Removed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.88 ▼6.28
Dashboard /wp-admin3.31 ▲0.0144.52 ▼4.32
Posts /wp-admin/edit.php3.36 ▲0.0141.64 ▼12.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.67 ▼4.56
Media Library /wp-admin/upload.php3.23 ▲0.0136.88 ▲3.47

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Reset Password Removed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲6414.48 ▲0.081.78 ▼0.7239.07 ▼11.72
Dashboard /wp-admin2,206 ▲184.85 ▼0.02110.28 ▼4.3343.00 ▼1.98
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0137.93 ▼2.2831.48 ▼4.50
Add New Post /wp-admin/post-new.php1,542 ▲1218.60 ▼5.02627.73 ▲14.8257.17 ▼0.64
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.01104.33 ▲4.6543.31 ▲2.25

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reset-password-removed/Reset-Password-Removed.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === reset-password-removed === )
You can take inspiration from this readme.txt

reset-password-removed/Reset-Password-Removed.php 92% from 13 tests

The principal PHP file in "Reset Password Removed" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("reset-password-removed.php" instead of "Reset-Password-Removed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected26 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14826

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin