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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.35MB] [CPU: ▲4.16ms] Passed 4 tests
An overview of server-side resources used by Cookie Notice & Compliance for GDPR / CCPA
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.81 ▲1.34 | 48.09 ▲6.92 |
Dashboard /wp-admin | 4.67 ▲1.32 | 58.44 ▼5.13 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 58.55 ▲10.85 |
Add New Post /wp-admin/post-new.php | 7.27 ▲1.38 | 94.92 ▲3.99 |
Media Library /wp-admin/upload.php | 4.59 ▲1.36 | 43.71 ▲11.92 |
Consent Logs /wp-admin/admin.php?page=cookie-notice&tab=consent-logs | 4.51 | 41.87 |
Settings /wp-admin/admin.php?page=cookie-notice | 4.58 | 45.46 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Cookie Notice & Compliance for GDPR / CCPA
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲192 | 14.33 ▲0.10 | 1.47 ▼0.18 | 37.38 ▼7.62 |
Dashboard /wp-admin | 2,333 ▲163 | 5.70 ▲0.02 | 99.71 ▲0.13 | 90.21 ▲47.75 |
Posts /wp-admin/edit.php | 2,175 ▲75 | 2.14 ▲0.17 | 41.19 ▲6.44 | 35.57 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 23.43 ▲0.23 | 672.61 ▲48.29 | 54.21 ▲6.13 |
Media Library /wp-admin/upload.php | 1,478 ▲81 | 4.32 ▲0.15 | 99.39 ▲2.94 | 44.86 ▲4.48 |
Consent Logs /wp-admin/admin.php?page=cookie-notice&tab=consent-logs | 1,047 | 2.80 | 53.27 | 35.53 |
Settings /wp-admin/admin.php?page=cookie-notice | 2,174 | 3.36 | 79.20 | 44.65 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 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
6 plugin tags: privacy, consent, ccpa, gdpr, compliance...
cookie-notice/cookie-notice.php 92% from 13 tests
The main PHP script in "Cookie Notice & Compliance for GDPR / CCPA" version 2.4.13 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin13,535 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 1,313 | 2,089 | 6,814 |
CSS | 14 | 663 | 109 | 3,641 |
JavaScript | 16 | 757 | 592 | 2,590 |
Sass | 1 | 44 | 26 | 485 |
SVG | 5 | 0 | 0 | 5 |
HTML | 1 | 0 | 1 | 0 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 151)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 51.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 244.00 |
Average method complexity | 5.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 151.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 210 | |
▷ Static methods | 3 | 1.43% |
▷ Public methods | 201 | 95.71% |
▷ Protected methods | 1 | 0.48% |
▷ Private methods | 8 | 3.81% |
Functions | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.91MB with 0.57MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/screen-compliance.png | 408.78KB | 134.11KB | ▼ 67.19% |
img/layout-left.png | 2.33KB | 0.49KB | ▼ 79.00% |
img/layout-bottom.png | 2.35KB | 0.47KB | ▼ 80.06% |
img/screen-notice.png | 292.39KB | 90.98KB | ▼ 68.89% |
img/consent-logs.png | 180.79KB | 142.13KB | ▼ 21.39% |