74% comment-notifier-no-spammers

Code Review | Lightweight Subscribe To Comments

WordPress plugin Lightweight Subscribe To Comments scored74%from 54 tests.

About plugin

  • Plugin page: comment-notifier-...
  • Plugin version: 1.5.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.4
  • WordPress version: 6.3.1
  • First release: May 10, 2014
  • Latest release: Aug 30, 2020
  • Number of updates: 46
  • Update frequency: every 50.1 days
  • Top authors: isabel104 (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

1,000+ active /14,545 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.53ms] Passed 4 tests

This is a short check of server-side resources used by Lightweight Subscribe To Comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.81 ▼8.65
Dashboard /wp-admin3.43 ▲0.1354.28 ▲4.00
Posts /wp-admin/edit.php3.55 ▲0.1952.68 ▲5.01
Add New Post /wp-admin/post-new.php6.01 ▲0.1392.38 ▼14.04
Media Library /wp-admin/upload.php3.36 ▲0.1341.81 ▲4.58
Lightweight Subscribe To Comments /wp-admin/options-general.php?page=lightweight-subscribe-comments3.3234.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
wp_comment_notifier
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
lstc
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Lightweight Subscribe To Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.071.67 ▼0.0539.90 ▼4.39
Dashboard /wp-admin2,199 ▲195.62 ▲0.0288.06 ▼12.4638.55 ▼2.67
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0640.05 ▲3.3136.60 ▼2.01
Add New Post /wp-admin/post-new.php1,531 ▼623.13 ▲4.94655.01 ▼15.6365.75 ▼0.83
Media Library /wp-admin/upload.php1,404 ▲74.23 ▲0.04112.60 ▲7.6746.70 ▲1.51
Lightweight Subscribe To Comments /wp-admin/options-general.php?page=lightweight-subscribe-comments1,2362.0024.0130.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_comment_notifier
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • lstc

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please 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/comment-notifier-no-spammers/comment-notifier-no-spammers.php:387

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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: comment, comments, follow comments, notifications, subscribe to comments...

comment-notifier-no-spammers/comment-notifier-no-spammers.php 85% from 13 tests

The main file in "Lightweight Subscribe To Comments" v. 1.5.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected752 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3105168752

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions23
▷ Named functions23100.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 are no PNG files in this plugin