Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼12.60ms] Passed 4 tests
An overview of server-side resources used by kjrocker Cookie Consent
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 29.03 ▼13.11 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.84 ▼21.73 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.84 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 87.37 ▼14.09 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.42 ▲3.18 |
kjrocker Cookie Consent /wp-admin/options-general.php?page=rocker_kjcookie | 3.18 | 29.07 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
kj_version_number |
rocker_kjcookie |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
kjrocker Cookie Consent: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲168 | 13.91 ▼0.47 | 10.37 ▲8.27 | 44.24 ▼1.04 |
Dashboard /wp-admin | 2,196 ▲19 | 5.57 ▼0.03 | 88.93 ▼8.22 | 39.09 ▼6.56 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.99 ▼0.00 | 39.95 ▲4.24 | 35.23 ▲3.90 |
Add New Post /wp-admin/post-new.php | 1,548 ▼6 | 23.11 ▼0.06 | 702.13 ▲88.83 | 56.53 ▲1.18 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.07 | 94.85 ▼5.92 | 42.57 ▼0.26 |
kjrocker Cookie Consent /wp-admin/options-general.php?page=rocker_kjcookie | 1,362 | 2.25 | 46.91 | 33.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- rocker_kjcookie
- widget_recent-comments
- kj_version_number
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=rocker_kjcookie
- > Notice in wp-content/plugins/kjrocker-cookie-consent/defaults.php+53
Undefined index: port
- > GET request to /wp-admin/options-general.php?page=rocker_kjcookie
- > Notice in wp-content/plugins/kjrocker-cookie-consent/class-admin.php+56
Undefined index: lengthnum
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rocker_kjcookie
- > Notice in wp-content/plugins/kjrocker-cookie-consent/class-admin.php+143
Undefined index: blinkid
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
Almost there! Just fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kjrocker-cookie-consent/inc/tinymce.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/kjrocker-cookie-consent/defaults.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kjrocker-cookie-consent/eu-cookie-law.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kjrocker-cookie-consent/class-frontend.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kjrocker-cookie-consent/class-admin.php:3
- > 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 uses markdown syntax to describe your plugin to the world
3 plugin tags: cookie consent, gdpr, cookie bar
kjrocker-cookie-consent/eu-cookie-law.php 92% from 13 tests
The main PHP file in "kjrocker Cookie Consent" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("kjrocker-cookie-consent.php" instead of "eu-cookie-law.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected836 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 79 | 16 | 500 |
JavaScript | 3 | 23 | 8 | 161 |
CSS | 1 | 15 | 2 | 155 |
XML | 1 | 0 | 0 | 16 |
INI | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 30 | |
▷ Named functions | 25 | 83.33% |
▷ Anonymous functions | 5 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/block.png | 10.61KB | 4.91KB | ▼ 53.75% |
img/cookie.png | 1.03KB | 0.96KB | ▼ 7.37% |