84% user-password-reset-notifications-for-slack

Code Review | User Password Reset Notifications for Slack

WordPress plugin User Password Reset Notifications for Slack scored84%from 54 tests.

About plugin

  • Plugin page: user-password-res...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2016
  • Latest release: Feb 13, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /615 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
Install script ran successfully

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

A check of server-side resources used by User Password Reset Notifications for Slack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.49 ▼1.55
Dashboard /wp-admin3.31 ▼0.0445.91 ▼10.99
Posts /wp-admin/edit.php3.36 ▲0.0045.30 ▼2.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.05 ▼26.75
Media Library /wp-admin/upload.php3.23 ▲0.0033.54 ▼0.68

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for User Password Reset Notifications for Slack
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.365.14 ▲3.5742.28 ▲0.29
Dashboard /wp-admin2,206 ▲155.83 ▼0.08101.08 ▲0.6840.47 ▼1.12
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0033.20 ▼4.2232.37 ▼1.84
Add New Post /wp-admin/post-new.php1,514 ▼1417.49 ▼0.61666.89 ▲12.2761.70 ▲1.22
Media Library /wp-admin/upload.php1,385 ▼64.20 ▼0.0492.34 ▼19.2444.03 ▼5.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-password-reset-notifications-for-slack/wp-slack-user-password-reset.php:30

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

user-password-reset-notifications-for-slack/wp-slack-user-password-reset.php 92% from 13 tests

Analyzing the main PHP file in "User Password Reset Notifications for Slack" version 1.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-password-reset-notifications-for-slack.php" instead of "wp-slack-user-password-reset.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected