84% comment-form

Code Review | Advanced Comment Form

WordPress plugin Advanced Comment Form scored84%from 54 tests.

About plugin

  • Plugin page: comment-form
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 23, 2014
  • Latest release: Nov 2, 2023
  • Number of updates: 23
  • Update frequency: every 148.7 days
  • Top authors: webzunft (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

6,000+ active /51,041 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.04MB] [CPU: ▼5.56ms] Passed 4 tests

Analyzing server-side resources used by Advanced Comment Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.18 ▼6.71
Dashboard /wp-admin3.37 ▲0.0246.93 ▼9.90
Posts /wp-admin/edit.php3.48 ▲0.1248.70 ▲0.43
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.01 ▼6.04
Media Library /wp-admin/upload.php3.29 ▲0.0636.92 ▲2.68
Comment Form /wp-admin/edit-comments.php?page=comment-form-customizer3.3131.91
All Comments /wp-admin/edit-comments.php3.3638.70

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

Input-output and database impact of this plugin
This plugin was installed successfully
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

An overview of browser requirements for Advanced Comment Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.75 ▲0.381.60 ▼0.0738.91 ▼2.69
Dashboard /wp-admin2,212 ▲345.64 ▼0.3091.14 ▼14.7539.98 ▼5.56
Posts /wp-admin/edit.php2,120 ▲202.02 ▼0.0038.71 ▼3.2136.28 ▼0.60
Add New Post /wp-admin/post-new.php1,541 ▲1323.87 ▲0.67691.65 ▼13.8350.53 ▼9.05
Media Library /wp-admin/upload.php1,417 ▲174.29 ▲0.0894.41 ▼11.3341.89 ▼3.58
Comment Form /wp-admin/edit-comments.php?page=comment-form-customizer9172.0022.7738.01
All Comments /wp-admin/edit-comments.php1,8242.2835.0033.76

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Comment_Form_Main' not found in wp-content/plugins/comment-form/frontend/comment_form_frontend.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Comment_Form_Main' not found in wp-content/plugins/comment-form/admin/comment_form_admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: form, comments, comment form

comment-form/comment-form.php Passed 13 tests

"Advanced Comment Form" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Easily customize and optimize the standard comment form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected246 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP477200246

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.00
▷ Minimum class complexity3.00
▷ Maximum class complexity22.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected