73% comment-form-shortcode

Code Review | Comment Form Shortcode

WordPress plugin Comment Form Shortcode scored73%from 54 tests.

About plugin

  • Plugin page: comment-form-shor...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2014
  • Latest release: Mar 4, 2014
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: bhagirath25 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

400+ active /8,437 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼16.83ms] Passed 4 tests

This is a short check of server-side resources used by Comment Form Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.22 ▼3.83
Dashboard /wp-admin3.34 ▼0.0044.12 ▼13.84
Posts /wp-admin/edit.php3.39 ▲0.0445.42 ▼1.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.20 ▼47.97
Media Library /wp-admin/upload.php3.26 ▲0.0434.80 ▲0.49
Comment Form Shortcode /wp-admin/options-general.php?page=comment-form-shortcode3.2330.25

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Comment Form Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.72 ▼0.671.70 ▼0.0640.50 ▼0.69
Dashboard /wp-admin2,210 ▲225.79 ▲0.9595.30 ▼5.6037.87 ▼12.61
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0639.45 ▲0.7034.29 ▲0.54
Add New Post /wp-admin/post-new.php1,550 ▲1718.37 ▼4.91591.05 ▼76.0567.91 ▲8.54
Media Library /wp-admin/upload.php1,389 ▲74.21 ▼0.0092.67 ▼5.2442.75 ▼3.21
Comment Form Shortcode /wp-admin/options-general.php?page=comment-form-shortcode1,1294.1466.2897.00

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/comment-form-shortcode/class/our_plugins.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comment-form-shortcode/comment-form-shortcode.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=comment-form-shortcode
    • > Network (severe)
    wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
    • > GET request to /wp-admin/options-general.php?page=comment-form-shortcode
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/options-general.php?page=comment-form-shortcode
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/options-general.php?page=comment-form-shortcode
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: form, shortcode, comment

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

The main PHP script in "Comment Form Shortcode" version 1.3 is automatically included on every request by WordPress
93 characters long description:
Comment Form Shortcode allow you to show comment inside post,page and widget using [comment].

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
There were no executable files found in this plugin8,236 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS531296,214
JavaScript35882791,567
SVG100229
PHP25913226

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin