Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.33ms] Passed 4 tests
Server-side resources used by Cookie Notice & Consent
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.17 ▼0.83 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.71 ▼2.88 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 47.12 ▼1.00 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 94.34 ▼4.38 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.50 ▼1.04 |
Cookies /wp-admin/options-general.php?page=cookie-notice-consent | 3.29 | 32.45 |
Cookie Consents /wp-admin/edit.php?post_type=cookie_consent | 3.38 | 36.66 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 12 new options
New WordPress options |
---|
cookie_notice_consent_category_marketing |
cookie_notice_consent_category_functional |
widget_recent-comments |
cookie_notice_consent_consent_settings |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
cookie_notice_consent_category_essential |
widget_recent-posts |
cookie_notice_consent_design_settings |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Cookie Notice & Consent
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲114 | 13.27 ▼1.11 | 6.29 ▲4.59 | 47.23 ▲2.69 |
Dashboard /wp-admin | 2,214 ▲23 | 5.79 ▲0.91 | 103.30 ▼2.69 | 39.51 ▼7.96 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.02 | 39.38 ▲1.05 | 34.47 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.23 ▲2.18 | 688.29 ▼24.47 | 57.60 ▲5.92 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.20 ▲0.00 | 97.36 ▼13.97 | 41.71 ▼5.17 |
Cookies /wp-admin/options-general.php?page=cookie-notice-consent | 1,001 | 2.01 | 39.20 | 27.70 |
Cookie Consents /wp-admin/edit.php?post_type=cookie_consent | 1,077 | 1.93 | 39.89 | 29.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 12 options in the database
- widget_recent-comments
- cookie_notice_consent_category_essential
- cookie_notice_consent_design_settings
- cookie_notice_consent_general_settings
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- cookie_notice_consent_category_functional
- widget_recent-posts
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: A description for screenshot #6 is missing in cookie-notice-consent/assets to your readme.txt
cookie-notice-consent/cookie-notice-consent.php Passed 13 tests
The primary PHP file in "Cookie Notice & Consent" version 1.6.1 is used by WordPress to initiate all plugin functionality
105 characters long description:
Display a cookie notice, collect consent for different categories and output scripts if consent is given.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,850 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 217 | 352 | 1,353 |
CSS | 6 | 16 | 0 | 275 |
JavaScript | 3 | 26 | 0 | 199 |
XML | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 2 | 1.72% |
▷ Public methods | 111 | 95.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.31% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin