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.03MB] [CPU: ▼2.42ms] Passed 4 tests
Analyzing server-side resources used by Contact Form 7 Captcha
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.11 ▼6.25 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.01 ▼6.59 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.56 ▲0.23 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.83 ▲2.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.86 ▲3.44 |
CF7 Simple Recaptcha /wp-admin/options-general.php?page=cf7sr_edit | 3.22 | 29.27 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Contact Form 7 Captcha: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.29 ▼0.10 | 1.71 ▼0.13 | 41.85 ▼1.51 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.04 | 84.99 ▼14.64 | 44.25 ▼9.82 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▲0.03 | 33.96 ▼1.33 | 33.63 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.14 ▲0.00 | 625.95 ▼45.08 | 57.10 ▼7.90 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.23 ▲0.12 | 94.60 ▼0.91 | 40.91 ▼5.20 |
CF7 Simple Recaptcha /wp-admin/options-general.php?page=cf7sr_edit | 765 | 1.99 | 23.64 | 22.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/contact-form-7-simple-recaptcha/contact-form-7-simple-recaptcha.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: contact form 7, recaptcha, captcha, new recaptcha, no captcha
contact-form-7-simple-recaptcha/contact-form-7-simple-recaptcha.php Passed 13 tests
"Contact Form 7 Captcha" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Add No CAPTCHA reCAPTCHA to Contact Form 7 using [cf7sr-simple-recaptcha] shortcode
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin169 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 6 | 169 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
donate.png | 5.40KB | 1.93KB | ▼ 64.28% |