78% wp-comment-fields

Code Review | Comments Extra Fields For Post,Pages and CPT

WordPress plugin Comments Extra Fields For Post,Pages and CPT scored78%from 54 tests.

About plugin

  • Plugin page: wp-comment-fields
  • Plugin version: 4.7
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 15, 2014
  • Latest release: Jun 3, 2023
  • Number of updates: 42
  • Update frequency: every 75.1 days
  • Top authors: nmedia (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /43,634 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.63MB] [CPU: ▼1.74ms] Passed 4 tests

An overview of server-side resources used by Comments Extra Fields For Post,Pages and CPT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.14 ▲0.6736.86 ▼4.11
Dashboard /wp-admin3.97 ▲0.6649.58 ▲2.31
Posts /wp-admin/edit.php4.02 ▲0.6656.36 ▲9.38
Add New Post /wp-admin/post-new.php6.49 ▲0.6084.34 ▼9.70
Media Library /wp-admin/upload.php3.83 ▲0.5941.90 ▲4.54
All Comments /wp-admin/edit-comments.php3.9541.89
Comment Fields /wp-admin/edit-comments.php?page=wpcomment4.2747.05

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 190 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Comments Extra Fields For Post,Pages and CPT: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.45 ▼0.211.71 ▼0.0842.34 ▲0.53
Dashboard /wp-admin2,215 ▲355.65 ▲0.0390.20 ▲2.4537.10 ▼6.97
Posts /wp-admin/edit.php2,117 ▲172.00 ▲0.0039.82 ▲2.5435.85 ▼2.81
Add New Post /wp-admin/post-new.php1,541 ▲1523.92 ▲0.60688.91 ▲71.4962.76 ▲8.63
Media Library /wp-admin/upload.php1,417 ▲174.30 ▲0.19109.29 ▼5.4748.73 ▼0.05
All Comments /wp-admin/edit-comments.php1,8242.2835.5032.32
Comment Fields /wp-admin/edit-comments.php?page=wpcomment2,7743.8658.4150.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-comment-fields/inc/functions.php
    • > /wp-content/plugins/wp-comment-fields/inc/files.php
    • > /wp-content/plugins/wp-comment-fields/classes/fields.class.php
    • > /wp-content/plugins/wp-comment-fields/classes/admin.class.php
    • > /wp-content/plugins/wp-comment-fields/templates/admin/basic-settings.php
  • 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.color.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.palettes.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.email.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-comment-fields/templates/admin/fields.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.section.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.date.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.number.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.hidden.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.radio.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WPComment_Inputs' not found in wp-content/plugins/wp-comment-fields/classes/inputs/input.audio.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please a description for screenshot #0 in wp-comment-fields/assets to your readme.txt
  • Screenshots: Screenshot #5 (Frontend - Extra fields with user comment) image not found
You can look at the official readme.txt

wp-comment-fields/wp-comment-fields.php 92% from 13 tests

Analyzing the main PHP file in "Comments Extra Fields For Post,Pages and CPT" version 4.7
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

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
Good job! No executable or dangerous file extensions detected34,402 lines of code in 129 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript252,2001,04914,648
CSS205324007,259
PHP551,7821,2406,298
SVG1002,671
Sass1434341,768
LESS1434441,758

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.62
▷ Minimum class complexity1.00
▷ Maximum class complexity143.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods126
▷ Static methods2721.43%
▷ Public methods10381.75%
▷ Protected methods00.00%
▷ Private methods2318.25%
Functions78
▷ Named functions7494.87%
▷ Anonymous functions45.13%
Constants5
▷ Global constants5100.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
49 PNG files occupy 0.20MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png1.88KB1.02KB▼ 45.84%
css/jq-ui/smoothness/images/ui-icons_888888_256x240.png6.94KB4.18KB▼ 39.78%
images/file.png2.32KB1.81KB▼ 21.75%
css/jq-ui/smoothness/images/ui-icons_454545_256x240.png6.92KB4.18KB▼ 39.61%
css/share.png7.85KB5.03KB▼ 35.98%