Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/wp-comment-validation/wp-comment-validation.php+13
Use of undefined constant wcv_enable - assumed 'wcv_enable' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.72ms] Passed 4 tests
Analyzing server-side resources used by wp comment validation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.08 ▼1.66 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.28 ▼4.58 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.43 ▼4.81 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.44 ▼7.84 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.32 ▲0.73 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
wcv_enable |
db_upgraded |
widget_theysaidso_widget |
wcv_website_enable |
wcv_comment_enable |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
wcv_name_enable |
... |
Browser metrics Passed 4 tests
Checking browser requirements for wp comment validation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲131 | 13.46 ▼0.92 | 8.94 ▲7.11 | 40.42 ▼11.60 |
Dashboard /wp-admin | 2,210 ▲33 | 5.67 ▼0.02 | 86.83 ▼5.16 | 91.15 ▲43.99 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.02 ▲0.03 | 38.52 ▼2.22 | 37.17 ▼1.03 |
Add New Post /wp-admin/post-new.php | 1,692 ▲166 | 22.65 ▲5.14 | 734.07 ▲31.20 | 40.05 ▼16.30 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.21 ▲0.03 | 102.08 ▼31.55 | 79.53 ▲15.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-comment-validation/wp-comment-validation.php:19
- > PHP Fatal error
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 Passed 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
2 plugin tags: comments validation, wordpress comment validation plugin
wp-comment-validation/wp-comment-validation.php Passed 13 tests
"wp comment validation" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
comment form validation Component for WordPress
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
Success! There were no dangerous files found in this plugin262 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 19 | 143 |
JavaScript | 1 | 0 | 4 | 89 |
CSS | 1 | 5 | 4 | 30 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-2.png | 50.63KB | 0.00KB | ▼ 100.00% |
images/icon.png | 3.46KB | 0.64KB | ▼ 81.51% |
screenshot-1.png | 30.81KB | 10.06KB | ▼ 67.33% |