Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.44MB] [CPU: ▼280.91ms] Passed 4 tests
Server-side resources used by CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.17 ▲1.66 | 91.93 ▲40.34 |
Dashboard /wp-admin | 4.83 ▲1.42 | 46.67 ▲13.73 |
Posts /wp-admin/edit.php | 5.12 ▲1.48 | 50.86 ▲12.85 |
Add New Post /wp-admin/post-new.php | 8.36 ▲1.39 | 113.27 ▼1,159.11 |
Media Library /wp-admin/upload.php | 4.78 ▲1.48 | 34.94 ▲8.90 |
Cookie List /wp-admin/edit.php?post_type=cookielawinfo | 5.08 | 50.82 |
Settings /wp-admin/edit.php?post_type=cookielawinfo&page=cookie-law-info | 5.02 | 39.21 |
Cookie Scanner /wp-admin/edit.php?post_type=cookielawinfo&page=cookie-law-info-cookie-scaner | 4.75 | 40.29 |
Policy generator /wp-admin/edit.php?post_type=cookielawinfo&page=cookie-law-info-policy-generator | 4.81 | 37.64 |
Privacy Overview /wp-admin/edit.php?post_type=cookielawinfo&page=cookie-law-info-poverview | 4.81 | 39.26 |
Cookie Category /wp-admin/edit-tags.php?taxonomy=cookielawinfo-category&post_type=cookielawinfo | 4.81 | 49.20 |
Script Blocker /wp-admin/edit.php?post_type=cookielawinfo&page=cli-script-settings | 4.88 | 54.81 |
Server storage [IO: ▲1.08MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 106 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_cli_cookie_scan_cookies |
wp_cli_cookie_scan_url |
wp_cli_cookie_scan |
wp_cli_cookie_scan_categories |
wp_cli_scripts |
New WordPress options |
---|
cookielawinfo_js_blocking |
CookieLawInfo-0.9 |
wt_cli_cookie_db_version |
cookielawinfo_privacy_overview_content_settings |
wt_cli_db_version |
wt_cli_start_date |
wt_cli_version |
cli_script_blocker_status |
Browser metrics Passed 4 tests
CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,467 ▲714 | 16.26 ▲0.61 | 36.82 ▲30.65 | 49.12 ▲46.58 |
Dashboard /wp-admin | 2,951 ▲90 | 6.18 ▲0.03 | 120.35 ▼14.53 | 175.61 ▲11.53 |
Posts /wp-admin/edit.php | 2,716 ▲22 | 3.14 ▼0.10 | 67.69 ▲3.91 | 143.17 ▲6.06 |
Add New Post /wp-admin/post-new.php | 1,626 ▼64 | 18.23 ▼2.24 | 423.98 ▼44.17 | 175.79 ▲11.79 |
Media Library /wp-admin/upload.php | 1,753 ▲55 | 5.50 ▼0.02 | 128.35 ▼15.84 | 203.67 ▲15.71 |
Cookie List /wp-admin/edit.php?post_type=cookielawinfo | 2,958 | 3.54 | 82.77 | 135.88 |
Settings /wp-admin/edit.php?post_type=cookielawinfo&page=cookie-law-info | 9,379 | 4.68 | 168.03 | 236.84 |
Cookie Scanner /wp-admin/edit.php?post_type=cookielawinfo&page=cookie-law-info-cookie-scaner | 1,144 | 3.21 | 61.25 | 95.77 |
Policy generator /wp-admin/edit.php?post_type=cookielawinfo&page=cookie-law-info-policy-generator | 2,267 | 8.99 | 166.81 | 213.05 |
Privacy Overview /wp-admin/edit.php?post_type=cookielawinfo&page=cookie-law-info-poverview | 2,018 | 9.29 | 157.46 | 197.63 |
Cookie Category /wp-admin/edit-tags.php?taxonomy=cookielawinfo-category&post_type=cookielawinfo | 2,144 | 2.64 | 66.80 | 148.90 |
Script Blocker /wp-admin/edit.php?post_type=cookielawinfo&page=cli-script-settings | 1,533 | 3.20 | 74.04 | 160.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables detected upon uninstall: 5 tables
- wp_cli_cookie_scan_url
- wp_cli_cookie_scan_categories
- wp_cli_cookie_scan_cookies
- wp_cli_scripts
- wp_cli_cookie_scan
- The uninstall procedure has failed, leaving 7 options in the database
- wt_cli_version
- wt_cli_db_version
- cookielawinfo_privacy_overview_content_settings
- cookielawinfo_js_blocking
- CookieLawInfo-0.9
- cli_script_blocker_status
- wt_cli_cookie_db_version
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 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
The following issues need your attention
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cookie-law-info/admin/modules/cli-policy-generator/data/data.block2.php
- > /wp-content/plugins/cookie-law-info/admin/modules/cli-policy-generator/data/data.block4.php
- > /wp-content/plugins/cookie-law-info/admin/modules/cli-policy-generator/data/data.block3.php
- > /wp-content/plugins/cookie-law-info/admin/modules/cli-policy-generator/data/data.block1.php
- > /wp-content/plugins/cookie-law-info/admin/modules/cli-policy-generator/data/data.block5.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/cookie-law-info/admin/views/goto-pro-v2.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-law-info/includes/class-cookie-law-info-activator.php:39
- > PHP Warning
Use of undefined constant CLI_PLUGIN_URL - assumed 'CLI_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/cookie-law-info/admin/views/goto-pro-v2.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cookie-law-info/public/views/cookie-law-info_popup_content.php:2
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 15 tag instead of maximum 10
cookie-law-info/cookie-law-info.php Passed 13 tests
The primary PHP file in "CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready)" version 2.1.1 is used by WordPress to initiate all plugin functionality
73 characters long description:
A simple way to show your website complies with the EU Cookie Law / GDPR.
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
Good job! No executable or dangerous file extensions detected16,715 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 1,060 | 2,132 | 9,325 |
JavaScript | 9 | 127 | 82 | 3,137 |
CSS | 6 | 247 | 73 | 2,824 |
SVG | 13 | 0 | 2 | 1,393 |
XML | 1 | 0 | 0 | 36 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 50.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 393 | |
▷ Static methods | 54 | 13.74% |
▷ Public methods | 355 | 90.33% |
▷ Protected methods | 10 | 2.54% |
▷ Private methods | 28 | 7.12% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 30 | |
▷ Global constants | 14 | 46.67% |
▷ Class constants | 16 | 53.33% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/modules/cookie-scaner/assets/images/screenshot-1.png | 60.56KB | 23.87KB | ▼ 60.59% |
images/icon-256x256.png | 11.23KB | 5.01KB | ▼ 55.42% |
images/overlay.png | 0.13KB | 0.34KB | 0.00% |
admin/images/support.png | 4.64KB | 2.84KB | ▼ 38.75% |
images/collapse.png | 0.70KB | 0.60KB | ▼ 14.33% |