90% wp-comment-notification

Code Review | WP Comment Notification

WordPress plugin WP Comment Notification scored90%from 54 tests.

About plugin

  • Plugin page: wp-comment-notifi...
  • Plugin version: 1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jul 18, 2017
  • Latest release: Jul 30, 2022
  • Number of updates: 13
  • Update frequency: every 141.4 days
  • Top authors: jodhavishalsingh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /5,418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.78ms] Passed 4 tests

An overview of server-side resources used by WP Comment Notification
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.65 ▲6.59
Dashboard /wp-admin3.32 ▼0.0244.18 ▼13.57
Posts /wp-admin/edit.php3.37 ▲0.0148.83 ▲5.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.00 ▼18.27
Media Library /wp-admin/upload.php3.24 ▲0.0132.40 ▼1.08
WP Comment Notification /wp-admin/options-general.php?page=wp-comment-notification3.2134.81

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Comment Notification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.29 ▼1.271.84 ▲0.0744.17 ▲4.11
Dashboard /wp-admin2,207 ▲155.82 ▲0.9494.96 ▼12.4437.71 ▼4.24
Posts /wp-admin/edit.php2,093 ▲71.99 ▼0.0235.00 ▲1.8633.71 ▼1.48
Add New Post /wp-admin/post-new.php1,536 ▲1723.66 ▲0.52615.66 ▲3.6952.71 ▼5.13
Media Library /wp-admin/upload.php1,395 ▲44.19 ▼0.0295.09 ▼16.6442.86 ▼7.17
WP Comment Notification /wp-admin/options-general.php?page=wp-comment-notification7862.0325.5523.95

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: comments notification, comment email notifications, wordpress comments, comment emails, manage comments notification...

wp-comment-notification/wp-comment-notification.php Passed 13 tests

The entry point to "WP Comment Notification" version 1.4 is a PHP file that has certain tags in its header comment area
39 characters long description:
Manage wordpress Comment Notifications.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected174 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15166174

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.17KB16.60KB▼ 56.51%