84% lh-comment-form-shortcode

Code Review | LH Comment Form Shortcode and Block

WordPress plugin LH Comment Form Shortcode and Block scored84%from 54 tests.

About plugin

  • Plugin page: lh-comment-form-s...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Aug 20, 2019
  • Latest release: Aug 8, 2022
  • Number of updates: 4
  • Update frequency: every 271.3 days
  • Top authors: shawfactor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.69ms] Passed 4 tests

This is a short check of server-side resources used by LH Comment Form Shortcode and Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.44 ▼3.91
Dashboard /wp-admin3.31 ▼0.0345.16 ▼17.30
Posts /wp-admin/edit.php3.36 ▲0.0143.46 ▼3.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.05 ▼18.37
Media Library /wp-admin/upload.php3.24 ▲0.0135.37 ▼0.04

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

LH Comment Form Shortcode and Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4614.72 ▲0.461.73 ▲0.2039.61 ▲1.36
Dashboard /wp-admin2,189 ▲115.54 ▼0.1081.14 ▼21.8637.22 ▼7.57
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0635.88 ▲1.1031.79 ▼7.55
Add New Post /wp-admin/post-new.php1,529 ▲323.39 ▲0.52682.41 ▲22.5252.46 ▼2.77
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.01106.65 ▲4.5450.53 ▲7.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-comment-form-shortcode/lh-comment-form-shortcode.php:458

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
5 plugin tags: comment, shortcode, include, post_content, content

lh-comment-form-shortcode/lh-comment-form-shortcode.php 92% from 13 tests

The entry point to "LH Comment Form Shortcode and Block" version 1.01 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected230 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP215190230

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin