94% quiet-comment-disable

Code Review | Quiet Comment Disable

WordPress plugin Quiet Comment Disable scored 94% from 54 tests.

About plugin

  • Plugin page: quiet-comment-dis...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Feb 11, 2014
  • Latest release: Nov 7, 2014
  • Number of updates: 16
  • Update frequency: every 16.8 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,233 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Quiet Comment Disable
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.53 ▲11.27
Dashboard /wp-admin3.06 ▲0.0144.00 ▲0.17
Posts /wp-admin/edit.php3.11 ▲0.0143.58 ▼0.88
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.91 ▼566.42
Media Library /wp-admin/upload.php3.01 ▲0.0026.34 ▼6.33

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Quiet Comment Disable: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8316.12 ▲0.438.82 ▼0.3247.62 ▲0.06
Dashboard /wp-admin2,973 ▲425.91 ▼0.06139.36 ▼20.73101.41 ▼2.02
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0164.36 ▲1.3989.34 ▼0.35
Add New Post /wp-admin/post-new.php1,872 ▼019.18 ▼0.10376.35 ▼6.92105.80 ▲0.44
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.02145.82 ▲3.54119.51 ▲1.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/quiet-comment-disable/quiet-comment-disable.php:30

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: themeblvd, demo, theme blvd, comments, disable...

quiet-comment-disable/quiet-comment-disable.php Passed 13 tests

The primary PHP file in "Quiet Comment Disable" version 1.0.0 is used by WordPress to initiate all plugin functionality
89 characters long description:
Quietly disable comments to avoid unwanted spam. Great for WordPress theme demo websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18238

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin