Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.88ms] Passed 4 tests
Analyzing server-side resources used by Spam Trap for Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.57 ▼0.32 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.04 ▼14.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.30 ▼4.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.80 ▼12.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.49 ▲3.23 |
Spam Trap for Contact Form 7 /wp-admin/options-general.php?page=spam_trap_for_contact_form_7 | 3.00 | 23.15 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Spam Trap for Contact Form 7: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.75 ▲0.37 | 1.92 ▲0.24 | 43.45 ▲2.05 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲0.10 | 111.55 ▲9.16 | 41.69 ▼0.31 |
Posts /wp-admin/edit.php | 2,071 ▼18 | 2.02 ▼0.01 | 34.15 ▼4.00 | 33.82 ▼0.74 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 17.68 ▼5.68 | 683.92 ▲2.83 | 53.06 ▼3.68 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▼0.01 | 94.28 ▼12.81 | 41.39 ▼6.80 |
Spam Trap for Contact Form 7 /wp-admin/options-general.php?page=spam_trap_for_contact_form_7 | 28 | 0.44 | 0.08 | 3.72 |
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
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=spam_trap_for_contact_form_7
- > Network (severe)
wp-admin/options-general.php?page=spam_trap_for_contact_form_7 - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: comment spam, anti spam, contact form 7 anti spam, contact form 7, spam
spam-trap-for-contact-form-7/spam-trap-for-contact-form-7.php Passed 13 tests
The entry point to "Spam Trap for Contact Form 7" version 1.1.1 is a PHP file that has certain tags in its header comment area
57 characters long description:
This plugin adds spam checks to catch contact form 7 spam
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
Good job! No executable or dangerous file extensions detected368 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 198 | 94 | 368 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin