Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.38ms] Passed 4 tests
Server-side resources used by EU Cookie Law Notice/Banner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.56 ▼1.04 |
Dashboard /wp-admin | 3.35 ▲0.05 | 49.10 ▲0.98 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 52.65 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.99 ▼19.09 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.41 ▲1.62 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 14 new options
New WordPress options |
---|
widget_recent-posts |
ztb_access_key |
ztb_email |
db_upgraded |
access_key |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
ztb_domainid |
ztb_status_message |
... |
Browser metrics Passed 4 tests
Checking browser requirements for EU Cookie Law Notice/Banner
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.57 ▲0.22 | 1.86 ▲0.30 | 39.61 ▲0.31 |
Dashboard /wp-admin | 2,199 ▲25 | 5.58 ▼0.02 | 85.19 ▼14.35 | 80.07 ▲38.54 |
Posts /wp-admin/edit.php | 2,122 ▲25 | 1.97 ▼0.05 | 44.95 ▲8.36 | 38.82 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.14 ▼0.22 | 638.06 ▲5.54 | 62.83 ▲11.85 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.24 ▲0.07 | 103.74 ▼2.34 | 66.71 ▲17.40 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 14 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- access_key
- ztb_source
- db_upgraded
- ztb_status_message
- ztb_status_disconnect
- widget_recent-posts
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eu-cookie-notification/eu-cookie-notification.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Donate link: Invalid URI found ("")
eu-cookie-notification/eu-cookie-notification.php Passed 13 tests
"EU Cookie Law Notice/Banner" version 1.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
120 characters long description:
EU Cookie Notice shows cookie notification bar or box to inform users that your website uses cookie according to EU law.
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
Success! There were no dangerous files found in this plugin501 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 4 | 273 |
PHP | 1 | 19 | 15 | 188 |
JavaScript | 1 | 4 | 0 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/check.png | 2.96KB | 0.37KB | ▼ 87.47% |
assets/images/bg_body.png | 22.84KB | 9.83KB | ▼ 56.98% |
assets/images/logo-zotabox.png | 5.45KB | 2.43KB | ▼ 55.35% |
zotabox.png | 3.19KB | 0.44KB | ▼ 86.31% |