Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.07ms] Passed 4 tests
This is a short check of server-side resources used by WP Contact Form7 Email Spam Blocker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.68 ▼6.66 |
Dashboard /wp-admin | 3.37 ▲0.03 | 43.91 ▼13.83 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.73 ▲4.25 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 81.63 ▼8.79 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 36.63 ▲0.99 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Contact Form7 Email Spam Blocker: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.57 ▼0.68 | 4.89 ▲2.93 | 38.07 ▼0.41 |
Dashboard /wp-admin | 2,210 ▲25 | 4.82 ▼1.09 | 105.32 ▼1.75 | 40.15 ▼4.89 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.03 | 39.62 ▲2.07 | 34.79 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 18.31 ▲0.57 | 633.70 ▲13.65 | 57.19 ▼8.48 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.29 ▲0.08 | 94.90 ▼4.48 | 42.18 ▼0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-contact-form7-email-spam-blocker/admin/partials/contact-form-7-email-spam-blocker-admin-display.php
- > /wp-content/plugins/wp-contact-form7-email-spam-blocker/public/partials/contact-form-7-email-spam-blocker-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-contact-form7-email-spam-blocker/contact-form-7-email-spam-blocker.php 85% from 13 tests
The entry point to "WP Contact Form7 Email Spam Blocker" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-contact-form7-email-spam-blocker.php" instead of "contact-form-7-email-spam-blocker.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin253 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 128 | 547 | 244 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 1 | 8 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
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 images were found in this plugin