Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.83MB] [CPU: ▲7.49ms] Passed 4 tests
This is a short check of server-side resources used by GDPR-compliant ReCaptcha for all forms and logins
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.82 | 55.29 ▲13.17 |
Dashboard /wp-admin | 4.21 ▲0.90 | 93.79 ▲38.52 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 55.39 ▲8.67 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 92.94 ▼6.88 |
Media Library /wp-admin/upload.php | 4.05 ▲0.82 | 51.68 ▲15.00 |
Trash0 /wp-admin/admin.php?page=gdpr_pow_trash | 4.02 | 44.72 |
Analytic Box0 /wp-admin/admin.php?page=gdpr_pow_analyse | 4.02 | 42.32 |
ReCaptcha GDPR Compliant /wp-admin/options-general.php?page=gdpr_pow_options | 4.02 | 46.57 |
Spam0 /wp-admin/admin.php?page=gdpr_pow_spam | 4.02 | 40.01 |
Messages0 /wp-admin/admin.php?page=gdpr_pow_messages | 4.02 | 43.58 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: 3 new tables, 30 new options
New tables |
---|
wp_recaptcha_gdpr_message_rgm |
wp_recaptcha_gdpr_details_rgd |
wp_recaptcha_gdpr_stamp_rgs |
New WordPress options |
---|
gdpr_pow_pow_version |
widget_recent-comments |
gdpr_pow_pow_installed |
gdpr_pow_pow_menu_position |
gdpr_pow_pow_cron_delete_trash |
gdpr_pow_pow_time_window |
gdpr_pow_pow_dashboard |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
GDPR-compliant ReCaptcha for all forms and logins: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲176 | 14.68 ▲0.30 | 1.92 ▲0.24 | 27.99 ▼16.08 |
Dashboard /wp-admin | 2,315 ▲135 | 5.65 ▼0.02 | 97.75 ▼1.40 | 46.32 ▲3.98 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 1.95 ▼0.01 | 34.56 ▼10.28 | 31.34 ▼10.48 |
Add New Post /wp-admin/post-new.php | 1,572 ▲33 | 23.27 ▲0.19 | 696.76 ▲45.33 | 64.78 ▲10.93 |
Media Library /wp-admin/upload.php | 1,447 ▲44 | 4.26 ▲0.09 | 100.42 ▼0.57 | 45.85 ▼0.23 |
Trash0 /wp-admin/admin.php?page=gdpr_pow_trash | 928 | 2.00 | 26.68 | 27.57 |
Analytic Box0 /wp-admin/admin.php?page=gdpr_pow_analyse | 963 | 2.00 | 26.74 | 49.27 |
ReCaptcha GDPR Compliant /wp-admin/options-general.php?page=gdpr_pow_options | 2,502 | 1.66 | 24.74 | 76.14 |
Spam0 /wp-admin/admin.php?page=gdpr_pow_spam | 920 | 2.15 | 23.50 | 24.56 |
Messages0 /wp-admin/admin.php?page=gdpr_pow_messages | 923 | 2.00 | 27.19 | 26.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gdpr-compliant-recaptcha-for-all-forms/includes/class-settings-menu.php
- > /wp-content/plugins/gdpr-compliant-recaptcha-for-all-forms/uninstall.php
- > /wp-content/plugins/gdpr-compliant-recaptcha-for-all-forms/recaptcha-gdpr-compliant.php
- > /wp-content/plugins/gdpr-compliant-recaptcha-for-all-forms/includes/class-dashboard-widget.php
- > /wp-content/plugins/gdpr-compliant-recaptcha-for-all-forms/includes/class-option.php
- > /wp-content/plugins/gdpr-compliant-recaptcha-for-all-forms/includes/class-analysis.php
- > /wp-content/plugins/gdpr-compliant-recaptcha-for-all-forms/includes/class-message-page.php
- > /wp-content/plugins/gdpr-compliant-recaptcha-for-all-forms/includes/class-stamp.php
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 errors were detected
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Requires at least: Invalid version format
- Requires php: Invalid version format
gdpr-compliant-recaptcha-for-all-forms/recaptcha-gdpr-compliant.php 69% from 13 tests
This is the main PHP file of "GDPR-compliant ReCaptcha for all forms and logins" version 3.5.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gdpr-compliant-recaptcha-for-all-forms.php" instead of "recaptcha-gdpr-compliant.php")
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "4.8+")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "PHP-Version 5.6+")
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
No dangerous file extensions were detected5,014 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 511 | 504 | 3,444 |
JavaScript | 4 | 124 | 118 | 887 |
PO File | 1 | 58 | 124 | 433 |
CSS | 4 | 36 | 4 | 250 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 42.62 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 11 | 11.46% |
▷ Public methods | 81 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 15 | 15.62% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 47 | |
▷ Global constants | 1 | 2.13% |
▷ Class constants | 46 | 97.87% |
▷ Public constants | 46 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin