90% turn-off-comments

Code Review | Turn Off Comments - Remove Commenting System, Disable Comment Box and Hide Comments

WordPress plugin Turn Off Comments - Remove Commenting System, Disable Comment Box and Hide Comments scored90%from 54 tests.

About plugin

  • Plugin page: turn-off-comments
  • Plugin version: 1.4.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 47
  • Update frequency: every 5.6 days
  • Top authors: mehrazmorshed (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,438 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.62ms] Passed 4 tests

An overview of server-side resources used by Turn Off Comments - Remove Commenting System, Disable Comment Box and Hide Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.84 ▼7.49
Dashboard /wp-admin3.33 ▼0.0245.96 ▼15.32
Posts /wp-admin/edit.php3.38 ▲0.0247.80 ▼1.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.89 ▼14.30
Media Library /wp-admin/upload.php3.25 ▲0.0235.97 ▲5.86
All Comments /wp-admin/edit-comments.php3.1026.64

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

Analyzing filesystem and database footprints 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
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Turn Off Comments - Remove Commenting System, Disable Comment Box and Hide Comments
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,765 ▲314.22 ▼0.491.71 ▼0.2138.03 ▼6.55
Dashboard /wp-admin2,167 ▼105.59 ▼0.0291.43 ▼5.6138.01 ▲1.01
Posts /wp-admin/edit.php1,940 ▼1631.97 ▲0.0139.23 ▲0.2734.10 ▼4.07
Add New Post /wp-admin/post-new.php1,497 ▼3823.08 ▼2.13628.78 ▼2.1250.01 ▼22.21
Media Library /wp-admin/upload.php1,363 ▼344.16 ▼0.0196.94 ▼5.2741.84 ▲0.66
All Comments /wp-admin/edit-comments.php2,1675.5772.4839.64

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: remove comments, restrict comments, hide comments, disable comments, disable comment

turn-off-comments/turn-off-comments.php 92% from 13 tests

The main PHP file in "Turn Off Comments - Remove Commenting System, Disable Comment Box and Hide Comments" ver. 1.4.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 83 characters long)

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
Everything looks great! No dangerous files found in this plugin100 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23833100

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin