Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼143.74ms] Passed 4 tests
This is a short check of server-side resources used by FormSpammerTrap for Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 36.28 ▲1.30 |
Dashboard /wp-admin | 3.06 ▲0.00 | 42.56 ▼1.96 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 40.98 ▲0.27 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 93.11 ▼573.66 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 34.05 ▲0.41 |
FormSpammerTrap for Contact Form 7 Info/Usage /wp-admin/options-general.php?page=fst4cf7_settings | 2.74 | 22.61 |
Server storage [IO: ▲1.72MB] [DB: ▲0.62MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for FormSpammerTrap for Contact Form 7
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.88 ▲0.38 | 8.12 ▼1.61 | 54.33 ▲6.97 |
Dashboard /wp-admin | 2,964 ▲30 | 5.93 ▲0.01 | 135.88 ▼14.52 | 118.30 ▲8.85 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 70.43 ▼0.53 | 92.64 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,683 ▲11 | 18.78 ▼0.32 | 377.21 ▼33.42 | 112.92 ▼17.69 |
Media Library /wp-admin/upload.php | 1,804 ▼3 | 5.04 ▲0.03 | 140.89 ▼8.17 | 124.71 ▲0.11 |
FormSpammerTrap for Contact Form 7 Info/Usage /wp-admin/options-general.php?page=fst4cf7_settings | 28 | 0.90 | 0.11 | 9.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.62MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/formspammertrap-for-contact-form-7/backups/formspammertrap-for-contact-form-7.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/formspammertrap-for-contact-form-7/formspammertrap-for-contact-form-7.php:46
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=fst4cf7_settings
- > Network (severe)
wp-admin/options-general.php?page=fst4cf7_settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
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
1 plugin tags: formspammertrap for contact form 7
formspammertrap-for-contact-form-7/formspammertrap-for-contact-form-7.php Passed 13 tests
The main file in "FormSpammerTrap for Contact Form 7" v. 1.02 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
Adds effective form spam bot blocking to Contact Form 7 forms via a simple shortcodes added to your Contact Form 7 form.
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
No dangerous file extensions were detected415 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 70 | 221 | 393 |
XML | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 36 | |
▷ Named functions | 36 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.84MB with 0.75MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
backups/assets/icon-256x256.png | 101.07KB | 8.70KB | ▼ 91.39% |
backups/assets/banner-772x250.png | 251.36KB | 32.84KB | ▼ 86.94% |
assets/banner-772x250.png | 251.36KB | 32.84KB | ▼ 86.94% |
assets/icon-256x256.png | 101.07KB | 8.70KB | ▼ 91.39% |
assets/icon-128x128.png | 76.21KB | 5.16KB | ▼ 93.23% |