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
Installer ran successfully
Server metrics [RAM: ▲1.08MB] [CPU: ▼0.53ms] Passed 4 tests
This is a short check of server-side resources used by hCaptcha for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.56 ▲1.10 | 52.35 ▲7.61 |
Dashboard /wp-admin | 4.38 ▲1.04 | 57.32 ▼10.00 |
Posts /wp-admin/edit.php | 4.50 ▲1.14 | 65.21 ▲12.85 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 90.79 ▼11.19 |
Media Library /wp-admin/upload.php | 4.31 ▲1.08 | 46.68 ▲11.46 |
hCaptcha /wp-admin/options-general.php?page=hcaptcha | 4.35 | 42.44 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 272 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
hcaptcha_versions |
hcaptcha_settings |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for hCaptcha for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲84 | 14.32 ▲0.01 | 2.11 ▼0.04 | 43.88 ▼0.19 |
Dashboard /wp-admin | 2,208 ▲34 | 5.66 ▲0.02 | 91.66 ▼8.65 | 38.67 ▼8.07 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▲0.05 | 36.57 ▼2.21 | 32.22 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 22.95 ▼0.35 | 667.27 ▼31.15 | 58.77 ▼0.48 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.22 ▲0.02 | 100.83 ▼0.37 | 41.57 ▼5.07 |
hCaptcha /wp-admin/options-general.php?page=hcaptcha | 1,876 | 2.49 | 45.94 | 46.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- hcaptcha_settings
- hcaptcha_versions
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/includes/functions.php:87
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\UM\\Base' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/UM/Register.php:13
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\UM\\Base' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/UM/LostPassword.php:13
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\BBPress\\Base' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/BBPress/Reply.php:13
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\Abstracts\\LoginBase' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/Divi/Login.php:18
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\Asgaros\\Base' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/Asgaros/Form.php:14
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\Abstracts\\LoginBase' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/UsersWP/Login.php:17
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\Abstracts\\LoginBase' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/PaidMembershipsPro/Login.php:18
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\WPForo\\Base' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/WPForo/Reply.php:13
- > PHP Fatal error
Uncaught Error: Class 'HCaptcha\\Abstracts\\LoginBase' not found in wp-content/plugins/hcaptcha-for-forms-and-more/src/php/ProfileBuilder/Login.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=hcaptcha
- > Console-api (severe) in unknown
https://js.hcaptcha.com/1/api.js?onload=hCaptchaOnLoad&render=explicit 2:288028 "Missing sitekey - https://hcaptcha.com/docs/configuration#jsapi"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: hcaptcha, spam, recaptcha, abuse, captcha
hcaptcha-for-forms-and-more/hcaptcha.php 85% from 13 tests
The main PHP file in "hCaptcha for WordPress" ver. 3.4.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hcaptcha-for-forms-and-more.php" instead of "hcaptcha.php")
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0.0" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected12,244 lines of code in 218 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 129 | 2,739 | 6,706 | 10,054 |
JavaScript | 61 | 317 | 154 | 1,196 |
CSS | 16 | 121 | 5 | 637 |
SVG | 9 | 7 | 2 | 207 |
PO File | 1 | 49 | 52 | 140 |
HTML | 1 | 1 | 0 | 5 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 60 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 120 | |
▷ Abstract classes | 15 | 12.50% |
▷ Concrete classes | 105 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 668 | |
▷ Static methods | 43 | 6.44% |
▷ Public methods | 465 | 69.61% |
▷ Protected methods | 99 | 14.82% |
▷ Private methods | 104 | 15.57% |
Functions | 35 | |
▷ Named functions | 15 | 42.86% |
▷ Anonymous functions | 20 | 57.14% |
Constants | 244 | |
▷ Global constants | 1 | 0.41% |
▷ Class constants | 243 | 99.59% |
▷ Public constants | 243 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
48 PNG files occupy 0.50MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/passster-logo.png | 6.22KB | 3.44KB | ▼ 44.64% |
assets/images/formidable-forms-logo.png | 6.68KB | 3.69KB | ▼ 44.80% |
assets/images/memberpress-logo.png | 20.20KB | 5.26KB | ▼ 73.94% |
assets/images/divi-logo.png | 6.71KB | 3.17KB | ▼ 52.74% |
assets/images/sendinblue-logo.png | 6.00KB | 3.52KB | ▼ 41.32% |