Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.91ms] Passed 4 tests
A check of server-side resources used by Contact Form 7 Image CAPTCHA, WPForms Image CAPTCHA, Form Spam Image CAPTCHA, GDPR
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.95 ▲1.81 |
Dashboard /wp-admin | 3.41 ▲0.06 | 50.19 ▼14.47 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.15 ▼1.18 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.88 ▲4.21 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.05 ▲2.20 |
Server storage [IO: ▲1.21MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 53 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ai1ic |
New WordPress options |
---|
widget_recent-posts |
cf7ic_timestamp |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form 7 Image CAPTCHA, WPForms Image CAPTCHA, Form Spam Image CAPTCHA, GDPR
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲44 | 14.23 ▼0.11 | 1.72 ▲0.06 | 43.51 ▲0.62 |
Dashboard /wp-admin | 2,211 ▲37 | 5.63 ▲0.08 | 89.52 ▼10.65 | 38.09 ▼3.76 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▼0.01 | 34.68 ▼5.90 | 34.51 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.30 ▲0.05 | 622.78 ▼74.55 | 51.77 ▼8.35 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.19 ▲0.02 | 102.64 ▲2.18 | 39.81 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/contact-form-7-image-captcha/cf7-image-captcha.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-image-captcha/includes/module-cf7.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-form-7-image-captcha/includes/module-wpforms.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gdpr, spam, wpforms, contact form 7, captcha
contact-form-7-image-captcha/cf7-image-captcha.php 92% from 13 tests
The principal PHP file in "Contact Form 7 Image CAPTCHA, WPForms Image CAPTCHA, Form Spam Image CAPTCHA, GDPR" v. 3.3.12 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("contact-form-7-image-captcha.php" instead of "cf7-image-captcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,522 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 3 | 3 | 3,118 |
PO File | 13 | 247 | 409 | 703 |
PHP | 5 | 78 | 89 | 450 |
CSS | 3 | 51 | 20 | 251 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 25 | |
▷ Named functions | 25 | 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 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
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pro-new-icons.png | 5.15KB | 2.81KB | ▼ 45.33% |
assets/pro-language.png | 3.32KB | 1.96KB | ▼ 40.84% |
assets/pro-color.png | 5.15KB | 2.81KB | ▼ 45.33% |
assets/pro-new-colors.png | 6.56KB | 3.12KB | ▼ 52.42% |
assets/example-cf7.png | 11.95KB | 5.49KB | ▼ 54.05% |