Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.88ms] Passed 4 tests
Analyzing server-side resources used by Awesome GDPR Compliant Cookie Consent and Notice
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.43 ▲0.37 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.01 ▼16.94 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.88 ▲4.55 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.49 ▼11.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.69 ▲4.16 |
Awesome Cookie Consent /wp-admin/options-general.php?page=ta_gcccn | 3.37 | 33.78 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_theysaidso_widget |
gcccn_dismiss_button_text |
gcccn_popup_hide_pages |
db_upgraded |
gcccn_url_cookie_policy_link |
widget_recent-posts |
theysaidso_admin_options |
gcccn_cookie_policy_url_type |
gcccn_layout_configuration |
gcccn_cookie_expiry_duration |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Awesome GDPR Compliant Cookie Consent and Notice
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲211 | 13.61 ▼1.17 | 8.70 ▲6.36 | 44.23 ▲0.84 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.00 | 107.49 ▼8.78 | 36.33 ▼11.19 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.03 | 40.52 ▲2.74 | 35.01 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.34 ▼0.02 | 598.59 ▼72.33 | 51.52 ▼8.68 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.17 ▼0.14 | 93.22 ▼6.98 | 43.24 ▼0.95 |
Awesome Cookie Consent /wp-admin/options-general.php?page=ta_gcccn | 985 | 2.63 | 38.68 | 24.31 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 15 options in the database
- gcccn_cookie_policy_url_type
- widget_recent-comments
- widget_recent-posts
- gcccn_dismiss_button_text
- widget_theysaidso_widget
- gcccn_policy_link_text
- db_upgraded
- gcccn_cookie_expiry_duration
- theysaidso_admin_options
- gcccn_open_new_tab
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/awesome-cookie-consent/classes/class-gcccn.php
- > /wp-content/plugins/awesome-cookie-consent/classes/class-gcccn-front.php
- > /wp-content/plugins/awesome-cookie-consent/classes/class-gcccn-i18n.php
- > /wp-content/plugins/awesome-cookie-consent/awesome-cookie-consent.php
- > /wp-content/plugins/awesome-cookie-consent/classes/class-gcccn-admin.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-cookie-consent/templates/gcccn-cookie-consent-text.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-cookie-consent/templates/gcccn-general-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-cookie-consent/templates/gcccn-layout-configuration.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: cookie law, cookie consent, eu cookie law, cookie, compliance...
awesome-cookie-consent/awesome-cookie-consent.php 92% from 13 tests
The entry point to "Awesome GDPR Compliant Cookie Consent and Notice" version 3.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- 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 not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,365 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 111 | 148 | 1,738 |
CSS | 4 | 185 | 1 | 937 |
JavaScript | 4 | 25 | 1 | 417 |
PO File | 2 | 114 | 154 | 273 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 6.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin