84% url-field-remover-from-comment-box

Code Review | URL Field Remover From Comment Box

WordPress plugin URL Field Remover From Comment Box scored84%from 54 tests.

About plugin

  • Plugin page: url-field-remover...
  • Plugin version: 3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Nov 23, 2021
  • Latest release: Apr 26, 2023
  • Number of updates: 11
  • Update frequency: every 47.2 days
  • Top authors: wptracer37 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /734 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.72ms] Passed 4 tests

Analyzing server-side resources used by URL Field Remover From Comment Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.78 ▼1.06
Dashboard /wp-admin3.32 ▲0.0244.22 ▼2.76
Posts /wp-admin/edit.php3.37 ▲0.0148.77 ▲3.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.07 ▼0.96
Media Library /wp-admin/upload.php3.24 ▲0.0136.10 ▲1.90

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

URL Field Remover From Comment Box: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10614.47 ▼0.151.91 ▼0.0039.35 ▼9.14
Dashboard /wp-admin2,222 ▲375.90 ▲0.04105.86 ▼0.5640.03 ▼4.23
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0339.77 ▲2.9736.03 ▼1.02
Add New Post /wp-admin/post-new.php1,557 ▲2118.30 ▼4.85629.70 ▼56.5152.68 ▼2.80
Media Library /wp-admin/upload.php1,407 ▲194.17 ▼0.1296.17 ▼13.6942.10 ▼4.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/url-field-remover-from-comment-box/url-field-remover-from-comment-box.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (The URL parameter is removed from Comment box in WordPress.) image missing
You can look at the official readme.txt

url-field-remover-from-comment-box/url-field-remover-from-comment-box.php Passed 13 tests

The main file in "URL Field Remover From Comment Box" v. 3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
100 characters long description:
This plugin helps remove the URL field parameter from comment form in every WordPress themes easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121653

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.15KB10.59KB▼ 57.90%