Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.56MB] [CPU: ▲14.70ms] Passed 4 tests
A check of server-side resources used by LGPD Framework By Data443
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.91 | 42.48 ▲7.38 |
Dashboard /wp-admin | 5.12 ▲1.82 | 59.49 ▲15.93 |
Posts /wp-admin/edit.php | 5.18 ▲1.82 | 63.42 ▲18.44 |
Add New Post /wp-admin/post-new.php | 7.65 ▲1.76 | 107.94 ▲21.68 |
Media Library /wp-admin/upload.php | 4.99 ▲1.76 | 50.69 ▲17.03 |
Data443 LGPD /wp-admin/tools.php?page=lgpd_privacy | 5.02 | 50.23 |
/wp-admin/index.php?page=lgpd-setup | 4.85 | 39.83 |
Privacy Tools /wp-admin/users.php?page=lgpd-profile | 5.02 | 52.26 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 276 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_lgpd_userlogs |
wp_lgpd_consent |
New WordPress options |
---|
wp_lgpd_consent_db_version |
widget_theysaidso_widget |
widget_recent-comments |
lgpd_enable_stylesheet |
theysaidso_admin_options |
wp_lgpd_userlogs_db_version |
widget_recent-posts |
lgpd_enable |
can_compress_scripts |
lgpd_plugin_version |
... |
Browser metrics Passed 4 tests
LGPD Framework By Data443: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 14.35 ▲0.00 | 1.56 ▼0.06 | 41.67 ▲1.45 |
Dashboard /wp-admin | 2,325 ▲148 | 5.56 ▼0.04 | 81.08 ▼4.91 | 75.97 ▲36.90 |
Posts /wp-admin/edit.php | 2,245 ▲145 | 2.13 ▲0.09 | 40.80 ▲7.25 | 34.58 ▼7.31 |
Add New Post /wp-admin/post-new.php | 1,657 ▲130 | 23.58 ▲0.14 | 707.47 ▲45.62 | 59.93 ▲7.03 |
Media Library /wp-admin/upload.php | 1,533 ▲133 | 4.22 ▲0.01 | 107.75 ▲0.26 | 79.40 ▲32.04 |
Data443 LGPD /wp-admin/tools.php?page=lgpd_privacy | 1,581 | 2.75 | 52.87 | 39.50 |
/wp-admin/index.php?page=lgpd-setup | 28 | 0.42 | 0.08 | 3.79 |
Privacy Tools /wp-admin/users.php?page=lgpd-profile | 974 | 2.00 | 24.13 | 28.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_lgpd_userlogs
- wp_lgpd_consent
- The uninstall procedure has failed, leaving 11 options in the database
- db_upgraded
- widget_recent-comments
- lgpd_plugin_version
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- wp_lgpd_consent_db_version
- wp_lgpd_userlogs_db_version
- lgpd_enable
- lgpd_enable_stylesheet
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 17× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/lgpd-framework/views/installer/steps/integrations.php
- > /wp-content/plugins/lgpd-framework/views/admin/notices/footer.php
- > /wp-content/plugins/lgpd-framework/views/admin/notices/installer-finished.php
- > /wp-content/plugins/lgpd-framework/views/admin/general/name_from.php
- > /wp-content/plugins/lgpd-framework/views/admin/general/email_from.php
- > /wp-content/plugins/lgpd-framework/views/admin/cookie-popup/popup_background_color_picker.php
- > /wp-content/plugins/lgpd-framework/views/admin/advanced-integration/header.php
- > /wp-content/plugins/lgpd-framework/views/admin/notices/footer-step.php
- > /wp-content/plugins/lgpd-framework/views/installer/steps/welcome.php
- > /wp-content/plugins/lgpd-framework/views/admin/privacy-policy/company-location.php
- 187× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/lgpd-framework/views/global/country-options.php on line 18
- > PHP Notice
Undefined variable: consentData in wp-content/plugins/lgpd-framework/views/modules/wordpress-user/dashboard/data-page/form-consent.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/lgpd-framework/views/email/no-data.php:2
- > PHP Warning
Use of undefined constant ES_PLUGIN_FILE - assumed 'ES_PLUGIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/lgpd-framework/src/Modules/NewsletterCcpa/NewsletterCcpa.php on line 8
- > PHP Notice
Undefined variable: isThemeSupported in wp-content/plugins/lgpd-framework/views/installer/steps/integrations.php on line 10
- > PHP Warning
Use of undefined constant EDD_PLUGIN_DIR - assumed 'EDD_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/lgpd-framework/src/Modules/EddCcpa/EddCcpa.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function lgpd() in wp-content/plugins/lgpd-framework/views/admin/general/delete-action.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function lgpd() in wp-content/plugins/lgpd-framework/views/installer/steps/configuration-pages.php:19
- > PHP Notice
Undefined variable: content in wp-content/plugins/lgpd-framework/views/admin/cookie-popup/enable_popup_learnmore_content.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Data443\\LGPD\\Admin\\AdminTab' not found in wp-content/plugins/lgpd-framework/src/Components/PrivacyPolicy/AdminTabPrivacyPolicy.php:7
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/index.php?page=lgpd-setup
- > Network (severe)
wp-admin/index.php?page=lgpd-setup - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
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
These attributes need your attention:
- Screenshots: Add a description for screenshot #5 in lgpd-framework/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
lgpd-framework/lgpd-framework.php Passed 13 tests
Analyzing the main PHP file in "LGPD Framework By Data443" version 2.0.2
100 characters long description:
Tools to help make your website LGPD-compliant. Fully documented, extendable and developer-friendly.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin20,728 lines of code in 240 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 210 | 1,770 | 1,938 | 9,512 |
PO File | 4 | 2,455 | 2,972 | 8,735 |
CSS | 8 | 340 | 14 | 1,811 |
JavaScript | 15 | 49 | 71 | 667 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 78 | |
▷ Abstract classes | 4 | 5.13% |
▷ Concrete classes | 74 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 527 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 458 | 86.91% |
▷ Protected methods | 68 | 12.90% |
▷ Private methods | 1 | 0.19% |
Functions | 21 | |
▷ Named functions | 14 | 66.67% |
▷ Anonymous functions | 7 | 33.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 0.61MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-sortable.png | 0.38KB | 0.29KB | ▼ 22.94% |
images/screenshot-5.png | 16.33KB | 7.35KB | ▼ 54.97% |
assets/icon-225x225.png | 6.11KB | 3.05KB | ▼ 50.06% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |