84% disable-password-changed-notifications

Code Review | Disable Password Changed Notifications

WordPress plugin Disable Password Changed Notifications scored 84% from 54 tests.

About plugin

  • Plugin page: disable-password-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Nov 6, 2016
  • Latest release: Nov 6, 2016
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: mordauk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,190 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.72ms] Passed 4 tests

A check of server-side resources used by Disable Password Changed Notifications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.80 ▼6.22
Dashboard /wp-admin3.31 ▲0.0045.82 ▼6.23
Posts /wp-admin/edit.php3.36 ▲0.0047.57 ▼1.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.38 ▼4.55
Media Library /wp-admin/upload.php3.23 ▲0.0032.13 ▼1.88

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Disable Password Changed Notifications: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.72 ▼0.661.64 ▼0.1239.23 ▼2.24
Dashboard /wp-admin2,209 ▲215.90 ▲1.04108.13 ▼8.7241.85 ▼0.89
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0239.78 ▼0.1234.02 ▼0.88
Add New Post /wp-admin/post-new.php1,533 ▲1923.13 ▲5.58594.90 ▼85.8366.51 ▲14.41
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0395.54 ▼7.0943.99 ▲0.65

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
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/disable-password-changed-notifications/disable-password-changed-notifications.php:12

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: password, email, notification

disable-password-changed-notifications/disable-password-changed-notifications.php Passed 13 tests

The principal PHP file in "Disable Password Changed Notifications" v. 1.0 is loaded by WordPress automatically on each request
80 characters long description:
Disables the notification sent to site admins when a user changes their password

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 detected5 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1295

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin