94% disable-comment-url

Code Review | Disable Comment Url

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

About plugin

  • Plugin page: disable-comment-url
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 5.8.1
  • First release: Feb 28, 2015
  • Latest release: Nov 9, 2017
  • Number of updates: 3
  • Update frequency: every 328.7 days
  • Top authors: mastergraphiks (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 3,443 total downloads

Benchmarks

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
Install script ran successfully

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

Server-side resources used by Disable Comment Url
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1242.71 ▲19.39
Dashboard /wp-admin3.06 ▲0.0157.94 ▲18.12
Posts /wp-admin/edit.php3.11 ▲0.0144.28 ▲2.48
Add New Post /wp-admin/post-new.php5.43 ▼0.0191.28 ▼665.46
Media Library /wp-admin/upload.php3.00 ▲0.0033.48 ▼3.35

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Disable Comment Url
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.02 ▲0.4011.08 ▲0.8351.94 ▲6.29
Dashboard /wp-admin2,967 ▲365.90 ▼0.04142.70 ▲5.25105.64 ▼13.50
Posts /wp-admin/edit.php2,739 ▼02.83 ▼0.0165.79 ▲4.7488.31 ▼4.48
Add New Post /wp-admin/post-new.php1,872 ▲25719.15 ▼1.78376.90 ▲111.48100.84 ▲1.16
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.02148.25 ▲3.52118.50 ▼1.92

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-comment-url/disable-comment-url.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (This is the screenshot showing that there is no URL in comment area screenshot1.jpg)
You can look at the official readme.txt

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

Analyzing the main PHP file in "Disable Comment Url" version 1.0
66 characters long description:
This Plugin Lets help you to Disable the URL on your Comment Form!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15108

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin