78% reset-post-password

Code Review | Reset Post Password

WordPress plugin Reset Post Password scored 78% from 54 tests.

About plugin

  • Plugin page: reset-post-password
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.3
  • WordPress version: 6.3.1
  • First release: Jul 25, 2017
  • Latest release: Jul 25, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: sebastian.pisula (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 725 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.06ms] Passed 4 tests

This is a short check of server-side resources used by Reset Post Password
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.16 ▼3.41
Dashboard /wp-admin3.35 ▲0.0546.83 ▼3.02
Posts /wp-admin/edit.php3.40 ▲0.0544.91 ▼2.67
Add New Post /wp-admin/post-new.php5.95 ▲0.0791.42 ▲0.47
Media Library /wp-admin/upload.php3.28 ▲0.0534.25 ▼3.14
Reset protected posts passwords /wp-admin/admin-post.php?action=wp360-reset-passwords&_wpnonce=357eef71e63.0421.42

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Reset Post Password: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.22 ▼1.344.92 ▲2.9839.79 ▼3.68
Dashboard /wp-admin2,213 ▲254.84 ▼0.0397.21 ▼19.5538.64 ▼9.20
Posts /wp-admin/edit.php2,093 ▲12.16 ▲0.1339.57 ▲3.9234.95 ▲2.10
Add New Post /wp-admin/post-new.php1,545 ▲1018.11 ▼5.07598.11 ▼91.4049.74 ▼12.16
Media Library /wp-admin/upload.php1,392 ▲44.23 ▼0.0793.25 ▼7.9041.03 ▼4.30
Reset protected posts passwords /wp-admin/admin-post.php?action=wp360-reset-passwords&_wpnonce=357eef71e6280.440.113.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp360\\Plugin\\plugin_basename() in wp-content/plugins/reset-post-password/reset-post-password.php:34

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin-post.php?action=wp360-reset-passwords&_wpnonce=357eef71e6
    • > Network (severe)
    wp-admin/admin-post.php?action=wp360-reset-passwords&_wpnonce=357eef71e6 - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === reset-post-password === )
You can look at the official readme.txt

reset-post-password/reset-post-password.php Passed 13 tests

This is the main PHP file of "Reset Post Password" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
37 characters long description:
Reset post automatically after X days

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
Success! There were no dangerous files found in this plugin191 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15483138
PO File1101049
JavaScript1104

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1285.71%
▷ Protected methods00.00%
▷ Private methods214.29%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin