90% notify-users-e-mail

Code Review | Post Notification by Email

WordPress plugin Post Notification by Email scored90%from 54 tests.

About plugin

  • Plugin page: notify-users-e-mail
  • Plugin version: 4.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 18, 2013
  • Latest release: Jun 21, 2019
  • Number of updates: 59
  • Update frequency: every 36.8 days
  • Top authors: valeriosza (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

2,000+ active /44,050 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Post Notification by Email
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.07 ▼1.32
Dashboard /wp-admin3.31 ▼0.0457.05 ▼9.01
Posts /wp-admin/edit.php3.36 ▲0.0044.79 ▼1.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.63 ▼16.75
Media Library /wp-admin/upload.php3.23 ▲0.0034.17 ▼2.43

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Post Notification by Email
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.171.66 ▼0.0842.71 ▲0.02
Dashboard /wp-admin2,209 ▲215.84 ▲0.0399.77 ▼5.5436.77 ▼1.65
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.1733.21 ▼4.5330.77 ▲0.39
Add New Post /wp-admin/post-new.php1,533 ▲523.28 ▲4.83647.99 ▼20.3255.97 ▲0.82
Media Library /wp-admin/upload.php1,391 ▲94.25 ▼0.0397.09 ▼2.8942.36 ▲0.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

notify-users-e-mail/notify-users-e-mail.php Passed 13 tests

The main file in "Post Notification by Email" v. 4.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
Notification of new posts by e-mail to all users

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin6,091 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript486706293,361
PO File104935521,403
PHP8170383714
CSS213721613

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity31.00
▷ Minimum class complexity23.00
▷ Maximum class complexity39.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods36
▷ Static methods411.11%
▷ Public methods2569.44%
▷ Protected methods719.44%
▷ Private methods411.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/img/select2x2.png0.83KB0.77KB▼ 6.15%
lib/img/select2.png0.60KB0.99KB0.00%