84% remove-comment-url

Code Review | Remove Website URL Field From Comment Form

WordPress plugin Remove Website URL Field From Comment Form scored84%from 54 tests.

About plugin

  • Plugin page: remove-comment-url
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 20, 2022
  • Latest release: Sep 28, 2023
  • Number of updates: 12
  • Update frequency: every 49.2 days
  • Top authors: freewebmentor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Remove Website URL Field From Comment Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.29 ▲6.77
Dashboard /wp-admin3.31 ▲0.0158.47 ▲2.93
Posts /wp-admin/edit.php3.36 ▲0.0049.99 ▼4.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.68 ▼21.23
Media Library /wp-admin/upload.php3.23 ▲0.0037.99 ▲0.82

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Website URL Field From Comment Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.14 ▼1.551.79 ▼0.2638.35 ▼3.77
Dashboard /wp-admin2,206 ▲185.90 ▲1.01101.94 ▼8.1738.70 ▼8.91
Posts /wp-admin/edit.php2,086 ▼32.01 ▲0.0434.41 ▼8.0534.48 ▼0.92
Add New Post /wp-admin/post-new.php1,533 ▼023.01 ▼0.06652.51 ▼21.7555.25 ▼0.59
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.03103.43 ▼5.3645.07 ▼2.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-comment-url/remove-comment-url.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires at least: Version format is invalid
The official readme.txt might help

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

Analyzing the main PHP file in "Remove Website URL Field From Comment Form" version 1.1
125 characters long description:
Allows administrators to globally disable the URL/Website input field from the WordPress inbuilt comments form on their site.

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 detected10 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP221510

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin