84% easy-gdpr-consent-mailchimp

Code Review | Easy GDPR Consent Forms - MailChimp

WordPress plugin Easy GDPR Consent Forms - MailChimp scored84%from 54 tests.

About plugin

  • Plugin page: easy-gdpr-consent...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.6
  • WordPress version: 6.3.1
  • First release: May 23, 2018
  • Latest release: Jun 15, 2018
  • Number of updates: 10
  • Update frequency: every 2.3 days
  • Top authors: asadkn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /14,032 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.67MB] [CPU: ▲1.01ms] Passed 4 tests

This is a short check of server-side resources used by Easy GDPR Consent Forms - MailChimp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1741.30 ▲1.49
Dashboard /wp-admin4.14 ▲0.8456.81 ▲8.43
Posts /wp-admin/edit.php4.22 ▲0.8753.87 ▲3.76
Add New Post /wp-admin/post-new.php6.74 ▲0.8594.23 ▼4.26
Media Library /wp-admin/upload.php4.06 ▲0.8341.11 ▲3.06
GDPR Consent Forms /wp-admin/edit.php?post_type=egcf_forms4.1143.84
Consent Log /wp-admin/edit.php?post_type=egcf_forms&page=egcf-consent-log4.0440.02
Download /wp-admin/admin.php?page=egcf-download-database3.9737.93
Add New /wp-admin/post-new.php?post_type=egcf_forms4.6057.49

Server storage [IO: ▲3.10MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 401 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Easy GDPR Consent Forms - MailChimp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,021 ▲27513.70 ▼0.4411.07 ▲9.0349.60 ▲6.61
Dashboard /wp-admin2,252 ▲644.93 ▲0.07101.76 ▼10.8037.00 ▼4.45
Posts /wp-admin/edit.php2,132 ▲462.09 ▲0.0840.21 ▲2.6834.98 ▲2.08
Add New Post /wp-admin/post-new.php1,548 ▲2023.36 ▲5.06678.10 ▲47.1466.23 ▲10.06
Media Library /wp-admin/upload.php1,434 ▲494.28 ▲0.0699.36 ▼9.8942.16 ▲0.49
GDPR Consent Forms /wp-admin/edit.php?post_type=egcf_forms1,0962.0136.5630.54
Consent Log /wp-admin/edit.php?post_type=egcf_forms&page=egcf-consent-log8611.8027.8538.86
Download /wp-admin/admin.php?page=egcf-download-database6891.557.6818.37
Add New /wp-admin/post-new.php?post_type=egcf_forms2,8758.48170.28159.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 38× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_File.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/CMB2_hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Date.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/easy-gdpr-consent-mailchimp/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% 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
8 plugin tags: popup, mc4wp, dsgvo, newsletter, forms...

easy-gdpr-consent-mailchimp/easy-gdpr-consent-mailchimp.php 92% from 13 tests

Analyzing the main PHP file in "Easy GDPR Consent Forms - MailChimp" version 1.0.1
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin53,842 lines of code in 250 files:
LanguageFilesBlank linesComment linesLines of code
PO File12013,78717,89031,582
PHP762,4366,2878,576
CSS141,1651,1775,167
JSON5004,232
Sass17331251,547
JavaScript93854491,464
Markdown62890776
C17315476
m415014
C/C++ Header14128

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity17.41
▷ Minimum class complexity1.00
▷ Maximum class complexity182.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes79
▷ Abstract classes810.13%
▷ Concrete classes7189.87%
▷ Final classes00.00%
Methods598
▷ Static methods8614.38%
▷ Public methods48480.94%
▷ Protected methods8814.72%
▷ Private methods264.35%
Functions43
▷ Named functions3786.05%
▷ Anonymous functions613.95%
Constants11
▷ Global constants327.27%
▷ Class constants872.73%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/webdevstudios/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
vendor/webdevstudios/cmb2/images/ico-delete.png0.70KB0.72KB0.00%
vendor/webdevstudios/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
vendor/webdevstudios/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
vendor/webdevstudios/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%