79% comments-subscribe-checkbox

Code Review | Subscribe To Comments Checkbox

WordPress plugin Subscribe To Comments Checkbox scored79%from 54 tests.

About plugin

  • Plugin page: comments-subscrib...
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 21, 2020
  • Latest release: Nov 2, 2023
  • Number of updates: 41
  • Update frequency: every 32.2 days
  • Top authors: yydevelopment (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /2,374 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.36ms] Passed 4 tests

This is a short check of server-side resources used by Subscribe To Comments Checkbox
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.22 ▼2.22
Dashboard /wp-admin3.38 ▲0.0747.29 ▼2.67
Posts /wp-admin/edit.php3.49 ▲0.1351.86 ▲4.01
Add New Post /wp-admin/post-new.php5.96 ▲0.0795.62 ▼10.95
Media Library /wp-admin/upload.php3.30 ▲0.0736.74 ▼1.59
Comments Subscribers /wp-admin/edit-comments.php?page=wordpress-comment-subscribe3.3333.60
All Comments /wp-admin/edit-comments.php3.3740.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 7 new options
New tables
wp_yydev_comments_subscribe
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
yydev_comments_subscribe_timestamp
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Subscribe To Comments Checkbox
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.56 ▼0.051.77 ▲0.0744.89 ▲1.16
Dashboard /wp-admin2,215 ▲345.62 ▼0.1691.54 ▼10.3539.53 ▼2.68
Posts /wp-admin/edit.php2,120 ▲232.02 ▲0.0038.51 ▲1.4736.89 ▲2.09
Add New Post /wp-admin/post-new.php1,543 ▲1723.06 ▼0.17682.12 ▼2.0652.90 ▼1.31
Media Library /wp-admin/upload.php1,420 ▲204.25 ▲0.0598.00 ▼8.4141.99 ▼0.83
Comments Subscribers /wp-admin/edit-comments.php?page=wordpress-comment-subscribe8992.0125.0034.29
All Comments /wp-admin/edit-comments.php1,8272.2538.0434.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_yydev_comments_subscribe
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • yydev_comments_subscribe_timestamp
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: Please take inspiration from this readme.txt

comments-subscribe-checkbox/index.php 92% from 13 tests

The main file in "Subscribe To Comments Checkbox" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("comments-subscribe-checkbox.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin953 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13409224853
PO File22932100

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png2.31KB2.42KB0.00%