Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.81ms] Passed 4 tests
This is a short check of server-side resources used by WP Forms Puzzle Captcha
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.60 ▼4.02 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.62 ▼6.86 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 51.47 ▲2.98 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.82 ▼2.90 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.90 ▼1.46 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
WFPC_check_welcome |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Forms Puzzle Captcha
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲119 | 13.25 ▼1.13 | 2.09 ▲0.05 | 41.60 ▼2.36 |
Dashboard /wp-admin | 2,226 ▲38 | 4.87 ▼1.02 | 113.74 ▲0.72 | 40.84 ▼8.90 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.02 ▲0.01 | 38.87 ▲1.59 | 35.08 ▲0.57 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 17.52 ▼0.02 | 601.45 ▼88.10 | 61.79 ▲6.42 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.32 ▲0.11 | 94.00 ▼14.48 | 41.07 ▼7.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-forms-puzzle-captcha/includes/admin/tabs/wfpc-login.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-forms-puzzle-captcha/includes/admin/tabs/wfpc-lost-password.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-forms-puzzle-captcha/includes/admin/tabs/wfpc-register.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-forms-puzzle-captcha/includes/admin/tabs/wfpc-cf7.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-forms-puzzle-captcha/includes/admin/tabs/wfpc-intro.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-forms-puzzle-captcha/includes/admin/tabs/wfpc-comment.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-forms-puzzle-captcha/includes/functions.php:190
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: anti-spam security, contact form 7 puzzle captcha field, comment form, comment captcha, antispam...
wp-forms-puzzle-captcha/wp-forms-puzzle-captcha.php 77% from 13 tests
The main PHP script in "WP Forms Puzzle Captcha" version 4.1 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)
- Domain Path: The domain path folder does not exist ("/languages/")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin1,249 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 88 | 173 | 685 |
JavaScript | 3 | 30 | 4 | 337 |
CSS | 2 | 38 | 0 | 227 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 5 | 55.56% |
▷ Anonymous functions | 4 | 44.44% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
5 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Pic0.png | 1.31KB | 1.17KB | ▼ 11.24% |
assets/images/Pic1.png | 1.33KB | 1.17KB | ▼ 12.34% |
assets/images/Pic2.png | 1.33KB | 1.17KB | ▼ 12.34% |
assets/screen-shots/add-puzzle-captcha-to-cf7-1.png | 36.99KB | 15.43KB | ▼ 58.27% |
assets/screen-shots/add-puzzle-captcha-to-cf7-2.png | 30.89KB | 12.51KB | ▼ 59.48% |