84% post-notify-users

Code Review | Post Notify Users

WordPress plugin Post Notify Users scored84%from 54 tests.

About plugin

  • Plugin page: post-notify-users
  • Plugin version: 1.06
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Jan 29, 2019
  • Latest release: Oct 31, 2023
  • Number of updates: 25
  • Update frequency: every 69.4 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.20ms] Passed 4 tests

Server-side resources used by Post Notify Users
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0636.37 ▼4.63
Dashboard /wp-admin3.37 ▲0.0643.99 ▼3.66
Posts /wp-admin/edit.php3.42 ▲0.0645.53 ▲1.29
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.02 ▼7.03
Media Library /wp-admin/upload.php3.29 ▲0.0631.92 ▼1.48
Post Notify Users /wp-admin/options-general.php?page=postnotifyusers3.2631.29

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
postnotifyusers
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Post Notify Users
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.27 ▼0.321.84 ▲0.0840.36 ▼7.00
Dashboard /wp-admin2,199 ▲225.59 ▼0.0991.66 ▼5.0641.32 ▼1.79
Posts /wp-admin/edit.php2,107 ▲12.00 ▲0.0138.54 ▼19.5636.56 ▼13.05
Add New Post /wp-admin/post-new.php1,532 ▲323.29 ▼0.10700.66 ▲58.6662.06 ▲13.74
Media Library /wp-admin/upload.php1,407 ▲44.18 ▼0.0198.60 ▲2.6841.79 ▼0.01
Post Notify Users /wp-admin/options-general.php?page=postnotifyusers8722.0125.0627.45

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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
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 take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-notify-users/lib/class-postnotifyusersadmin.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-notify-users/lib/class-postnotifyusersadmin.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/post-notify-users/lib/class-postnotifyusers.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: posts, roles, notify, users, mail

post-notify-users/postnotifyusers.php 92% from 13 tests

Analyzing the main PHP file in "Post Notify Users" version 1.06
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-notify-users.php" instead of "postnotifyusers.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected321 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP458149321

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity17.50
▷ Minimum class complexity13.00
▷ Maximum class complexity22.00
Average method complexity4.30
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin