Benchmarks
Plugin footprint 65% 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: ▲1.70MB] [CPU: ▲12.11ms] Passed 4 tests
This is a short check of server-side resources used by CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.16 ▲2.70 | 78.64 ▲39.09 |
Dashboard /wp-admin | 4.99 ▲1.69 | 56.67 ▲9.09 |
Posts /wp-admin/edit.php | 5.04 ▲1.69 | 61.37 ▲14.64 |
Add New Post /wp-admin/post-new.php | 7.68 ▲1.79 | 101.42 ▲3.34 |
Media Library /wp-admin/upload.php | 4.85 ▲1.62 | 51.49 ▲21.36 |
Server storage [IO: ▲4.25MB] [DB: ▲0.09MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 274 new files
Database: 3 new tables, 14 new options
New tables |
---|
wp_cky_cookies |
wp_cky_banners |
wp_cky_cookie_categories |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
wt_cli_version |
cky_banners_table_version |
cky_cookie_table_version |
cky_cookie_consent_lite_db_version |
widget_theysaidso_widget |
theysaidso_admin_options |
cky_settings |
... |
Browser metrics Passed 4 tests
A check of browser resources used by CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready)
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,415 ▲653 | 13.15 ▼1.20 | 16.65 ▲14.88 | 53.61 ▲7.61 |
Dashboard /wp-admin | 2,244 ▲64 | 5.52 ▼0.13 | 91.02 ▼1.14 | 40.47 ▼2.62 |
Posts /wp-admin/edit.php | 2,153 ▲56 | 2.01 ▲0.06 | 39.58 ▲0.23 | 33.25 ▼1.71 |
Add New Post /wp-admin/post-new.php | 1,539 ▲9 | 23.26 ▲0.14 | 672.76 ▼20.02 | 56.02 ▲1.79 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.17 ▼0.04 | 100.07 ▼0.34 | 45.68 ▲3.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 3 tables in the database
- wp_cky_cookies
- wp_cky_banners
- wp_cky_cookie_categories
- Zombie WordPress options were found after uninstall: 14 options
- widget_theysaidso_widget
- widget_recent-comments
- cky_cookie_table_version
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- cky_banner_template
- cky_settings
- cky_banners_table_version
- cky_cookie_category_table_version
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/cookie-law-info/legacy/admin/modules/cli-policy-generator/data/data.block5.php
- > /wp-content/plugins/cookie-law-info/legacy/admin/modules/cli-policy-generator/data/data.block4.php
- > /wp-content/plugins/cookie-law-info/legacy/admin/modules/cli-policy-generator/data/data.block2.php
- > /wp-content/plugins/cookie-law-info/legacy/admin/modules/cli-policy-generator/data/data.block1.php
- > /wp-content/plugins/cookie-law-info/legacy/admin/modules/cli-policy-generator/data/data.block3.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cookie-law-info/legacy/loader.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cookie-law-info/lite/loader.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-law-info/legacy/includes/class-cookie-law-info-activator.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/cookie-law-info/legacy/admin/views/goto-pro-v2.php:50
- > 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/legacy/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/legacy/public/views/cookie-law-info_popup_content.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: You are using too many tags: 18 tag instead of maximum 10
cookie-law-info/cookie-law-info.php Passed 13 tests
"CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready)" version 3.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected60,987 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 29 | 0 | 0 | 34,277 |
PHP | 126 | 2,268 | 7,389 | 17,582 |
JavaScript | 23 | 197 | 230 | 4,269 |
CSS | 14 | 247 | 73 | 2,832 |
SVG | 49 | 3 | 4 | 1,990 |
XML | 1 | 0 | 0 | 36 |
HTML | 1 | 0 | 0 | 1 |
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.43 |
Average class complexity | 25.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 34 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 89 | |
▷ Abstract classes | 9 | 10.11% |
▷ Concrete classes | 80 | 89.89% |
▷ Final classes | 0 | 0.00% |
Methods | 1,011 | |
▷ Static methods | 103 | 10.19% |
▷ Public methods | 914 | 90.41% |
▷ Protected methods | 56 | 5.54% |
▷ Private methods | 41 | 4.06% |
Functions | 52 | |
▷ Named functions | 46 | 88.46% |
▷ Anonymous functions | 6 | 11.54% |
Constants | 38 | |
▷ Global constants | 21 | 55.26% |
▷ Class constants | 17 | 44.74% |
▷ Public constants | 17 | 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
13 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
legacy/images/favicon.png | 1.32KB | 0.57KB | ▼ 57.10% |
legacy/images/overlay.png | 0.13KB | 0.34KB | 0.00% |
legacy/admin/images/documentation.png | 1.20KB | 0.77KB | ▼ 35.93% |
legacy/images/collapse.png | 0.70KB | 0.60KB | ▼ 14.33% |
legacy/images/expand.png | 0.66KB | 0.61KB | ▼ 8.68% |