84% comment-reply-email-notification

Code Review | Comment Reply Email Notification

WordPress plugin Comment Reply Email Notification scored84%from 54 tests.

About plugin

  • Plugin page: comment-reply-ema...
  • Plugin version: 1.31.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2016
  • Latest release: Oct 2, 2023
  • Number of updates: 100
  • Update frequency: every 28.1 days
  • Top authors: guhemama (53%)awelzel (48%)

Code review

54 tests

User reviews

30 reviews

Install metrics

4,000+ active /76,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.45ms] Passed 4 tests

A check of server-side resources used by Comment Reply Email Notification
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1349.53 ▲4.43
Dashboard /wp-admin3.43 ▲0.1350.80 ▲2.63
Posts /wp-admin/edit.php3.55 ▲0.1947.17 ▼8.13
Add New Post /wp-admin/post-new.php6.01 ▲0.1385.29 ▼16.47
Media Library /wp-admin/upload.php3.36 ▲0.1336.30 ▲0.18
Comment subscriptions /wp-admin/edit-comments.php?page=comment_reply_email_notification_subscriptions3.3935.08
Comment Reply Email Notification /wp-admin/options-general.php?page=comment_reply_email_notification3.3231.29
All Comments /wp-admin/edit-comments.php3.4241.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Comment Reply Email Notification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲2414.26 ▲0.021.81 ▼0.5244.57 ▼6.73
Dashboard /wp-admin2,216 ▲425.64 ▼0.0191.02 ▼11.8438.29 ▼8.92
Posts /wp-admin/edit.php2,118 ▲212.00 ▲0.0535.46 ▼4.9933.14 ▼2.29
Add New Post /wp-admin/post-new.php1,544 ▲1623.23 ▲0.08676.01 ▼16.3576.24 ▲21.89
Media Library /wp-admin/upload.php1,424 ▲244.19 ▼0.0598.48 ▼17.5043.64 ▼6.13
Comment subscriptions /wp-admin/edit-comments.php?page=comment_reply_email_notification_subscriptions9842.0326.1828.82
Comment Reply Email Notification /wp-admin/options-general.php?page=comment_reply_email_notification9392.0425.1128.42
All Comments /wp-admin/edit-comments.php1,8282.2839.4436.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/comment-reply-email-notification/templates/cren/notification.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/comment-reply-email-notification/classes/SubscriptionsTable.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: reply, notification, comment, email

comment-reply-email-notification/cren_plugin.php 92% from 13 tests

The primary PHP file in "Comment Reply Email Notification" version 1.31.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("comment-reply-email-notification.php" instead of "cren_plugin.php")

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
Everything looks great! No dangerous files found in this plugin1,899 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PO File154846051,412
PHP599199487

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity20.50
▷ Minimum class complexity11.00
▷ Maximum class complexity30.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods3093.75%
▷ Protected methods00.00%
▷ Private methods26.25%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin