84% remove-website-link-field-from-comment-section

Code Review | Remove Website Link Field From Comment Section

WordPress plugin Remove Website Link Field From Comment Section scored84%from 54 tests.

About plugin

  • Plugin page: remove-website-li...
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 21, 2020
  • Latest release: Jun 5, 2023
  • Number of updates: 13
  • Update frequency: every 83.2 days
  • Top authors: gtarafdarr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /970 total downloads

Benchmarks

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.01MB] [CPU: ▼11.97ms] Passed 4 tests

A check of server-side resources used by Remove Website Link Field From Comment Section
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.94 ▼4.38
Dashboard /wp-admin3.31 ▼0.0443.59 ▼18.30
Posts /wp-admin/edit.php3.36 ▲0.0043.05 ▼3.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.65 ▼21.62
Media Library /wp-admin/upload.php3.24 ▲0.0033.20 ▼1.33

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Remove Website Link Field From Comment Section
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.301.63 ▼0.1541.72 ▼3.25
Dashboard /wp-admin2,206 ▲145.86 ▲0.91101.98 ▼8.9838.62 ▼1.56
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0433.32 ▼5.7632.01 ▼1.64
Add New Post /wp-admin/post-new.php1,536 ▲1723.27 ▲0.15634.79 ▲16.2554.82 ▲2.77
Media Library /wp-admin/upload.php1,391 ▼04.28 ▲0.0795.87 ▼2.1743.46 ▼0.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 | 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-website-link-field-from-comment-section/remove-website-link-field-from-comment-section.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: comments, comment link, anti spam, links, disable comment link

remove-website-link-field-from-comment-section/remove-website-link-field-from-comment-section.php 92% from 13 tests

The main file in "Remove Website Link Field From Comment Section" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 185 characters long)

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

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin