Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.35ms] Passed 4 tests
Analyzing server-side resources used by Comment form validation and Customization
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.33 ▼10.72 |
Dashboard /wp-admin | 3.39 ▲0.08 | 62.35 ▲7.92 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.17 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 98.58 ▲2.47 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.97 ▲1.90 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
cfv-comment-post-label |
cfv-enable-comment-validation |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
cfv-prevenr-die |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Comment form validation and Customization
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲132 | 13.56 ▼0.88 | 9.04 ▲7.09 | 43.58 ▼1.49 |
Dashboard /wp-admin | 2,238 ▲32 | 4.86 ▼0.05 | 114.26 ▲4.00 | 45.91 ▲6.13 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.00 ▼0.04 | 33.78 ▼4.75 | 34.65 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,557 ▲12 | 23.09 ▼0.08 | 666.54 ▲6.99 | 60.55 ▲9.50 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.21 ▼0.03 | 96.39 ▼19.03 | 43.37 ▼6.21 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/comment-form-validation-and-customization/public/partials/cv-comment-form-validation-public-display.php
- > /wp-content/plugins/comment-form-validation-and-customization/admin/partials/cv-comment-form-validation-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
4 plugin tags: customization, comments, comment form, validation
comment-form-validation-and-customization/cv-comment-form-validation.php 92% from 13 tests
This is the main PHP file of "Comment form validation and Customization" 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
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("comment-form-validation-and-customization.php" instead of "cv-comment-form-validation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected361 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 134 | 581 | 312 |
JavaScript | 2 | 2 | 27 | 38 |
CSS | 2 | 3 | 8 | 11 |
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 code | 0.25 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected