90% eu-opt-in-compliance-for-mailchimp

Code Review | GDPR Compliance for Mailchimp

WordPress plugin GDPR Compliance for Mailchimp scored90%from 54 tests.

About plugin

  • Plugin page: eu-opt-in-complia...
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Oct 2, 2023
  • Number of updates: 77
  • Update frequency: every 32.7 days
  • Top authors: yikesitskevin (70.13%)yikesinc (11.69%)jpowersdev (9.09%)eherman24 (7.79%)fmixell (6.49%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active /49,308 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼10.52ms] Passed 4 tests

Server-side resources used by GDPR Compliance for Mailchimp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.0043.85 ▼0.56
Dashboard /wp-admin3.57 ▼0.0750.77 ▼14.87
Posts /wp-admin/edit.php3.68 ▲0.0051.15 ▼2.23
Add New Post /wp-admin/post-new.php6.15 ▲0.0089.75 ▼24.41
Media Library /wp-admin/upload.php3.49 ▲0.0039.70 ▼0.14

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

GDPR Compliance for Mailchimp: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.30 ▲0.131.73 ▼0.2442.15 ▼1.88
Dashboard /wp-admin2,195 ▲185.58 ▼0.1087.50 ▼7.8840.95 ▼4.18
Posts /wp-admin/edit.php2,100 ▲32.00 ▲0.0033.19 ▼5.6535.57 ▼0.84
Add New Post /wp-admin/post-new.php1,548 ▲323.23 ▼0.16674.72 ▼17.9559.30 ▲6.09
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.06101.46 ▼14.6642.90 ▼4.94

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: eu, opt-in, yikes mailchimp, gdpr, law...

eu-opt-in-compliance-for-mailchimp/yikes-inc-easy-mailchimp-eu-law-compliance-extension.php 92% from 13 tests

The primary PHP file in "GDPR Compliance for Mailchimp" version 1.3.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eu-opt-in-compliance-for-mailchimp.php" instead of "yikes-inc-easy-mailchimp-eu-law-compliance-extension.php")

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
Everything looks great! No dangerous files found in this plugin420 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP292209305
JavaScript425869
CSS45135
SVG10011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity30.50
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity3.81
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1361.90%
▷ Protected methods00.00%
▷ Private methods838.10%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin