84% wp-advance-comment-form-validation

Code Review | WP Advance Comment Form Validation

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

About plugin

  • Plugin page: wp-advance-commen...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 4, 2018
  • Latest release: Sep 5, 2018
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: rahulsgurjar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 485 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by WP Advance Comment Form Validation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.46 ▼1.33
Dashboard /wp-admin3.31 ▲0.0147.34 ▼0.66
Posts /wp-admin/edit.php3.36 ▲0.0045.95 ▲1.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.01 ▼6.65
Media Library /wp-admin/upload.php3.23 ▲0.0035.43 ▲1.63

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Advance Comment Form Validation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲16513.94 ▼0.437.93 ▲6.1039.18 ▼6.53
Dashboard /wp-admin2,209 ▲205.93 ▲1.01106.93 ▼4.0339.91 ▼2.13
Posts /wp-admin/edit.php2,098 ▲92.09 ▲0.0839.84 ▲3.2235.56 ▲2.32
Add New Post /wp-admin/post-new.php1,520 ▼2217.76 ▼0.40658.69 ▲46.4951.68 ▲0.68
Media Library /wp-admin/upload.php1,391 ▲34.32 ▼0.0199.11 ▼9.0341.21 ▲0.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-advance-comment-form-validation/wp-advance-comment-form-validation.php:23

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Please add an image for screenshot #1 (screenshot.jpg)
The official readme.txt might help

wp-advance-comment-form-validation/wp-advance-comment-form-validation.php Passed 13 tests

The principal PHP file in "WP Advance Comment Form Validation" v. 1.0 is loaded by WordPress automatically on each request
108 characters long description:
This plugin is used for wordpress comments validation to the comment form. only need to activate the plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,177 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22241621,164
PHP15911
CSS1102

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin