84% notify-comment-reply

Code Review | Notify Comment Reply

WordPress plugin Notify Comment Reply scored84%from 54 tests.

About plugin

  • Plugin page: notify-comment-reply
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2020
  • Latest release: May 29, 2020
  • Number of updates: 4
  • Update frequency: every 21.7 days
  • Top authors: obydul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /500 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.70ms] Passed 4 tests

An overview of server-side resources used by Notify Comment Reply
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.75 ▼2.76
Dashboard /wp-admin3.36 ▲0.0151.04 ▼11.89
Posts /wp-admin/edit.php3.47 ▲0.1157.33 ▲6.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.90 ▼5.25
Media Library /wp-admin/upload.php3.26 ▲0.0338.45 ▲1.09
Notify Comment Reply /wp-admin/options-general.php?page=mnp_ncr_settings3.2538.00

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Notify Comment Reply
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲18615.08 ▲0.421.82 ▼0.1241.62 ▲0.93
Dashboard /wp-admin2,350 ▲1706.33 ▲0.67110.83 ▲24.4737.22 ▼5.55
Posts /wp-admin/edit.php2,281 ▲1813.51 ▲1.5056.72 ▲19.1235.18 ▼1.20
Add New Post /wp-admin/post-new.php1,541 ▲1523.14 ▼0.03621.63 ▼114.0537.62 ▼29.81
Media Library /wp-admin/upload.php1,421 ▲214.31 ▲0.0687.09 ▼19.4641.86 ▼3.03
Notify Comment Reply /wp-admin/options-general.php?page=mnp_ncr_settings1,0903.4354.1832.55

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • mnp_ncr_edit
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • mnp_ncr_basic
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/notify-comment-reply/templates/template-reply.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/notify-comment-reply/includes/functions.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/notify-comment-reply/templates/template-edit.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/notify-comment-reply/init.php:32

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: email, notify, comment, notification, alert...

notify-comment-reply/init.php 92% from 13 tests

The main PHP file in "Notify Comment Reply" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("notify-comment-reply.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin557 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6176257532
Markdown19025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity35.50
▷ Minimum class complexity3.00
▷ Maximum class complexity68.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin