84% customize-comment-form-input-fields

Code Review | Customize comment form input fields

WordPress plugin Customize comment form input fields scored84%from 54 tests.

About plugin

  • Plugin page: customize-comment...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2.4
  • WordPress version: 6.3.1
  • First release: Oct 29, 2019
  • Latest release: Oct 29, 2019
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: yossybunny (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /512 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.07MB] [CPU: ▼1.17ms] Passed 4 tests

An overview of server-side resources used by Customize comment form input fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0641.87 ▼0.46
Dashboard /wp-admin3.38 ▲0.0848.52 ▲0.50
Posts /wp-admin/edit.php3.43 ▲0.0747.86 ▲0.34
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.95 ▼4.96
Media Library /wp-admin/upload.php3.30 ▲0.0735.05 ▲0.40
Customize comment form input fields /wp-admin/options-general.php?page=customize-comment-form-input-fields3.2738.94

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Customize comment form input fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.72 ▲0.121.80 ▼0.0943.54 ▼3.59
Dashboard /wp-admin2,204 ▲245.58 ▼0.1188.65 ▼1.8841.29 ▼3.89
Posts /wp-admin/edit.php2,106 ▲62.00 ▼0.0234.51 ▼4.4335.72 ▲2.36
Add New Post /wp-admin/post-new.php1,531 ▲323.07 ▲0.06676.39 ▲12.7654.28 ▼11.22
Media Library /wp-admin/upload.php1,406 ▲64.28 ▲0.08103.71 ▼0.8944.35 ▲1.01
Customize comment form input fields /wp-admin/options-general.php?page=customize-comment-form-input-fields1,1032.0126.5636.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-comment-form-input-fields/ccfif-admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-comment-form-input-fields/customize-comment-form-input-fields.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-comment-form-input-fields/ccfif-customize.php:7

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Requires php: Invalid version format
You can look at the official readme.txt

customize-comment-form-input-fields/customize-comment-form-input-fields.php Passed 13 tests

Analyzing the main PHP file in "Customize comment form input fields" version 1.0.1
47 characters long description:
This plugin customizes the comment input field.

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
There were no executable files found in this plugin373 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34910225
CSS110148

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.10MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/image.png98.87KB101.04KB0.00%