90% blog-comment-form-jquery-validation

Code Review | Blog Comment Form jQuery Validation

WordPress plugin Blog Comment Form jQuery Validation scored90%from 54 tests.

About plugin

  • Plugin page: blog-comment-form...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 6.3.1
  • First release: Sep 28, 2021
  • Latest release: Sep 28, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: hiteshvpra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Blog Comment Form jQuery Validation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.80 ▼0.02
Dashboard /wp-admin3.31 ▲0.0148.05 ▼0.93
Posts /wp-admin/edit.php3.36 ▲0.0148.06 ▲0.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.56 ▼23.75
Media Library /wp-admin/upload.php3.23 ▲0.0135.36 ▲1.62

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Blog Comment Form jQuery Validation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.44 ▲0.042.08 ▲0.3645.36 ▲5.97
Dashboard /wp-admin2,209 ▲245.90 ▲0.9895.39 ▼18.6140.81 ▼3.50
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0139.14 ▲3.8234.91 ▲3.16
Add New Post /wp-admin/post-new.php1,528 ▲1423.27 ▲5.72650.80 ▲11.8656.31 ▲10.13
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.01100.24 ▼1.2444.52 ▲0.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: blog comment form jquery validation, jquery form validation, blog details page comment form validation

blog-comment-form-jquery-validation/blog-comment-form-jquery-validation.php Passed 13 tests

This is the main PHP file of "Blog Comment Form jQuery Validation" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
This plugin used to blog comment form jquery validation

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
Everything looks great! No dangerous files found in this plugin144 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1176106
PHP3133130
CSS1008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected