Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼9.23ms] Passed 4 tests
A check of server-side resources used by Ultimate GDPR Consent
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.85 ▼0.72 |
Dashboard /wp-admin | 3.46 ▲0.11 | 44.29 ▼15.87 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 43.43 ▼6.54 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 81.20 ▼11.35 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 32.36 ▼3.17 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ultimate-gdpr-consent |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Ultimate GDPR Consent: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,026 ▲265 | 13.48 ▼1.13 | 12.18 ▲10.37 | 45.81 ▲0.68 |
Dashboard /wp-admin | 2,209 ▲32 | 5.54 ▼0.12 | 84.10 ▼14.89 | 37.37 ▼5.00 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.00 ▼0.02 | 34.10 ▼1.24 | 31.66 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.55 ▲0.36 | 675.16 ▼8.01 | 57.27 ▼0.77 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.18 ▲0.02 | 101.90 ▲2.20 | 45.59 ▼2.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- ultimate-gdpr-consent
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ultimate-gdpr-consent/public/partials/ultimate-gdpr-consent-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-gdpr-consent/admin/partials/ultimate-gdpr-consent-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ultimate-gdpr-consent ===
)
ultimate-gdpr-consent/ultimate-gdpr-consent.php Passed 13 tests
The main file in "Ultimate GDPR Consent" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
111 characters long description:
Ultimate GDPR Consent is simple and fully customizable cookies notification for EU GDPR/Cookie Law regulations.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,312 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 27 | 412 | 1,067 |
PHP | 13 | 226 | 645 | 1,003 |
Sass | 2 | 3 | 4 | 238 |
CSS | 3 | 0 | 8 | 3 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.63% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin