73% subscribe-to-comments-reloaded

Code Review | Subscribe To Comments Reloaded

WordPress plugin Subscribe To Comments Reloaded scored73%from 54 tests.

About plugin

  • Plugin page: subscribe-to-comm...
  • Plugin version: 220725...
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Sep 30, 2010
  • Latest release: Jul 25, 2022
  • Number of updates: 377
  • Update frequency: every 11.5 days
  • Top authors: coolmann (41.91%)reedyseth (29.97%)wpkube (27.06%)raamdev (1.86%)

Code review

54 tests

User reviews

166 reviews

Install metrics

10,000+ active /930,233 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.13MB] [CPU: ▼1.33ms] 75% from 4 tests

An overview of server-side resources used by Subscribe To Comments Reloaded
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 736.63ms on /wp-admin/admin.php?page=stcr_system)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.10 ▼2.60
Dashboard /wp-admin3.46 ▲0.1648.22 ▲0.33
Posts /wp-admin/edit.php3.52 ▲0.1648.37 ▲4.42
Add New Post /wp-admin/post-new.php6.00 ▲0.1287.82 ▼1.29
Media Library /wp-admin/upload.php3.32 ▲0.1035.50 ▼1.75
Support /wp-admin/admin.php?page=stcr_support3.3433.07
Comment Form /wp-admin/admin.php?page=stcr_comment_form3.4534.67
Management Page /wp-admin/admin.php?page=stcr_management_page3.4635.89
Manage subscriptions /wp-admin/admin.php?page=stcr_manage_subscriptions3.4636.02
StCR System /wp-admin/admin.php?page=stcr_system3.60736.63
Options /wp-admin/admin.php?page=stcr_options3.6562.94
Notifications /wp-admin/admin.php?page=stcr_notifications3.4233.11

Server storage [IO: ▲13.27MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 295 new files
Database: 1 new table, 64 new options
New tables
wp_subscribe_reloaded_subscribers
New WordPress options
subscribe_reloaded_unique_key
subscribe_reloaded_htmlify_message_links
subscribe_reloaded_author_text
subscribe_reloaded_post_type_supports
subscribe_reloaded_reply_to
subscribe_reloaded_auto_clean_log_frecuency
theysaidso_admin_options
subscribe_reloaded_manager_page_enabled
subscribe_reloaded_subscription_confirmed
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

Checking browser requirements for Subscribe To Comments Reloaded
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲11213.33 ▼1.054.65 ▲2.9537.11 ▼8.17
Dashboard /wp-admin2,252 ▲605.91 ▲0.96101.51 ▼23.5842.52 ▼4.71
Posts /wp-admin/edit.php2,134 ▲482.02 ▼0.0135.37 ▼1.1834.32 ▼1.08
Add New Post /wp-admin/post-new.php1,576 ▲5718.40 ▼5.01634.87 ▼38.8556.65 ▲3.35
Media Library /wp-admin/upload.php1,431 ▲404.17 ▼0.1397.67 ▼5.4840.31 ▼4.66
Support /wp-admin/admin.php?page=stcr_support1,0142.1732.6165.04
Comment Form /wp-admin/admin.php?page=stcr_comment_form2,44310.38180.28129.24
Management Page /wp-admin/admin.php?page=stcr_management_page2,6929.69239.74132.87
Manage subscriptions /wp-admin/admin.php?page=stcr_manage_subscriptions1,2422.3832.7659.22
StCR System /wp-admin/admin.php?page=stcr_system1,3812.2328.6055.98
Options /wp-admin/admin.php?page=stcr_options1,7232.3931.5850.57
Notifications /wp-admin/admin.php?page=stcr_notifications2,63110.50202.38120.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_subscribe_reloaded_subscribers
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 27× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/subscribe-to-comments-reloaded/options/panel1-business-logic.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/templates/not-allowed.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/templates/request-management-link.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/templates/author.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/utils/stcr_manage.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/options/panel1-edit-subscription.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/options/stcr_system.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/options/panel1-add-subscription.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/utils/stcr_utils.php
    • > /wp-content/plugins/subscribe-to-comments-reloaded/templates/user.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

subscribe-to-comments-reloaded/subscribe-to-comments-reloaded.php 85% from 13 tests

The main file in "Subscribe To Comments Reloaded" v. 220725... serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 250 characters long)
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "220725...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected86,897 lines of code in 199 files:
LanguageFilesBlank linesComment linesLines of code
PO File209,13714,22023,941
JavaScript485,89513,34922,902
CSS463,38824522,417
PHP371,4111,4297,779
SVG40125,551
Sass26128422,413
LESS1641511,870
XML10023
JSON1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity57.60
▷ Minimum class complexity1.00
▷ Maximum class complexity270.00
Average method complexity4.82
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods149
▷ Static methods64.03%
▷ Public methods14697.99%
▷ Protected methods00.00%
▷ Private methods32.01%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/datatables/media/images/sort_desc_disabled.png0.14KB0.25KB0.00%
vendor/datatables/media/images/sort_asc_disabled.png0.14KB0.25KB0.00%
images/subscribe-to-comments-small.png1.44KB0.67KB▼ 53.64%
images/subscribe-to-comments.png2.04KB1.20KB▼ 40.92%
vendor/datatables/media/images/sort_both.png0.20KB0.29KB0.00%