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.33MB] [CPU: ▼6.98ms] Passed 4 tests
A check of server-side resources used by Cookie Notice & Consent Banner for GDPR & CCPA Compliance
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 40.41 ▼5.82 |
Dashboard /wp-admin | 3.66 ▲0.32 | 54.97 ▼12.53 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 56.66 ▲10.44 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 98.74 ▼13.02 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 37.66 ▲3.47 |
Settings /wp-admin/admin.php?page=cncb_options | 3.55 | 33.88 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 69 new files
Database: no new tables, 15 new options
New WordPress options |
---|
cncb_by_scroll_value |
cncb_by_click |
cncb_by_delay_value |
widget_recent-posts |
widget_theysaidso_widget |
cncb_refuse_code_body |
cncb_refuse_code |
cncb_show_banner |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Cookie Notice & Consent Banner for GDPR & CCPA Compliance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲98 | 14.39 ▲0.04 | 6.35 ▲4.50 | 50.59 ▲2.13 |
Dashboard /wp-admin | 2,240 ▲63 | 5.51 ▼0.09 | 85.79 ▼14.25 | 45.71 ▲1.51 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.07 ▲0.10 | 42.30 ▲7.24 | 38.98 ▲6.04 |
Add New Post /wp-admin/post-new.php | 1,549 ▲21 | 23.47 ▲0.40 | 681.26 ▲20.27 | 77.90 ▲28.32 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.24 ▲0.06 | 104.30 ▲2.57 | 45.82 ▲1.77 |
Settings /wp-admin/admin.php?page=cncb_options | 1,081 | 2.04 | 23.68 | 29.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- cncb_refuse_code
- cncb_refuse_code_body
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/cookie-notice-and-consent-banner/includes/customizer/sections/class-cncb-section.php:7
- > PHP Fatal error
Uncaught Error: Class 'CNCB_Custom_Control' not found in wp-content/plugins/cookie-notice-and-consent-banner/includes/customizer/controls/class-cncb-image-radio-button-custom-control.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/cookie-notice-and-consent-banner/includes/customizer/controls/class-cncb-custom-control.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-notice-and-consent-banner/includes/admin/class-cncb-admin.php:63
- > PHP Fatal error
Uncaught Error: Class 'CNCB_Custom_Control' not found in wp-content/plugins/cookie-notice-and-consent-banner/includes/customizer/controls/class-cncb-link-custom-control.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-notice-and-consent-banner/includes/admin/class-cncb-deactivate-popup.php:48
- > PHP Fatal error
Uncaught Error: Class 'CNCB_Custom_Control' not found in wp-content/plugins/cookie-notice-and-consent-banner/includes/customizer/controls/class-cncb-palette-radio-button-custom-control.php:12
- > PHP Fatal error
Uncaught Error: Class 'CNCB_Custom_Control' not found in wp-content/plugins/cookie-notice-and-consent-banner/includes/customizer/controls/class-cncb-text-custom-control.php:12
- > PHP Fatal error
Uncaught Error: Class 'CNCB_Custom_Control' not found in wp-content/plugins/cookie-notice-and-consent-banner/includes/customizer/controls/class-cncb-space-custom-control.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cookie-notice-and-consent-banner/includes/customizer/custom-controls.php:10
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2 in cookie-notice-and-consent-banner/assets to your readme.txt
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cookie-notice-and-consent-banner/class-cncb-main.php 92% from 13 tests
"Cookie Notice & Consent Banner for GDPR & CCPA Compliance" version 1.7.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cookie-notice-and-consent-banner.php" instead of "class-cncb-main.php")
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
No dangerous file extensions were detected5,141 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 254 | 648 | 2,435 |
JavaScript | 12 | 98 | 18 | 1,204 |
PO File | 3 | 364 | 476 | 831 |
CSS | 8 | 42 | 23 | 671 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 54 | |
▷ Static methods | 9 | 16.67% |
▷ Public methods | 38 | 70.37% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 15 | 27.78% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
18 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/position-top-right.png | 0.30KB | 0.13KB | ▼ 58.12% |
img/position-bottom-left.png | 0.30KB | 0.13KB | ▼ 57.33% |
img/btn-type-2.png | 6.08KB | 2.91KB | ▼ 52.07% |
img/form-line.png | 0.30KB | 0.13KB | ▼ 58.20% |
img/blank-rectangle.png | 5.20KB | 1.68KB | ▼ 67.67% |