Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.34ms] Passed 4 tests
Analyzing server-side resources used by comment validation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 34.76 ▼7.22 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.79 ▼3.26 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.36 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.94 ▼6.80 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.70 ▼0.65 |
Comment validation computy /wp-admin/options-general.php?page=cv-plugin-options | 3.20 | 31.23 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for comment validation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.22 ▼1.14 | 2.14 ▲0.31 | 46.97 ▼1.45 |
Dashboard /wp-admin | 2,212 ▲21 | 4.87 ▼0.98 | 99.41 ▲2.12 | 39.08 ▼5.18 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.02 | 39.49 ▲4.32 | 35.31 ▲4.51 |
Add New Post /wp-admin/post-new.php | 1,519 ▼17 | 17.81 ▼5.37 | 681.57 ▲8.32 | 54.81 ▲5.59 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.23 ▲0.04 | 94.26 ▼10.30 | 40.73 ▼7.59 |
Comment validation computy /wp-admin/options-general.php?page=cv-plugin-options | 861 | 2.13 | 23.64 | 25.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (This is a highlighted code.)
comment-validation-computy/comment-validation.php 92% from 13 tests
"comment validation" version 1.6.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("comment-validation-computy.php" instead of "comment-validation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin183 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 13 | 105 |
JavaScript | 2 | 1 | 7 | 31 |
CSS | 2 | 1 | 0 | 28 |
SVG | 1 | 0 | 1 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/1.png | 7.01KB | 7.28KB | 0.00% |
screenshot-1.png | 7.01KB | 7.28KB | 0.00% |