Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.17MB] [CPU: ▲0.05ms] Passed 4 tests
A check of server-side resources used by GDPR Consent
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.52 ▲6.35 |
Dashboard /wp-admin | 3.51 ▲0.20 | 47.96 ▲2.80 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 44.49 ▼6.50 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 93.31 ▼2.46 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 42.37 ▲9.26 |
Genium - GDPR Consent Popup /wp-admin/options-general.php?page=ctcc | 3.40 | 32.69 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 10 new options
New WordPress options |
---|
ctcc_styles_settings |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
ctcc_options_settings |
widget_recent-posts |
ggcp_more_info_page |
ctcc_content_settings |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
GDPR Consent: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,978 ▲207 | 13.75 ▼0.83 | 7.90 ▲5.79 | 46.18 ▲0.63 |
Dashboard /wp-admin | 2,232 ▲41 | 5.05 ▲0.04 | 104.15 ▼7.55 | 40.79 ▼2.47 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 2.28 ▲0.26 | 46.50 ▲6.88 | 42.48 ▲10.83 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.29 ▲0.10 | 629.96 ▼96.65 | 35.64 ▼18.24 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.40 ▲0.04 | 95.43 ▼27.73 | 42.61 ▼5.98 |
Genium - GDPR Consent Popup /wp-admin/options-general.php?page=ctcc | 1,029 | 1.94 | 27.90 | 29.69 |
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
- The uninstall procedure has failed, leaving 10 options in the database
- db_upgraded
- ctcc_options_settings
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- ctcc_styles_settings
- ctcc_content_settings
- widget_recent-posts
- widget_recent-comments
- ggcp_more_info_page
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Notification bar along the top of the screen), #2 (Detail of notification bar on the bottom of the screen), #3 (Notification box in corner), #4 (Customization panel), #5 (Example settings page)
genium-gdpr-consent-popup/genium-gdpr-consent-popup.php Passed 13 tests
The main file in "GDPR Consent" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
14 characters long description:
Consent Popup.
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
There were no executable files found in this plugin1,782 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 206 | 166 | 1,308 |
PO File | 1 | 92 | 95 | 223 |
CSS | 2 | 1 | 0 | 213 |
JavaScript | 1 | 0 | 4 | 38 |
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.24 |
Average class complexity | 28.33 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner-772x250.png | 12.42KB | 3.48KB | ▼ 72.00% |
assets/images/banner-1544x500.png | 29.77KB | 7.58KB | ▼ 74.54% |
assets/images/icon-256x256.png | 21.32KB | 6.69KB | ▼ 68.63% |
assets/images/icon-128x128.png | 11.94KB | 3.78KB | ▼ 68.34% |