Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▼0.12ms] Passed 4 tests
A check of server-side resources used by WP GDPR Ultimate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 30.77 ▼10.99 |
Dashboard /wp-admin | 3.95 ▲0.64 | 53.19 ▲3.91 |
Posts /wp-admin/edit.php | 4.00 ▲0.65 | 48.14 ▲2.92 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 96.63 ▲3.68 |
Media Library /wp-admin/upload.php | 3.88 ▲0.65 | 43.35 ▲11.24 |
Server storage [IO: ▲4.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 197 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP GDPR Ultimate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.77 ▼0.63 | 8.51 ▲6.79 | 57.01 ▲14.21 |
Dashboard /wp-admin | 2,227 ▲41 | 4.85 ▼0.10 | 105.01 ▼11.10 | 39.56 ▲0.41 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.03 ▲0.02 | 40.48 ▲3.44 | 32.51 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.39 ▲0.95 | 643.30 ▼19.23 | 60.11 ▲10.48 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.22 ▲0.08 | 103.17 ▼12.23 | 41.93 ▼7.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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 everything seems fine, this is not 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
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-gdpr-ultimate/public/partials/gdpr_ultimate-public-display.php
- > /wp-content/plugins/wp-gdpr-ultimate/admin/partials/gdpr_ultimate-admin-display.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function add_import_field() on null in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/example/advanced-import.php:2
- > PHP Fatal error
Uncaught Error: Class 'Xbox\\Includes\\XboxCore' not found in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/includes/class-admin-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/loader.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/example/admin-page.php:5
- > PHP Notice
Undefined variable: xbox in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/example/advanced-import.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/example/metabox.php:3
- > PHP Fatal error
Uncaught Error: Class 'Xbox\\Includes\\XboxCore' not found in wp-content/plugins/wp-gdpr-ultimate/admin/xbox/includes/class-metabox.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: gdpr plugin, gdpr woocommerce, gdpr, compliance, wordpress gdpr
wp-gdpr-ultimate/gdpr_ultimate.php 85% from 13 tests
The main file in "WP GDPR Ultimate" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-gdpr-ultimate.php" instead of "gdpr_ultimate.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/wp-gdpr-ultimate/admin/xbox/documentation/Xbox Documentation.url
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 17,069 |
PHP | 42 | 1,108 | 2,240 | 9,818 |
CSS | 25 | 2,214 | 299 | 9,032 |
JavaScript | 18 | 559 | 368 | 3,818 |
SVG | 6 | 1 | 3 | 3,594 |
PO File | 3 | 120 | 120 | 396 |
Sass | 1 | 17 | 2 | 144 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 33.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 323 | |
▷ Static methods | 53 | 16.41% |
▷ Public methods | 295 | 91.33% |
▷ Protected methods | 1 | 0.31% |
▷ Private methods | 27 | 8.36% |
Functions | 17 | |
▷ Named functions | 15 | 88.24% |
▷ Anonymous functions | 2 | 11.76% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
60 PNG files occupy 0.49MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/xbox/libs/icheck/skins/polaris/polaris@2x.png | 16.37KB | 6.77KB | ▼ 58.66% |
admin/xbox/libs/icheck/skins/flat/red.png | 1.48KB | 1.65KB | 0.00% |
admin/xbox/example/img/logo-position-left.png | 0.91KB | 0.24KB | ▼ 74.09% |
admin/xbox/libs/icheck/skins/flat/blue@2x.png | 3.14KB | 2.79KB | ▼ 11.25% |
admin/xbox/example/img/img3.png | 18.24KB | 7.09KB | ▼ 61.12% |