90% instant-comment-validation

Code Review | Instant Comment Validation

WordPress plugin Instant Comment Validation scored90%from 54 tests.

About plugin

  • Plugin page: instant-comment-v...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.4
  • WordPress version: 6.3.1
  • First release: Jul 3, 2014
  • Latest release: Dec 16, 2015
  • Number of updates: 15
  • Update frequency: every 35.5 days
  • Top authors: mkrdip (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /6,945 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
Install script ran successfully

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

This is a short check of server-side resources used by Instant Comment Validation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.51 ▼5.91
Dashboard /wp-admin3.31 ▲0.0041.88 ▼8.54
Posts /wp-admin/edit.php3.36 ▲0.0045.60 ▲0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.06 ▼26.55
Media Library /wp-admin/upload.php3.23 ▲0.0035.45 ▲2.63

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Instant Comment Validation: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.65 ▼0.724.56 ▲2.7742.37 ▼0.98
Dashboard /wp-admin2,206 ▲245.91 ▲0.0698.97 ▼13.4739.50 ▼3.21
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0238.63 ▲3.2433.91 ▼1.90
Add New Post /wp-admin/post-new.php1,546 ▲418.24 ▼0.06609.15 ▼13.8860.73 ▼1.99
Media Library /wp-admin/upload.php1,388 ▼34.28 ▼0.0095.03 ▼6.1543.32 ▼0.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

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: comment validation, comment validation plugin, wordpress comment validation plugin

instant-comment-validation/instant-comment-validation.php Passed 13 tests

The primary PHP file in "Instant Comment Validation" version 1.1.0 is used by WordPress to initiate all plugin functionality
99 characters long description:
Add a instant validator for WordPress comment form, instead of sending users to default error page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected51 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript211131
PHP141211
CSS1019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
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%
Functions1
▷ Named functions1100.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