94% disable-the-comments

Code Review | Disable The Comments

WordPress plugin Disable The Comments scored 94% from 53 tests.

About plugin

  • Plugin page: disable-the-comments
  • Plugin version: 0.0.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.7
  • WordPress version: 5.8.1
  • First release: Jul 10, 2017
  • Latest release: Jul 6, 2018
  • Number of updates: 8
  • Update frequency: every 45.5 days
  • Top authors: Scion Lucifer (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 475 total downloads


Plugin footprint Passed 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼270.86ms] Passed 4 tests

Server-side resources used by Disable The Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0140.84 ▲12.92
Dashboard /wp-admin3.03 ▼0.0335.71 ▼8.16
Posts /wp-admin/edit.php3.13 ▲0.0232.80 ▼11.90
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.84 ▼1,054.48
Media Library /wp-admin/upload.php3.02 ▲0.0231.70 ▼8.91
All Comments /wp-admin/edit-comments.php2.8823.35

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Disable The Comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▼70715.88 ▲0.2610.73 ▲2.1450.53 ▲3.19
Dashboard /wp-admin2,150 ▼7005.61 ▼0.24148.78 ▲16.5298.05 ▲1.86
Posts /wp-admin/edit.php2,515 ▼1882.68 ▼0.0165.12 ▼2.6783.71 ▼9.08
Add New Post /wp-admin/post-new.php1,829 ▼2417.77 ▼1.05373.97 ▲5.16101.68 ▼0.72
Media Library /wp-admin/upload.php1,734 ▲215.02 ▲0.01151.88 ▲10.50114.98 ▼7.46
All Comments /wp-admin/edit-comments.php2,1624.76118.7995.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

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
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/disable-the-comments/disable-the-comments.php:12

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: disable, admin, remove, delete, comments

disable-the-comments/disable-the-comments.php Passed 13 tests

The main PHP script in "Disable The Comments" version 0.0.6 is automatically included on every request by WordPress
57 characters long description:
Disable the Wordpress comments functions on your website.

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 plugin74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin