Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.22ms] Passed 4 tests
An overview of server-side resources used by Cookie Information - GDPR & ePrivacy Cookie Consent Solution
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.19 ▼1.51 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.32 ▼8.47 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 44.88 ▼1.95 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.39 ▼16.62 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.37 ▼1.84 |
Settings /wp-admin/admin.php?page=cookie-information-settings | 3.27 | 31.77 |
Cookie Information /wp-admin/admin.php?page=cookie-information | 3.27 | 32.31 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 12 new options
New WordPress options |
---|
enable-tcf |
can_compress_scripts |
enable-video-sdk |
enable-popup |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
disable-logged-in-users |
db_upgraded |
enable-gcm |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cookie Information - GDPR & ePrivacy Cookie Consent Solution
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲96 | 13.49 ▼0.86 | 11.86 ▲10.20 | 39.24 ▼3.97 |
Dashboard /wp-admin | 2,225 ▲45 | 5.64 ▼0.04 | 81.11 ▼20.13 | 38.25 ▼4.22 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.02 ▲0.08 | 33.88 ▼3.61 | 34.85 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,548 ▲19 | 23.55 ▲0.51 | 641.72 ▼22.35 | 47.76 ▼11.62 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.17 ▼0.07 | 94.93 ▼19.16 | 43.23 ▼7.37 |
Settings /wp-admin/admin.php?page=cookie-information-settings | 1,080 | 1.98 | 23.33 | 30.18 |
Cookie Information /wp-admin/admin.php?page=cookie-information | 854 | 1.99 | 22.68 | 29.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 12 options in the database
- enable-popup
- widget_recent-comments
- enable-tcf
- disable-logged-in-users
- enable-video-sdk
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- video-sdk-category
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cookie-information-consent-solution/cookie-information.php
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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 ([https://cookieinformation.com/extensions/wordpress/screenshot1.JPG The plugin screen once it has been installed]), #2 ([https://cookieinformation.com/extensions/wordpress/screenshot2.JPG Example of a consent popup from Cookie Information]), #3 ([https://cookieinformation.com/extensions/wordpress/screenshot3.JPG Privacy Controls to updating the users consent])
cookie-information-consent-solution/cookie-information.php 85% from 13 tests
"Cookie Information - GDPR & ePrivacy Cookie Consent Solution" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cookie-information-consent-solution.php" instead of "cookie-information.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin491 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 38 | 315 |
CSS | 1 | 6 | 1 | 149 |
JavaScript | 1 | 7 | 1 | 18 |
HTML | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/ci-logo.png | 17.29KB | 9.71KB | ▼ 43.81% |