Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▲2.95ms] Passed 4 tests
An overview of server-side resources used by Friendly Captcha for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 45.24 ▲9.83 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.96 ▼2.87 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.84 ▲9.26 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.99 ▲0.65 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 42.17 ▲4.77 |
Friendly Captcha /wp-admin/options-general.php?page=friendly_captcha_admin | 3.28 | 37.53 |
Server storage [IO: ▲0.23MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Friendly Captcha for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲41 | 14.29 ▼0.04 | 1.95 ▼0.11 | 46.14 ▼0.89 |
Dashboard /wp-admin | 2,219 ▲45 | 5.61 ▲0.02 | 92.73 ▼10.68 | 41.45 ▼5.07 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.03 ▲0.01 | 39.96 ▲5.28 | 38.47 ▲1.94 |
Add New Post /wp-admin/post-new.php | 1,546 ▲16 | 23.24 ▲0.06 | 679.22 ▲2.95 | 47.61 ▼5.96 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.24 ▲0.04 | 95.27 ▼7.23 | 42.54 ▼1.55 |
Friendly Captcha /wp-admin/options-general.php?page=friendly_captcha_admin | 1,430 | 2.17 | 25.45 | 52.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 32× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friendly-captcha/modules/wordpress/wordpress_comments.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friendly-captcha/modules/wordpress/wordpress_reset_password.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friendly-captcha/modules/fluentform/fluentform.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friendly-captcha/modules/wpum/wpum_login.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/friendly-captcha/modules/profile-builder/profile_builder_login.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/friendly-captcha/modules/profile-builder/profile_builder_register.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friendly-captcha/modules/woocommerce/woocommerce_register.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/friendly-captcha/modules/woocommerce/woocommerce_checkout.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/friendly-captcha/public/widgets.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/friendly-captcha/modules/wpum/wpum_validate.php:6
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: elementor, block spam, captcha, antispam, recaptcha...
friendly-captcha/friendly-captcha.php 85% from 13 tests
"Friendly Captcha for WordPress" version 1.12.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,553 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 605 | 220 | 2,417 |
JavaScript | 6 | 17 | 9 | 123 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 5 | 7.46% |
▷ Public methods | 65 | 97.01% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.99% |
Functions | 76 | |
▷ Named functions | 72 | 94.74% |
▷ Anonymous functions | 4 | 5.26% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/preview.png | 3.40KB | 2.30KB | ▼ 32.17% |