Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.24ms] Passed 4 tests
This is a short check of server-side resources used by ReCaptcha v2 for Contact Form 7
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 39.36 ▼1.87 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.71 ▲0.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.26 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.12 ▼17.05 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.70 ▼2.60 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ReCaptcha v2 for Contact Form 7
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.17 | 1.68 ▼0.19 | 47.71 ▲4.42 |
Dashboard /wp-admin | 2,203 ▲12 | 5.86 ▼0.03 | 94.92 ▼7.73 | 35.91 ▼2.31 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.01 | 47.10 ▲7.28 | 37.80 ▲3.44 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.29 ▼0.04 | 591.54 ▼24.77 | 54.50 ▼12.57 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.17 ▼0.03 | 96.94 ▼5.64 | 42.88 ▼1.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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 no errors were found, 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 take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpcf7-recaptcha/recaptcha-v2.php
- > /wp-content/plugins/wpcf7-recaptcha/flamingo.php
- > /wp-content/plugins/wpcf7-recaptcha/wpcf7-recaptcha.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
4 plugin tags: recaptcha, contact-form-7-recaptcha, spam, contact-form-7
wpcf7-recaptcha/wpcf7-recaptcha.php Passed 13 tests
This is the main PHP file of "ReCaptcha v2 for Contact Form 7" version 1.4.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
ReCaptcha v2 Fix for Contact Form 7 5.1 and later.
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
There were no executable files found in this plugin622 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 263 | 333 | 577 |
JavaScript | 1 | 12 | 8 | 45 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 4 | 21.05% |
▷ Public methods | 13 | 68.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 31.58% |
Functions | 16 | |
▷ Named functions | 16 | 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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/facebook-like.png | 44.25KB | 19.51KB | ▼ 55.91% |