79% gdpr-cookie-compliance

Code Review | GDPR Cookie Compliance (CCPA, DSGVO, Cookie Consent)

WordPress plugin GDPR Cookie Compliance (CCPA, DSGVO, Cookie Consent) scored79%from 54 tests.

About plugin

  • Plugin page: gdpr-cookie-compl...
  • Plugin version: 4.12.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Apr 18, 2018
  • Latest release: Oct 16, 2023
  • Number of updates: 219
  • Update frequency: every 9.2 days
  • Top authors: MooveAgency (83.11%)gaspar.nemes (17.35%)

Code review

54 tests

User reviews

140 reviews

Install metrics

200,000+ active /7,831,832 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.82MB] [CPU: ▲0.58ms] Passed 4 tests

This is a short check of server-side resources used by GDPR Cookie Compliance (CCPA, DSGVO, Cookie Consent)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.39 ▲0.9360.82 ▲23.35
Dashboard /wp-admin4.11 ▲0.8152.47 ▼5.48
Posts /wp-admin/edit.php4.16 ▲0.8146.74 ▲1.10
Add New Post /wp-admin/post-new.php6.98 ▲1.0988.28 ▲1.23
Media Library /wp-admin/upload.php3.97 ▲0.7440.00 ▲5.46
Licence Manager /wp-admin/admin.php?page=moove-gdpr_licence4.26491.69
Video Tutorial /wp-admin/admin.php?page=moove-gdpr_video-tutorial4.0438.27
Support /wp-admin/admin.php?page=moove-gdpr_support4.0435.31
GDPR Cookie Compliance /wp-admin/admin.php?page=moove-gdpr4.0745.20
Documentation /wp-admin/admin.php?page=moove-gdpr_help4.3437.01

Server storage [IO: ▲1.87MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 81 new files
Database: 1 new table, 7 new options
New tables
wp_gdpr_cc_options
New WordPress options
gdpr_cc_db_created
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GDPR Cookie Compliance (CCPA, DSGVO, Cookie Consent)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,174 ▲41313.53 ▼1.0410.09 ▲8.6439.44 ▲3.08
Dashboard /wp-admin2,257 ▲835.59 ▲0.0585.66 ▲0.3040.98 ▲1.78
Posts /wp-admin/edit.php2,168 ▲682.05 ▲0.0433.63 ▼1.3433.88 ▼4.51
Add New Post /wp-admin/post-new.php1,560 ▲3424.18 ▲1.24678.90 ▲26.7960.94 ▲5.83
Media Library /wp-admin/upload.php1,468 ▲654.21 ▲0.0194.20 ▼1.0543.57 ▲0.22
Licence Manager /wp-admin/admin.php?page=moove-gdpr_licence1,3311.9328.9743.35
Video Tutorial /wp-admin/admin.php?page=moove-gdpr_video-tutorial1,7196.4359.6163.67
Support /wp-admin/admin.php?page=moove-gdpr_support1,2651.8727.3032.12
GDPR Cookie Compliance /wp-admin/admin.php?page=moove-gdpr1,6563.7359.9187.15
Documentation /wp-admin/admin.php?page=moove-gdpr_help11,6714.71179.37174.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_gdpr_cc_options
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • gdpr_cc_db_created

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: ccpa, gdpr, cookie banner, cookie notice, dsgvo

gdpr-cookie-compliance/moove-gdpr.php 85% from 13 tests

The main file in "GDPR Cookie Compliance (CCPA, DSGVO, Cookie Consent)" v. 4.12.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gdpr-cookie-compliance.php" instead of "moove-gdpr.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin8,108 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP557631,0937,216
SVG200876
JavaScript40012
CSS4004

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity78.67
▷ Minimum class complexity2.00
▷ Maximum class complexity166.00
Average method complexity7.32
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods111
▷ Static methods4540.54%
▷ Public methods10998.20%
▷ Protected methods00.00%
▷ Private methods21.80%
Functions23
▷ Named functions2191.30%
▷ Anonymous functions28.70%
Constants2
▷ Global constants2100.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
6 PNG files occupy 0.37MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/images/gdpr-logo.png1.44KB1.54KB0.00%
dist/images/uat-promo-wp.png364.67KB99.99KB▼ 72.58%
dist/images/moove-gdpr-inputs.png1.89KB1.61KB▼ 14.90%
dist/images/gdpr-cookie-compliance-icon.png4.79KB3.83KB▼ 20.00%
dist/images/gdpr-icon.png1.78KB1.78KB0.00%