Benchmarks
Plugin footprint 82% 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.86MB] [CPU: ▲2.11ms] Passed 4 tests
Analyzing server-side resources used by DivertDigital GDPR
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.34 ▲0.88 | 46.58 ▲5.19 |
Dashboard /wp-admin | 4.15 ▲0.85 | 56.24 ▲4.81 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 56.29 ▲6.81 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.85 | 91.99 ▼8.38 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 48.76 ▲13.31 |
GDPR /wp-admin/options-general.php?page=gdpr-settings-page | 4.05 | 40.41 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/divertdigital-gdpr/" and "wp-content/uploads/"
- (new file) wp-content/enc_keys/.empty
- (new file) wp-content/deleted_users/.empty
Filesystem: 136 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
divertdigital-gdpr-version |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for DivertDigital GDPR
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.36 ▲0.02 | 1.67 ▼1.20 | 41.74 ▲1.39 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▲0.05 | 88.38 ▲1.89 | 38.88 ▼3.89 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.07 ▼0.09 | 35.16 ▼5.33 | 33.08 ▼6.89 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.51 ▼1.02 | 680.31 ▼3.28 | 52.48 ▼10.61 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.21 ▼0.18 | 98.41 ▼2.92 | 45.42 ▲0.23 |
GDPR /wp-admin/options-general.php?page=gdpr-settings-page | 827 | 2.00 | 23.78 | 29.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- divertdigital-gdpr-version
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
Even though no errors were found, 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/divertdigital-gdpr/dd_gdpr.php
- 66× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Util' not found in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/src/Core32/Util.php:10
- > PHP Fatal error
require_once(): Failed opening required 'other/ide_stubs/libsodium.php' (include_path='.:/usr/share/php') in wp-content/plugins/divertdigital-gdpr/lib/random_compat-2.0.11/psalm-autoload.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519' not found in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/src/Core/X25519.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519_Fe' not found in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/namespaced/Core/Curve25519/Fe.php:4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519' not found in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/src/Core/Ed25519.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core32_Util' not found in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/src/Core32/ChaCha20.php:10
- > PHP Warning
constant(): Couldn't find constant ParagonIE_Sodium_Compat::CRYPTO_KX_BYTES in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/lib/php72compat.php on line 66
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_ChaCha20_Ctx' not found in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/namespaced/Core/ChaCha20/Ctx.php:4
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core32_ChaCha20' not found in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/src/Core32/HChaCha20.php:10
- > PHP Fatal error
Uncaught Error: Class 'ParagonIE_Sodium_Core_Curve25519_Ge_P3' not found in wp-content/plugins/divertdigital-gdpr/lib/sodium_compat-1.5.6/namespaced/Core/Curve25519/Ge/P3.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: gdpr, pseudonimization
divertdigital-gdpr/dd_gdpr.php 92% from 13 tests
Analyzing the main PHP file in "DivertDigital GDPR" version 1.0.4
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("divertdigital-gdpr.php" instead of "dd_gdpr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin21,410 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 2,287 | 8,294 | 20,980 |
Markdown | 2 | 64 | 0 | 216 |
JSON | 3 | 0 | 0 | 136 |
XML | 2 | 0 | 0 | 44 |
make | 1 | 9 | 4 | 26 |
Bourne Shell | 2 | 4 | 1 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 17.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 87 | |
▷ Abstract classes | 20 | 22.99% |
▷ Concrete classes | 67 | 77.01% |
▷ Final classes | 0 | 0.00% |
Methods | 643 | |
▷ Static methods | 413 | 64.23% |
▷ Public methods | 564 | 87.71% |
▷ Protected methods | 68 | 10.58% |
▷ Private methods | 11 | 1.71% |
Functions | 140 | |
▷ Named functions | 139 | 99.29% |
▷ Anonymous functions | 1 | 0.71% |
Constants | 202 | |
▷ Global constants | 7 | 3.47% |
▷ Class constants | 195 | 96.53% |
▷ Public constants | 195 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin