Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.37ms] Passed 4 tests
Analyzing server-side resources used by Kokku Cookie Banner
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 36.10 ▼10.36 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.78 ▼1.37 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.98 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 94.03 ▼1.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.14 ▲3.17 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
kokku_cookie_banner_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Kokku Cookie Banner
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲232 | 13.77 ▼0.97 | 6.32 ▲4.42 | 39.19 ▼2.00 |
Dashboard /wp-admin | 2,244 ▲55 | 5.08 ▲0.11 | 106.96 ▼1.37 | 39.17 ▼6.11 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.29 ▲0.29 | 39.51 ▲2.15 | 33.68 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,541 ▲21 | 23.11 ▼0.05 | 590.43 ▼91.39 | 33.23 ▼20.91 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.53 ▲0.31 | 100.29 ▲1.08 | 42.80 ▲0.26 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 50% 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
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kokku-cookie-banner/templates/cookie-banner.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kokku-cookie-banner/includes/pages.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kokku-cookie-banner/includes/general.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kokku-cookie-banner/includes/cookie-banner.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kokku-cookie-banner/includes/menus.php:31
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: gdpr, cookie banner, cookie consent
kokku-cookie-banner/kokku-cookie-banner.php 92% from 13 tests
The primary PHP file in "Kokku Cookie Banner" version 1.8.8 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,047 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 116 | 387 | 709 |
JavaScript | 6 | 31 | 33 | 175 |
Sass | 1 | 19 | 0 | 127 |
JSON | 1 | 0 | 0 | 28 |
XML | 1 | 0 | 0 | 7 |
CSS | 1 | 1 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
There are no PNG files in this plugin