84% simple-comment-notification

Code Review | Simple Comment Notification

WordPress plugin Simple Comment Notification scored84%from 54 tests.

About plugin

  • Plugin page: simple-comment-no...
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Mar 6, 2016
  • Latest release: Apr 8, 2020
  • Number of updates: 29
  • Update frequency: every 52.6 days
  • Top authors: Beherit (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,437 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Simple Comment Notification
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.69 ▲2.24
Dashboard /wp-admin3.33 ▲0.0350.50 ▼5.36
Posts /wp-admin/edit.php3.38 ▲0.0254.24 ▲0.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.20 ▼13.36
Media Library /wp-admin/upload.php3.26 ▲0.0244.19 ▲7.95

Server storage [IO: ▲0.04MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Simple Comment Notification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.001.61 ▼0.0941.90 ▼3.55
Dashboard /wp-admin2,198 ▲215.58 ▼0.0890.25 ▼5.2439.66 ▲2.56
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0145.79 ▼13.5335.53 ▼11.09
Add New Post /wp-admin/post-new.php1,526 ▼223.07 ▲0.04694.01 ▲21.0758.70 ▲5.06
Media Library /wp-admin/upload.php1,397 ▼34.23 ▼0.06111.42 ▲10.1749.52 ▲6.70

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 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-comment-notification/simple-comment-notification.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: comment, comments, author, notification, email...

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

The main PHP file in "Simple Comment Notification" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
94 characters long description:
Sends an simply email notification to the comment author, when someone replies to his comment.

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
Success! There were no dangerous files found in this plugin46 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP153046

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.48
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin