83% subscribe-to-comments-reloaded-better-unsubscribe

Code Review | Subscribe to Comments Reloaded Better Unsubscribe

WordPress plugin Subscribe to Comments Reloaded Better Unsubscribe scored83%from 54 tests.

About plugin

  • Plugin page: subscribe-to-comm...
  • Plugin version: 0.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2013
  • Latest release: Oct 11, 2016
  • Number of updates: 24
  • Update frequency: every 52.5 days
  • Top authors: FolioVision (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /5,043 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 gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.85ms] Passed 4 tests

An overview of server-side resources used by Subscribe to Comments Reloaded Better Unsubscribe
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.52 ▼4.15
Dashboard /wp-admin3.35 ▲0.0147.53 ▼10.61
Posts /wp-admin/edit.php3.40 ▲0.0546.69 ▼0.30
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.34 ▼24.32
Media Library /wp-admin/upload.php3.27 ▲0.0537.22 ▲4.32

Server storage [IO: ▲0.12MB] [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
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Subscribe to Comments Reloaded Better Unsubscribe
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.33 ▼0.952.20 ▲0.4146.32 ▲3.17
Dashboard /wp-admin2,206 ▲184.86 ▼0.20102.19 ▼4.1139.03 ▼6.96
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0139.06 ▲4.2134.88 ▼0.50
Add New Post /wp-admin/post-new.php1,533 ▲523.44 ▲5.09678.83 ▲19.6359.09 ▲9.71
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0095.44 ▼0.5741.95 ▲0.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 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/subscribe-to-comments-reloaded-better-unsubscribe/fv-subscribe-to-comments-reloaded-better-unsubscribe.php:117

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% 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
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Here's what the commenter's new comment notification should look like), #2 (Here's the instant unsubscribe in action)
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

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

The main file in "Subscribe to Comments Reloaded Better Unsubscribe" v. 0.9.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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("subscribe-to-comments-reloaded-better-unsubscribe.php" instead of "fv-subscribe-to-comments-reloaded-better-unsubscribe.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 380 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected291 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16715291

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions13
▷ Named functions13100.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
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.55KB14.26KB▼ 63.01%
screenshot-2.png61.60KB22.29KB▼ 63.81%