Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.18ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Fields: reCAPTCHA Field
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.36 ▼1.12 |
Dashboard /wp-admin | 3.31 ▼0.04 | 50.67 ▼12.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.81 ▼3.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.59 ▼23.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.81 ▼4.85 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Custom Fields: reCAPTCHA Field
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.23 ▼0.12 | 1.99 ▲0.28 | 43.52 ▼0.05 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▲0.03 | 90.87 ▼2.88 | 42.27 ▼2.16 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▼0.00 | 34.75 ▼4.73 | 34.93 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.05 ▲0.04 | 686.20 ▼3.34 | 66.61 ▲5.35 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.09 | 94.26 ▼11.35 | 47.23 ▲0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/advanced-custom-fields-recaptcha-field/lib/ReCaptcha/RequestMethod/Curl.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-recaptcha-field/includes/settings-page.php:29
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/advanced-custom-fields-recaptcha-field/includes/classes/WPRemoteRequestMethod.php:11
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-recaptcha-field/acf-recaptcha-v5.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/advanced-custom-fields-recaptcha-field/acf-recaptcha.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/advanced-custom-fields-recaptcha-field/lib/ReCaptcha/RequestMethod/Post.php:35
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/advanced-custom-fields-recaptcha-field/lib/ReCaptcha/RequestMethod/SocketPost.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-custom-fields-recaptcha-field/includes/script-loader.php:39
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: field, form, recaptcha, captcha, acf...
advanced-custom-fields-recaptcha-field/acf-recaptcha.php 85% from 13 tests
The primary PHP file in "Advanced Custom Fields: reCAPTCHA Field" version 1.3.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-fields-recaptcha-field.php" instead of "acf-recaptcha.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin826 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 224 | 686 | 686 |
CSS | 3 | 13 | 0 | 74 |
JavaScript | 2 | 21 | 57 | 53 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 1 | 3.12% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 9 | |
▷ Global constants | 1 | 11.11% |
▷ Class constants | 8 | 88.89% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin