77% uncomment

Code Review | Uncomment — Disable Comments

WordPress plugin Uncomment — Disable Comments scored77%from 54 tests.

About plugin

  • Plugin page: uncomment
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 28, 2021
  • Latest release: Jan 17, 2023
  • Number of updates: 29
  • Update frequency: every 13.3 days
  • Top authors: functionsfile (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /11,702 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Uncomment — Disable Comments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.65 ▼5.99
Dashboard /wp-admin3.32 ▲0.0245.68 ▼3.28
Posts /wp-admin/edit.php3.40 ▲0.0440.89 ▼4.19
Add New Post /wp-admin/post-new.php5.95 ▲0.0680.91 ▼19.43
Media Library /wp-admin/upload.php3.29 ▲0.0630.94 ▼3.07
All Comments /wp-admin/edit-comments.php3.0521.25

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Uncomment — Disable Comments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,295 ▼47614.27 ▼0.032.08 ▲0.0144.71 ▼2.38
Dashboard /wp-admin1,704 ▼4845.58 ▼0.3095.22 ▼4.0039.27 ▲2.68
Posts /wp-admin/edit.php1,925 ▼1672.04 ▼0.0033.79 ▼7.4233.25 ▼4.05
Add New Post /wp-admin/post-new.php1,490 ▼3823.10 ▲4.80688.84 ▲66.9659.10 ▲10.76
Media Library /wp-admin/upload.php1,350 ▼414.15 ▼0.1397.54 ▼1.5142.40 ▲1.22
All Comments /wp-admin/edit-comments.php280.440.093.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Uncomment\\Rewrites\\add_filter() in wp-content/plugins/uncomment/includes/rewrites.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Uncomment\\add_filter() in wp-content/plugins/uncomment/includes/core.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Uncomment\\Feeds\\add_filter() in wp-content/plugins/uncomment/includes/feeds.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Uncomment\\XMLRPC\\add_filter() in wp-content/plugins/uncomment/includes/xmlrpc.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Uncomment\\Admin\\add_action() in wp-content/plugins/uncomment/includes/admin.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit-comments.php
    • > Network (severe)
    wp-admin/edit-comments.php - Failed to load resource: the server responded with a status of 403 (Forbidden)


Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: spam comments, remove, comments, remove comments, disable...

uncomment/plugin.php 69% from 13 tests

The primary PHP file in "Uncomment — Disable Comments" version 1.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "4.6.0")
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.3" instead of "5.3.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("uncomment.php" instead of "plugin.php")

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
Good job! No executable or dangerous file extensions detected402 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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 functions2796.43%
▷ Anonymous functions13.57%
▷ Global constants3100.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
No PNG files were detected