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 gracefully, with no errors
Server metrics [RAM: ▲0.53MB] [CPU: ▼0.58ms] Passed 4 tests
A check of server-side resources used by Cookie Dough Compliance and Consent for GDPR
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 46.13 ▲9.68 |
Dashboard /wp-admin | 3.83 ▲0.48 | 47.77 ▼11.23 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 47.56 ▲1.96 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 97.58 ▲2.77 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 36.37 ▲4.17 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 88 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
cookie-dough-consent-settings |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Cookie Dough Compliance and Consent for GDPR
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,987 ▲240 | 14.23 ▼0.45 | 2.64 ▲0.96 | 61.56 ▲25.07 |
Dashboard /wp-admin | 2,212 ▲31 | 5.56 ▼0.12 | 94.14 ▼18.31 | 77.92 ▲31.41 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 1.95 ▼0.06 | 40.04 ▲1.87 | 35.62 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 21.19 ▼1.87 | 661.76 ▲14.46 | 53.34 ▼3.02 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.19 ▼0.02 | 94.67 ▼8.11 | 63.51 ▲20.86 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- cookie-dough-consent-settings
- widget_recent-comments
- db_upgraded
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
Please fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/public/templates/components/cookie-step-optional-line.php
- > /wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/options/components/link-repeater-line.php
- > /wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/public/templates/components/cookie-step-mandatory-line.php
- > /wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/options/components/cookie-settings-line.php
- > /wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/popup/steps/step-01.php
- 50× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include(): Failed opening 'COOKIE_DOUGH_CONSENT_PLUGIN_PATHadmin/templates/options/components/input-search.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/popup/steps/step-01.php on line 17
- > PHP Notice
Undefined variable: slider_max in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/options/components/slider.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/options/option-advanced-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/options/components/cookie-settings.php:22
- > PHP Warning
Use of undefined constant COOKIE_DOUGH_CONSENT_PLUGIN_PATH - assumed 'COOKIE_DOUGH_CONSENT_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/popup/steps/step-01.php on line 17
- > PHP Notice
Undefined variable: slider_step in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/options/components/slider.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/options/components/alignment.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function cdc_cookie_default_values() in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/preview/demo.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/options/components/color.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cookie-dough-compliance-and-consent-for-gdpr/admin/templates/custom-settings-page.php:25
- > PHP Warning
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 Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: consent, rgpd, modal, gdpr, cookies...
cookie-dough-compliance-and-consent-for-gdpr/cookie-dough-consent.php 85% from 13 tests
The entry point to "Cookie Dough Compliance and Consent for GDPR" version 2.2.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cookie-dough-compliance-and-consent-for-gdpr.php" instead of "cookie-dough-consent.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,978 lines of code in 75 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 49 | 770 | 894 | 4,369 |
CSS | 5 | 454 | 6 | 3,265 |
PO File | 1 | 293 | 363 | 1,091 |
JavaScript | 6 | 72 | 158 | 210 |
SVG | 14 | 0 | 0 | 43 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.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 | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 15.56% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected