Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.08ms] Passed 4 tests
Analyzing server-side resources used by Pressidium Cookie Consent
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 44.00 ▲0.43 |
Dashboard /wp-admin | 3.43 ▲0.08 | 45.92 ▼12.87 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 50.86 ▲1.66 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 92.68 ▼5.52 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.75 ▲4.55 |
Server storage [IO: ▲2.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 126 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pressidium_cookie_consents |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
pressidium_cookie_consent_table_versions |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Pressidium Cookie Consent
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲117 | 14.34 ▼0.01 | 2.69 ▲0.96 | 44.57 ▼0.52 |
Dashboard /wp-admin | 2,253 ▲76 | 5.61 ▲0.03 | 90.08 ▼3.13 | 42.83 ▼1.89 |
Posts /wp-admin/edit.php | 2,154 ▲57 | 1.98 ▲0.02 | 40.24 ▼1.89 | 35.03 ▼0.97 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.30 ▲0.12 | 643.62 ▲51.89 | 50.90 ▼9.66 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.22 ▼0.04 | 95.80 ▼3.39 | 41.21 ▼2.12 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 30× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/pressidium-cookie-consent/includes/Admin/Page.php
- > /wp-content/plugins/pressidium-cookie-consent/includes/Feedback/Feedback.php
- > /wp-content/plugins/pressidium-cookie-consent/pressidium-cookie-consent.php
- > /wp-content/plugins/pressidium-cookie-consent/includes/Sanitizer.php
- > /wp-content/plugins/pressidium-cookie-consent/includes/Feedback/Feedback_Exception.php
- > /wp-content/plugins/pressidium-cookie-consent/includes/Database/Tables/Consents_Table.php
- > /wp-content/plugins/pressidium-cookie-consent/includes/Migrator.php
- > /wp-content/plugins/pressidium-cookie-consent/includes/Logs.php
- > /wp-content/plugins/pressidium-cookie-consent/includes/Client/Cookie_Consent.php
- > /wp-content/plugins/pressidium-cookie-consent/includes/Utils.php
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Pressidium\\WP\\CookieConsent\\Dependencies\\League\\Container\\Argument\\ArgumentResolverInterface' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Inflector/Inflector.php:9
- > PHP Fatal error
Uncaught Error: Class 'Pressidium\\WP\\CookieConsent\\Dependencies\\Psr\\Log\\AbstractLogger' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Pressidium\\WP\\CookieConsent\\Dependencies\\League\\Container\\Inflector\\InflectorAggregateInterface' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Inflector/InflectorAggregate.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Pressidium\\WP\\CookieConsent\\Dependencies\\League\\Container\\Argument\\ClassNameInterface' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Argument/ClassName.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Pressidium\\WP\\CookieConsent\\Dependencies\\League\\Container\\ServiceProvider\\ServiceProviderAggregateInterface' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/ServiceProvider/ServiceProviderAggregate.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Pressidium\\WP\\CookieConsent\\Dependencies\\League\\Container\\Argument\\ArgumentResolverInterface' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/ReflectionContainer.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Pressidium\\WP\\CookieConsent\\Dependencies\\League\\Container\\Argument\\RawArgumentInterface' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Argument/RawArgument.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Pressidium\\WP\\CookieConsent\\Dependencies\\League\\Container\\ServiceProvider\\ServiceProviderInterface' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/ServiceProvider/AbstractServiceProvider.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pressidium\\WP\\CookieConsent\\Feedback\\API' not found in wp-content/plugins/pressidium-cookie-consent/includes/Feedback/Feedback_API.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Pressidium\\WP\\CookieConsent\\Dependencies\\League\\Container\\ContainerAwareInterface' not found in wp-content/plugins/pressidium-cookie-consent/includes/Dependencies/League/Container/Definition/DefinitionInterface.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ccpa, gdpr, cookies, cookie, consent
pressidium-cookie-consent/pressidium-cookie-consent.php Passed 13 tests
"Pressidium Cookie Consent" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
134 characters long description:
Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.
Code Analysis Passed 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
No dangerous file extensions were detected36,522 lines of code in 104 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 30,289 |
PHP | 93 | 1,367 | 3,818 | 5,019 |
CSS | 3 | 195 | 36 | 1,124 |
JavaScript | 4 | 0 | 2 | 90 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 21 | |
Interfaces | 21 | |
Traits | 4 | |
Classes | 55 | |
▷ Abstract classes | 6 | 10.91% |
▷ Concrete classes | 49 | 89.09% |
▷ Final classes | 3 | 6.12% |
Methods | 443 | |
▷ Static methods | 37 | 8.35% |
▷ Public methods | 371 | 83.75% |
▷ Protected methods | 25 | 5.64% |
▷ Private methods | 47 | 10.61% |
Functions | 25 | |
▷ Named functions | 4 | 16.00% |
▷ Anonymous functions | 21 | 84.00% |
Constants | 31 | |
▷ Global constants | 5 | 16.13% |
▷ Class constants | 26 | 83.87% |
▷ Public constants | 26 | 100.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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon.png | 59.67KB | 23.14KB | ▼ 61.22% |