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.10MB] [CPU: ▼7.70ms] Passed 4 tests
Analyzing server-side resources used by GDPR Cookies pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 48.81 ▲0.50 |
Dashboard /wp-admin | 3.41 ▲0.10 | 49.13 ▼11.19 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 51.97 ▼5.66 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.89 ▼14.44 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.29 ▲1.96 |
Server storage [IO: ▲4.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options |
---|
gdpr_cookies_pro |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for GDPR Cookies pro
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,023 ▲262 | 13.84 ▼0.88 | 17.37 ▲15.34 | 49.99 ▲7.56 |
Dashboard /wp-admin | 2,230 ▲53 | 5.65 ▲0.00 | 89.38 ▼11.50 | 38.20 ▼6.19 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.03 ▲0.08 | 34.70 ▼3.92 | 40.32 ▲4.93 |
Add New Post /wp-admin/post-new.php | 1,539 ▲9 | 23.33 ▲0.23 | 655.93 ▲8.16 | 50.23 ▼6.10 |
Media Library /wp-admin/upload.php | 1,436 ▲36 | 4.34 ▲0.13 | 100.66 ▲3.70 | 42.55 ▼0.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- gdpr_cookies_pro
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gdpr-cookies-pro/gdpr-cookies-pro.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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Contributors: Contributors not specified
gdpr-cookies-pro/gdpr-cookies-pro.php Passed 13 tests
The primary PHP file in "GDPR Cookies pro" version 1.3.96 is used by WordPress to initiate all plugin functionality
84 characters long description:
An easy way to get GDPR cookies consent with location filter and fully customizable.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,909 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 163 | 28 | 966 |
PHP | 2 | 113 | 11 | 650 |
CSS | 2 | 44 | 4 | 293 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/img/cookie.png | 1.87KB | 0.83KB | ▼ 55.74% |
resources/css/gdprcp-transparent-pattern.png | 1.30KB | 0.17KB | ▼ 87.12% |