Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.96MB] [CPU: ▲11.43ms] Passed 4 tests
A check of server-side resources used by reCaptcha by BestWebSoft
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.47 ▲1.00 | 50.64 ▲9.49 |
Dashboard /wp-admin | 4.29 ▲0.98 | 62.16 ▲10.18 |
Posts /wp-admin/edit.php | 4.34 ▲0.98 | 58.89 ▲12.47 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.94 | 107.46 ▲20.58 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 48.00 ▲13.56 |
Server storage [IO: ▲6.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 148 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_gglcptch_allowlist |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
gglcptch_options |
bstwbsftwppdtplgns_options |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for reCaptcha by BestWebSoft
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲71 | 13.33 ▼1.05 | 1.92 ▼0.48 | 42.19 ▼1.23 |
Dashboard /wp-admin | 2,246 ▲55 | 5.88 ▼0.02 | 99.40 ▼17.25 | 38.10 ▼5.34 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.07 ▲0.03 | 36.25 ▲0.32 | 31.85 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 23.25 ▼0.06 | 604.32 ▼69.93 | 48.84 ▼6.02 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.31 ▲0.14 | 97.20 ▼2.46 | 42.66 ▼2.52 |
Allow List /wp-admin/google-captcha-allowlist.php | 26 | 0.44 | 0.13 | 13.24 |
BWS Panel /wp-admin/google-captcha.php?page=gglcptch-bws-panel | 26 | 0.44 | 0.06 | 5.83 |
Settings /wp-admin/google-captcha.php | 26 | 0.44 | 0.06 | 6.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_gglcptch_allowlist
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/google-captcha/includes/allowlist.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/google-captcha/includes/allowlist.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/google-captcha/includes/class-gglcptch-settings-tabs.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/google-captcha/includes/allowlist.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-captcha/bws_menu/class-bws-settings.php:1453
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/google-captcha/google-captcha.php:1227
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/google-captcha/bws_menu/product_list.php:9
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/google-captcha-allowlist.php
- > Network (severe)
wp-admin/google-captcha-allowlist.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/google-captcha.php?page=gglcptch-bws-panel
- > Network (severe)
wp-admin/google-captcha.php?page=gglcptch-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/google-captcha.php
- > Network (severe)
wp-admin/google-captcha.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Login form with reCaptcha.), #2 (Registration form with reCaptcha.), #3 (Lost password form with reCaptcha.), #4 (Comments form with reCaptcha.), #5 (Contact Form with reCaptcha.), #6 (The form with reCaptcha dark theme.), #7 (reCaptcha Settings page.), #8 (reCaptcha Allow List page.)
google-captcha/google-captcha.php Passed 13 tests
"reCaptcha by BestWebSoft" version 1.73's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Protect WordPress website forms from spam entries with Google Captcha (reCaptcha).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin31,216 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 19 | 7,580 | 13,094 | 18,047 |
PHP | 12 | 666 | 788 | 6,679 |
CSS | 12 | 158 | 257 | 5,419 |
JavaScript | 8 | 78 | 140 | 904 |
SVG | 4 | 0 | 0 | 167 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 91.75 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 210.00 |
Average method complexity | 9.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 79.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 16.67% |
Functions | 111 | |
▷ Named functions | 111 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
68 PNG files occupy 4.15MB with 1.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.32KB | 0.15KB | ▼ 53.40% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_454545_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |