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: ▼1.15MB] [CPU: ▼45.78ms] Passed 4 tests
Server-side resources used by GDPR Helper using CSP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 6.35 ▼40.83 |
Dashboard /wp-admin | 3.12 ▼0.22 | 28.36 ▼37.82 |
Posts /wp-admin/edit.php | 3.12 ▼0.23 | 28.24 ▼24.62 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.76 | 25.97 ▼79.83 |
Media Library /wp-admin/upload.php | 3.12 ▼0.11 | 25.20 ▼13.05 |
GDPR Helper /wp-admin/options-general.php?page=gh_setting | 3.12 | 28.08 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
gh_setting |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by GDPR Helper using CSP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲120 | 13.51 ▼0.74 | 9.23 ▲7.22 | 38.65 ▼8.87 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼0.06 | 105.06 ▼7.59 | 39.73 ▼1.27 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 39.76 ▲3.25 | 34.66 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 18.23 ▼4.78 | 633.70 ▲30.45 | 59.34 ▲7.06 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.18 ▼0.05 | 104.29 ▼7.44 | 42.77 ▼7.29 |
GDPR Helper /wp-admin/options-general.php?page=gh_setting | 1,319 | 3.17 | 39.26 | 33.71 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/gdpr-helper/includes/backendPage.php+72
Undefined variable: description
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=gh_setting
- > Notice in wp-content/plugins/gdpr-helper/includes/backendPage.php+72
Undefined variable: description
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gdpr-helper/includes/backendPage.php
- > /wp-content/plugins/gdpr-helper/includes/magicStrings.php
- > /wp-content/plugins/gdpr-helper/gdpr-helper.php
- > /wp-content/plugins/gdpr-helper/includes/elementor/helper.php
- > /wp-content/plugins/gdpr-helper/includes/elementor/widgetShortcode.php
- > /wp-content/plugins/gdpr-helper/includes/elementor/mapHandler.php
- > /wp-content/plugins/gdpr-helper/includes/ghMain.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== gdpr-helper ===
)
gdpr-helper/gdpr-helper.php Passed 13 tests
The primary PHP file in "GDPR Helper using CSP" version 1.2.1 is used by WordPress to initiate all plugin functionality
75 characters long description:
Set and manage your content-security-policy header to help comply with GDPR
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
Everything looks great! No dangerous files found in this plugin977 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 167 | 73 | 819 |
CSS | 2 | 8 | 0 | 70 |
JavaScript | 2 | 10 | 2 | 52 |
Markdown | 3 | 22 | 0 | 36 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 2 | 20.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 27 | 93.10% |
▷ Anonymous functions | 2 | 6.90% |
Constants | 23 | |
▷ Global constants | 4 | 17.39% |
▷ Class constants | 19 | 82.61% |
▷ Public constants | 19 | 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 are no PNG files in this plugin