10% genium-gdpr-consent-popup

Code Review | GDPR Consent

WordPress plugin GDPR Consent scored10%from 54 tests.

About plugin

  • Plugin page: genium-gdpr-conse...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2018
  • Latest release: Jan 19, 2023
  • Number of updates: 9
  • Update frequency: every 181.8 days
  • Top authors: genium (88.89%)nunosarmento (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /871 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0839.52 ▲6.35
Dashboard /wp-admin3.51 ▲0.2047.96 ▲2.80
Posts /wp-admin/edit.php3.62 ▲0.2644.49 ▼6.50
Add New Post /wp-admin/post-new.php6.09 ▲0.2093.31 ▼2.46
Media Library /wp-admin/upload.php3.43 ▲0.2042.37 ▲9.26
Genium - GDPR Consent Popup /wp-admin/options-general.php?page=ctcc3.4032.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲20713.75 ▼0.837.90 ▲5.7946.18 ▲0.63
Dashboard /wp-admin2,232 ▲415.05 ▲0.04104.15 ▼7.5540.79 ▼2.47
Posts /wp-admin/edit.php2,117 ▲282.28 ▲0.2646.50 ▲6.8842.48 ▲10.83
Add New Post /wp-admin/post-new.php1,531 ▼223.29 ▲0.10629.96 ▼96.6535.64 ▼18.24
Media Library /wp-admin/upload.php1,411 ▲234.40 ▲0.0495.43 ▼27.7342.61 ▼5.98
Genium - GDPR Consent Popup /wp-admin/options-general.php?page=ctcc1,0291.9427.9029.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)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP62061661,308
PO File19295223
CSS210213
JavaScript10438

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 code0.24
Average class complexity28.33
▷ Minimum class complexity19.00
▷ Maximum class complexity42.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/banner-772x250.png12.42KB3.48KB▼ 72.00%
assets/images/banner-1544x500.png29.77KB7.58KB▼ 74.54%
assets/images/icon-256x256.png21.32KB6.69KB▼ 68.63%
assets/images/icon-128x128.png11.94KB3.78KB▼ 68.34%