84% comment-email-reply

Code Review | Comment Email Reply

WordPress plugin Comment Email Reply scored84%from 54 tests.

About plugin

  • Plugin page: comment-email-reply
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Oct 31, 2013
  • Latest release: Apr 6, 2015
  • Number of updates: 11
  • Update frequency: every 47.5 days
  • Top authors: kilozwo (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /9,595 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼5.91ms] Passed 4 tests

A check of server-side resources used by Comment Email Reply
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0052.18 ▲12.79
Dashboard /wp-admin3.31 ▲0.0145.66 ▼6.37
Posts /wp-admin/edit.php3.36 ▲0.0049.69 ▼3.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.17 ▼17.19
Media Library /wp-admin/upload.php3.23 ▲0.0041.00 ▲3.85

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Comment Email Reply: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.381.74 ▲0.1444.21 ▲1.22
Dashboard /wp-admin2,192 ▲125.59 ▼0.0892.76 ▲1.8941.12 ▼0.99
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0140.61 ▲1.4234.83 ▼0.10
Add New Post /wp-admin/post-new.php1,526 ▼223.11 ▲0.15664.69 ▲45.9557.77 ▼4.70
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.01100.15 ▲0.8147.80 ▲1.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/comment-email-reply/cer_plugin.php:12

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: email, notification, comments, notify comment-author, author...

comment-email-reply/cer_plugin.php 85% from 13 tests

Analyzing the main PHP file in "Comment Email Reply" version 1.0.4
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("comment-email-reply.php" instead of "cer_plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 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
No dangerous file extensions were detected54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PO File15829
PHP181125

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.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 files were detected