Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼7.72ms] Passed 4 tests
Server-side resources used by GDPR/CCPA Cookie Consent Banner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.60 ▼0.76 |
Dashboard /wp-admin | 3.46 ▲0.16 | 46.74 ▼23.30 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.34 ▲0.17 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 92.83 ▼6.97 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 41.00 ▲7.97 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR/CCPA Cookie Consent Banner
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲97 | 13.73 ▼0.64 | 4.54 ▲2.59 | 43.03 ▼0.25 |
Dashboard /wp-admin | 2,224 ▲36 | 4.86 ▼0.05 | 107.95 ▼0.72 | 39.72 ▼2.60 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.02 ▲0.01 | 40.90 ▲0.65 | 35.40 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 17.56 ▼5.58 | 682.83 ▲23.73 | 56.85 ▲5.41 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.14 ▼0.07 | 92.40 ▼16.74 | 44.31 ▼0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/uk-cookie-consent/uk-cookie-consent.php
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/uk-cookie-consent/includes/views/policies.php:16
- > PHP Fatal error
Uncaught Error: Class 'termly\\Menu_Controller' not found in wp-content/plugins/uk-cookie-consent/includes/controllers/class-policies-controller.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function termly\\add_action() in wp-content/plugins/uk-cookie-consent/includes/controllers/class-termly-api-controller.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/uk-cookie-consent/includes/views/sign-up.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function termly\\add_action() in wp-content/plugins/uk-cookie-consent/includes/controllers/class-frontend.php:10
- > PHP Fatal error
require(): Failed opening required 'TERMLY_VIEWScountries.php' (include_path='.:/usr/share/php') in wp-content/plugins/uk-cookie-consent/includes/views/edit-cookie.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/uk-cookie-consent/includes/views/banner-settings.php:15
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/uk-cookie-consent/includes/controllers/class-site-scan-results-list-table.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'termly\\Menu_Controller' not found in wp-content/plugins/uk-cookie-consent/includes/controllers/class-app-controller.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/uk-cookie-consent/includes/views/sign-up-notice.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
uk-cookie-consent/uk-cookie-consent.php Passed 13 tests
The entry point to "GDPR/CCPA Cookie Consent Banner" version 3.0.3 is a PHP file that has certain tags in its header comment area
104 characters long description:
Our easy to use cookie consent plugin can assist in your GDPR and ePrivacy Directive compliance efforts.
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
Everything looks great! No dangerous files found in this plugin22,357 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 17,986 |
PHP | 32 | 855 | 557 | 2,823 |
Sass | 7 | 214 | 12 | 914 |
JavaScript | 7 | 154 | 65 | 606 |
SVG | 4 | 1 | 1 | 26 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 89 | 83.18% |
▷ Public methods | 98 | 91.59% |
▷ Protected methods | 7 | 6.54% |
▷ Private methods | 2 | 1.87% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/alert.b2f9f8a3.png | 2.00KB | 0.26KB | ▼ 87.13% |
dist/check.dbfc8dab.png | 0.56KB | 0.43KB | ▼ 22.28% |
dist/alert.1d2502f3.png | 2.00KB | 0.26KB | ▼ 87.13% |
dist/check.95ebae12.png | 0.56KB | 0.43KB | ▼ 22.28% |
dist/success.03da78df.png | 2.33KB | 0.47KB | ▼ 79.78% |