Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼293.74ms] Passed 4 tests
Analyzing 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.56 ▲0.01 | 57.64 ▲3.37 |
Dashboard /wp-admin | 3.45 ▲0.01 | 34.01 ▼1.94 |
Posts /wp-admin/edit.php | 3.68 ▲0.01 | 39.66 ▼2.33 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.08 | 92.67 ▼1,172.39 |
Media Library /wp-admin/upload.php | 3.33 ▲0.01 | 25.93 ▲1.70 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Fields: reCAPTCHA Field: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲51 | 16.21 ▲0.58 | 5.97 ▼0.84 | 2.64 ▲0.65 |
Dashboard /wp-admin | 2,892 ▲38 | 6.11 ▼0.04 | 118.12 ▼17.46 | 154.22 ▼12.31 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.23 ▼0.01 | 63.05 ▼5.47 | 139.97 ▼9.56 |
Add New Post /wp-admin/post-new.php | 1,692 ▲31 | 20.74 ▲4.15 | 443.27 ▲23.11 | 165.34 ▲10.76 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.55 ▲0.04 | 140.74 ▲3.34 | 186.35 ▼2.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > 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: 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_action() in wp-content/plugins/advanced-custom-fields-recaptcha-field/includes/settings-page.php:29
- > 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/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 add_filter() in wp-content/plugins/advanced-custom-fields-recaptcha-field/includes/script-loader.php:39
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: captcha, acf, recaptcha, field, frontend...
advanced-custom-fields-recaptcha-field/acf-recaptcha.php 85% from 13 tests
"Advanced Custom Fields: reCAPTCHA Field" version 1.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-custom-fields-recaptcha-field.php" instead of "acf-recaptcha.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous 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
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin