74% remove-web-field-from-comments-form

Code Review | Remove Web Field From Comments Form

WordPress plugin Remove Web Field From Comments Form scored74%from 54 tests.

About plugin

  • Plugin page: remove-web-field-...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2019
  • Latest release: Feb 23, 2023
  • Number of updates: 7
  • Update frequency: every 167.0 days
  • Top authors: carlosmr96 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /1,818 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.88MB] [CPU: ▼50.96ms] Passed 4 tests

Server-side resources used by Remove Web Field From Comments Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.396.70 ▼39.41
Dashboard /wp-admin2.13 ▼1.179.17 ▼42.06
Posts /wp-admin/edit.php2.14 ▼1.2210.88 ▼35.55
Add New Post /wp-admin/post-new.php2.13 ▼3.758.69 ▼86.83
Media Library /wp-admin/upload.php2.14 ▼1.097.40 ▼26.20

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Remove Web Field From Comments Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.081.71 ▼0.2845.27 ▼3.17
Dashboard /wp-admin2,209 ▲214.84 ▼1.04111.50 ▼4.3941.53 ▼5.64
Posts /wp-admin/edit.php2,086 ▼32.06 ▼0.0040.27 ▲5.3835.76 ▼0.68
Add New Post /wp-admin/post-new.php1,533 ▲1923.54 ▲5.93579.93 ▼104.7547.67 ▼8.45
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0597.72 ▼0.2741.70 ▼3.55

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/remove-web-field-from-comments-form/remove-web-field-from-comments-form.php+57
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-web-field-from-comments-form/remove-web-field-from-comments-form.php:14

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: url, web, comment, hide, website...

remove-web-field-from-comments-form/remove-web-field-from-comments-form.php 92% from 13 tests

"Remove Web Field From Comments Form" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin120 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File2141468
PHP232452

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions6
▷ Named functions6100.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
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png9.63KB4.19KB▼ 56.48%
assets/banner-772x250.png29.84KB10.07KB▼ 66.26%
assets/screenshot-1.PNG22.19KB11.14KB▼ 49.80%
assets/screenshot-2.PNG5.38KB3.58KB▼ 33.46%