Benchmarks
Plugin footprint 83% from 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: ▼2.25ms] Passed 4 tests
This is a short check of server-side resources used by Script Filter for Contact Form 7 Google reCAPTCHA
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.94 ▲1.15 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.08 ▲1.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.53 ▼0.55 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.83 ▼10.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.88 ▲4.30 |
reCAPTCHA Filter Settings /wp-admin/admin.php?page=sfcf7r | 3.00 | 26.02 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Script Filter for Contact Form 7 Google reCAPTCHA
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.19 ▼0.37 | 1.84 ▼0.41 | 43.44 ▼1.55 |
Dashboard /wp-admin | 2,192 ▲15 | 5.57 ▲0.01 | 84.56 ▼7.17 | 42.10 ▼1.04 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.10 ▲0.14 | 34.72 ▼2.08 | 33.31 ▼2.99 |
Add New Post /wp-admin/post-new.php | 1,532 ▼6 | 23.30 ▼0.06 | 673.39 ▼20.77 | 63.90 ▲6.22 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.23 ▼0.02 | 101.08 ▼2.58 | 46.18 ▲0.66 |
reCAPTCHA Filter Settings /wp-admin/admin.php?page=sfcf7r | 28 | 0.44 | 0.08 | 4.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/script-filter-for-contact-form-7-google-recaptcha/script-filter-for-cf7-recaptcha.php:34
- > PHP Fatal error
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/admin.php?page=sfcf7r
- > Network (severe)
wp-admin/admin.php?page=sfcf7r - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: recaptcha, contact form 7
script-filter-for-contact-form-7-google-recaptcha/script-filter-for-cf7-recaptcha.php 85% from 13 tests
"Script Filter for Contact Form 7 Google reCAPTCHA" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("script-filter-for-contact-form-7-google-recaptcha.php" instead of "script-filter-for-cf7-recaptcha.php")
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
Success! There were no dangerous files found in this plugin81 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 11 | 81 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin