84% comment-form-wp

Code Review | Comment Form WP

WordPress plugin Comment Form WP scored 84% from 54 tests.

About plugin

  • Plugin page: comment-form-wp
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2023
  • Latest release: Aug 9, 2023
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: hrhabibpro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 77 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Comment Form WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.60 ▲1.25
Dashboard /wp-admin3.31 ▲0.0145.51 ▼5.45
Posts /wp-admin/edit.php3.37 ▲0.0145.43 ▼0.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.29 ▼0.30
Media Library /wp-admin/upload.php3.24 ▲0.0136.88 ▲2.50
Comment Form WP /wp-admin/tools.php?page=comment-form-wp3.2136.32

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Comment Form WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.26 ▼1.321.69 ▼0.1033.62 ▼13.76
Dashboard /wp-admin2,217 ▲264.89 ▼1.0197.15 ▼4.1240.37 ▼1.00
Posts /wp-admin/edit.php2,097 ▲82.05 ▲0.0534.88 ▼4.4932.86 ▼0.75
Add New Post /wp-admin/post-new.php1,524 ▼2423.33 ▲5.30596.34 ▼21.8753.08 ▼0.34
Media Library /wp-admin/upload.php1,393 ▲54.24 ▲0.0692.97 ▼13.6844.05 ▼4.04
Comment Form WP /wp-admin/tools.php?page=comment-form-wp1,3971.9931.8887.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/comment-form-wp/form-backend/commentformwp-backend.php
    • > /wp-content/plugins/comment-form-wp/comment-form-wp.php
    • > /wp-content/plugins/comment-form-wp/form-frontend/commentformwp-frontend.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Screenshot-1.png), #2 (Screenshot-2.png), #3 (Screenshot-3.png), #4 (Screenshot-4.png), #5 (Screenshot-5.png), #6 (Screenshot-6.png), #7 (Screenshot-7.png), #8 (Screenshot-8.png), #9 (Screenshot-9.png), #10 (Screenshot-10.png)
The official readme.txt is a good inspiration

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

The principal PHP file in "Comment Form WP" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected898 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS1108456
PHP57785442

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/website.png1.93KB1.80KB▼ 7.07%
img/commentformwp-linkedin.png0.83KB0.78KB▼ 5.80%
img/commentformwp.png0.35KB0.32KB▼ 7.56%
img/commentformwp-instagram.png3.41KB1.95KB▼ 42.91%
img/commentformwp-facebook.png0.87KB0.84KB▼ 3.60%