68% post-comment-notification-to-multiple-user

Code Review | Post Comment Notification

WordPress plugin Post Comment Notification scored68%from 54 tests.

About plugin

  • Plugin page: post-comment-noti...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.0.0
  • WordPress version: 6.3.1
  • First release: Nov 14, 2012
  • Latest release: Nov 14, 2012
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: rahadgp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,303 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼32.70ms] Passed 4 tests

This is a short check of server-side resources used by Post Comment Notification
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.88 ▼4.95
Dashboard /wp-admin3.02 ▼0.2825.49 ▼30.45
Posts /wp-admin/edit.php3.03 ▼0.3324.20 ▼23.48
Add New Post /wp-admin/post-new.php3.02 ▼2.8624.49 ▼65.91
Media Library /wp-admin/upload.php3.02 ▼0.2026.50 ▼10.96
Comment or Post Notifier /wp-admin/options-general.php?page=comment_notifier3.0328.41

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Comment Notification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▼0.381.80 ▼0.0743.23 ▼0.24
Dashboard /wp-admin2,196 ▲165.55 ▼0.1489.00 ▼7.5640.60 ▼1.72
Posts /wp-admin/edit.php2,101 ▼22.01 ▼0.0039.40 ▲3.4536.21 ▼0.95
Add New Post /wp-admin/post-new.php1,529 ▼1217.68 ▼0.69655.90 ▲3.8858.76 ▼6.10
Media Library /wp-admin/upload.php1,407 ▲74.21 ▼0.04111.32 ▲2.2446.54 ▼0.66
Comment or Post Notifier /wp-admin/options-general.php?page=comment_notifier8022.1825.5629.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=comment_notifier
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=comment_notifier
    • > Notice in wp-content/plugins/post-comment-notification-to-multiple-user/post-comment-notification-to-multiple-user.php+139
    Undefined variable: email_address

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/post-comment-notification-to-multiple-user/post-comment-notification-to-multiple-user.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: new post moderate, email, moderation, notification, comments

post-comment-notification-to-multiple-user/post-comment-notification-to-multiple-user.php 92% from 13 tests

The primary PHP file in "Post Comment Notification" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 212 characters long)

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

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 code0.22
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin