Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.77ms] Passed 4 tests
This is a short check of server-side resources used by GDPR Cookie Consent Notice Box
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 27.97 ▼13.80 |
Dashboard /wp-admin | 3.47 ▲0.16 | 51.09 ▲0.55 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 54.18 ▲6.54 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.75 ▼13.69 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.90 ▲3.88 |
Cookie Consent Box /wp-admin/options-general.php?page=cookie-consent-box | 3.34 | 37.07 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR Cookie Consent Notice Box
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,023 ▲266 | 15.01 ▲0.63 | 6.69 ▲4.23 | 50.53 ▲7.41 |
Dashboard /wp-admin | 2,361 ▲173 | 6.77 ▲1.90 | 137.27 ▲20.57 | 41.66 ▼2.34 |
Posts /wp-admin/edit.php | 2,279 ▲187 | 3.60 ▲1.47 | 73.41 ▲35.71 | 41.91 ▲7.00 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.44 ▲5.87 | 659.03 ▼27.83 | 36.83 ▼17.04 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.28 ▲0.10 | 85.59 ▼17.13 | 40.41 ▼1.11 |
Cookie Consent Box /wp-admin/options-general.php?page=cookie-consent-box | 1,467 | 3.47 | 60.01 | 25.71 |
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
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cookie-consent-box/admin/partials/cookie-consent-box-admin-display.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2 in cookie-consent-box/assets to your readme.txt
cookie-consent-box/cookie-consent-box.php 92% from 13 tests
The principal PHP file in "GDPR Cookie Consent Notice Box" v. 1.1.8 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
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
There were no executable files found in this plugin676 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 137 | 421 | 491 |
CSS | 1 | 0 | 0 | 96 |
JavaScript | 2 | 14 | 1 | 43 |
JSON | 2 | 0 | 0 | 29 |
XML | 1 | 5 | 6 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 24 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 25.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected