Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.02ms] Passed 4 tests
Server-side resources used by Can I Use Cookies ?
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.94 ▼3.62 |
Dashboard /wp-admin | 3.36 ▲0.06 | 53.60 ▼0.46 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 52.31 ▲1.85 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.53 ▼17.85 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 40.02 ▲2.94 |
Cookies Consent /wp-admin/options-general.php?page=can-i-use-cookies-settings | 3.25 | 34.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please try to fix the following items
- Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/can-i-use-cookies/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Can I Use Cookies ?
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲104 | 13.22 ▼1.29 | 3.39 ▲1.56 | 45.74 ▼0.22 |
Dashboard /wp-admin | 2,225 ▲22 | 4.84 ▼1.06 | 106.05 ▼11.90 | 41.16 ▼3.14 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.97 ▼0.05 | 40.66 ▼5.70 | 34.35 ▼4.74 |
Add New Post /wp-admin/post-new.php | 1,549 ▲18 | 23.18 ▼0.16 | 660.54 ▼33.04 | 51.35 ▼4.99 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.19 | 103.15 ▼15.10 | 42.62 ▼6.25 |
Cookies Consent /wp-admin/options-general.php?page=can-i-use-cookies-settings | 849 | 2.02 | 22.72 | 26.57 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: ccpa, cookies, cookie, gdpr, popup...
can-i-use-cookies/can-i-use-cookies.php Passed 13 tests
The primary PHP file in "Can I Use Cookies ?" version 1.0.1 is used by WordPress to initiate all plugin functionality
118 characters long description:
Ask the user for his consent about cookies and tracking, and comply with the EU GDPR privacy law and CCPA regulations.
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
Good job! No executable or dangerous file extensions detected280 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 52 | 34 | 279 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 6 | 26.09% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cookie.png | 12.81KB | 13.29KB | 0.00% |