Benchmarks
Plugin footprint 81% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.70MB] [CPU: ▲292.29ms] 50% from 4 tests
An overview of server-side resources used by WP DSGVO Tools (GDPR)
Please have a look at the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 587.30ms on /wp-admin/admin.php?page=sp-dsgvo&tab=embeddings-integrations)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 292.29ms on /wp-admin/admin.php?page=sp-dsgvo&tab=embeddings-integrations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.85 ▲2.39 | 437.96 ▲402.90 |
Dashboard /wp-admin | 5.12 ▲1.82 | 346.05 ▲299.27 |
Posts /wp-admin/edit.php | 5.12 ▲1.76 | 307.73 ▲258.38 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.32 | 342.27 ▲251.08 |
Media Library /wp-admin/upload.php | 5.12 ▲1.89 | 395.44 ▲360.43 |
Cookie Notice / Popup /wp-admin/admin.php?page=sp-dsgvo&tab=cookie-notice | 5.12 | 3,692.87 |
Delete request /wp-admin/admin.php?page=sp-dsgvo&tab=super-unsubscribe | 5.12 | 293.82 |
Statistics /wp-admin/admin.php?page=sp-dsgvo&tab=statistic-integrations | 5.12 | 348.13 |
Tagmanager /wp-admin/admin.php?page=sp-dsgvo&tab=tagmanager-integrations | 5.12 | 322.33 |
Targeting /wp-admin/admin.php?page=sp-dsgvo&tab=targeting-integrations | 5.12 | 321.36 |
Operator /wp-admin/admin.php?page=sp-dsgvo&tab=operator | 5.12 | 303.63 |
Free Webinars /wp-admin/admin.php?page=sp-dsgvo&tab=webinars | 5.12 | 316.53 |
Page Basics /wp-admin/admin.php?page=sp-dsgvo&tab=page-basics | 5.12 | 318.15 |
Common /wp-admin/admin.php?page=sp-dsgvo | 5.12 | 319.02 |
Embeddings /wp-admin/admin.php?page=sp-dsgvo&tab=embeddings-integrations | 5.67 | 587.30 |
Server storage [IO: ▲34.63MB] [DB: ▲0.56MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- Filesystem usage must be lower than 25MB (currently using 34.63MB)
Filesystem: 582 new files
Database: no new tables, 13 new options
New WordPress options |
---|
theysaidso_admin_options |
sp_dsgvo_legal_web_texts |
widget_recent-posts |
sp_dsgvo_legal_web_texts_last_update |
sp_dsgvo_legal_web_texts_last_check |
widget_recent-comments |
db_upgraded |
sp_dsgvo_legal_web_texts_lang |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP DSGVO Tools (GDPR)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,529 ▲758 | 15.85 ▲1.47 | 27.50 ▲25.66 | 134.74 ▲93.97 |
Dashboard /wp-admin | 2,522 ▲337 | 6.72 ▲0.84 | 146.13 ▲45.02 | 61.81 ▲20.36 |
Posts /wp-admin/edit.php | 2,438 ▲349 | 3.73 ▲1.75 | 50.30 ▲9.83 | 49.88 ▲12.97 |
Add New Post /wp-admin/post-new.php | 1,609 ▲90 | 21.21 ▼2.22 | 647.65 ▼62.23 | 42.71 ▼12.03 |
Media Library /wp-admin/upload.php | 1,562 ▲174 | 4.48 ▲0.33 | 98.56 ▼10.09 | 72.80 ▲26.09 |
Cookie Notice / Popup /wp-admin/admin.php?page=sp-dsgvo&tab=cookie-notice | 2,201 | 3.49 | 49.87 | 105.62 |
Delete request /wp-admin/admin.php?page=sp-dsgvo&tab=super-unsubscribe | 2,332 | 6.55 | 139.49 | 178.59 |
Statistics /wp-admin/admin.php?page=sp-dsgvo&tab=statistic-integrations | 2,280 | 3.34 | 54.02 | 87.55 |
Tagmanager /wp-admin/admin.php?page=sp-dsgvo&tab=tagmanager-integrations | 1,560 | 3.38 | 45.58 | 124.55 |
Targeting /wp-admin/admin.php?page=sp-dsgvo&tab=targeting-integrations | 1,945 | 3.33 | 49.25 | 78.76 |
Operator /wp-admin/admin.php?page=sp-dsgvo&tab=operator | 3,432 | 3.47 | 46.00 | 70.60 |
Free Webinars /wp-admin/admin.php?page=sp-dsgvo&tab=webinars | 1,426 | 3.31 | 47.97 | 88.64 |
Page Basics /wp-admin/admin.php?page=sp-dsgvo&tab=page-basics | 3,976 | 9.94 | 216.92 | 84.92 |
Common /wp-admin/admin.php?page=sp-dsgvo | 1,982 | 3.39 | 47.46 | 76.46 |
Embeddings /wp-admin/admin.php?page=sp-dsgvo&tab=embeddings-integrations | 2,354 | 3.44 | 45.22 | 124.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% 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 | 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
- 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/shapepress-dsgvo/templates/de_DE/emails/footer.php
- > /wp-content/plugins/shapepress-dsgvo/public/inc/cookie-popup-styles.php
- > /wp-content/plugins/shapepress-dsgvo/templates/en_GB/emails/header.php
- > /wp-content/plugins/shapepress-dsgvo/public/inc/bootstrap-grid.min.php
- > /wp-content/plugins/shapepress-dsgvo/templates/de_DE_formal/emails/header.php
- > /wp-content/plugins/shapepress-dsgvo/templates/en_EN/emails/header.php
- > /wp-content/plugins/shapepress-dsgvo/templates/de_DE/emails/legal-texts-update.php
- > /wp-content/plugins/shapepress-dsgvo/templates/de_DE/emails/header.php
- > /wp-content/plugins/shapepress-dsgvo/templates/de_DE_formal/emails/footer.php
- > /wp-content/plugins/shapepress-dsgvo/templates/en_EN/emails/footer.php
- 170× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/shapepress-dsgvo/public/shortcodes/privacy-policy.php:515
- > PHP Fatal error
Uncaught Error: Class 'SPDSGVOIntegration' not found in wp-content/plugins/shapepress-dsgvo/includes/integrations/tagmanager/matomotagmanager/class-sp-dsgvo-matomo-tagmanager-integration.php:3
- > PHP Fatal error
Uncaught Error: Class 'SPDSGVOAjaxAction' not found in wp-content/plugins/shapepress-dsgvo/public/actions/popup-accept.php:3
- > PHP Fatal error
Uncaught Error: Class 'SPDSGVOAjaxAction' not found in wp-content/plugins/shapepress-dsgvo/admin/tabs/gravity-forms/class-sp-dsgvo-gravity-forms-action.php:3
- > PHP Fatal error
Uncaught Error: Class 'SPDSGVOAjaxAction' not found in wp-content/plugins/shapepress-dsgvo/admin/tabs/v3/common-settings/class-sp-dsgvo-privacy-policy-action.php:3
- > PHP Fatal error
Uncaught Error: Class 'SPDSGVOAjaxAction' not found in wp-content/plugins/shapepress-dsgvo/admin/class-sp-dsgvo-admin-action.php:3
- > PHP Fatal error
Uncaught Error: Class 'SPDSGVOEmbeddingApiBase' not found in wp-content/plugins/shapepress-dsgvo/includes/integrations/embeddings/instagram/class-sp-dsgvo-instagram-api.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function isValidPremiumEdition() in wp-content/plugins/shapepress-dsgvo/admin/tabs/v3/operator/page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function isValidPremiumEdition() in wp-content/plugins/shapepress-dsgvo/admin/tabs/v3/stats/page.php:2
- > PHP Fatal error
Uncaught Error: Class 'SPDSGVOIntegration' not found in wp-content/plugins/shapepress-dsgvo/includes/integrations/targeting/gadsense/class-sp-dsgvo-gadsense-integration.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
shapepress-dsgvo/sp-dsgvo.php 85% from 13 tests
"WP DSGVO Tools (GDPR)" version 3.1.31's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("shapepress-dsgvo.php" instead of "sp-dsgvo.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 198 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected92,103 lines of code in 352 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 295 | 6,269 | 20,655 | 81,450 |
CSS | 14 | 492 | 134 | 5,181 |
PO File | 2 | 1,647 | 3,864 | 3,776 |
JavaScript | 6 | 398 | 156 | 1,304 |
HTML | 3 | 5 | 8 | 240 |
SVG | 30 | 0 | 2 | 106 |
XML | 2 | 0 | 1 | 46 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,420)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 503)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 82.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,420.00 |
Average method complexity | 7.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 503.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 146 | |
▷ Abstract classes | 5 | 3.42% |
▷ Concrete classes | 141 | 96.58% |
▷ Final classes | 0 | 0.00% |
Methods | 1,742 | |
▷ Static methods | 214 | 12.28% |
▷ Public methods | 1,259 | 72.27% |
▷ Protected methods | 466 | 26.75% |
▷ Private methods | 17 | 0.98% |
Functions | 36 | |
▷ Named functions | 33 | 91.67% |
▷ Anonymous functions | 3 | 8.33% |
Constants | 127 | |
▷ Global constants | 112 | 88.19% |
▷ Class constants | 15 | 11.81% |
▷ Public constants | 15 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
37 PNG files occupy 1.45MB with 0.84MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/cookies/Cookie13.png | 56.43KB | 21.62KB | ▼ 61.69% |
public/images/legalwebio-icon.png | 16.62KB | 8.51KB | ▼ 48.78% |
admin/images/cookies/Cookie5.png | 76.75KB | 24.81KB | ▼ 67.67% |
admin/images/cookies/Cookie14.png | 29.74KB | 11.26KB | ▼ 62.14% |
public/images/legalweb.io-icon-white.png | 10.45KB | 5.20KB | ▼ 50.25% |