79% cf7-mailchimp

Code Review | Integration for Mailchimp and Contact Form 7, WPForms, Elementor, Ninja Forms

WordPress plugin Integration for Mailchimp and Contact Form 7, WPForms, Elementor, Ninja Forms scored79%from 54 tests.

About plugin

  • Plugin page: cf7-mailchimp
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 23, 2018
  • Latest release: Oct 6, 2023
  • Number of updates: 32
  • Update frequency: every 56.6 days
  • Top authors: CRMPerks (84.38%)asif876 (18.75%)

Code review

54 tests

User reviews

27 reviews

Install metrics

8,000+ active /76,618 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.70MB] [CPU: ▲2.09ms] Passed 4 tests

This is a short check of server-side resources used by Integration for Mailchimp and Contact Form 7, WPForms, Elementor, Ninja Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3344.54 ▲6.11
Dashboard /wp-admin4.18 ▲0.8753.38 ▲6.31
Posts /wp-admin/edit.php4.23 ▲0.8750.55 ▲1.98
Add New Post /wp-admin/post-new.php6.70 ▲0.8183.94 ▼6.03
Media Library /wp-admin/upload.php4.03 ▲0.8040.62 ▲8.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 71 new files
Database: 3 new tables, 7 new options
New tables
wp_vxcf_mailchimp_accounts
wp_vxcf_mailchimp_log
wp_vxcf_mailchimp
New WordPress options
can_compress_scripts
vxcf_mailchimp_version
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Integration for Mailchimp and Contact Form 7, WPForms, Elementor, Ninja Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.37 ▲0.011.69 ▲0.0053.13 ▲11.61
Dashboard /wp-admin2,211 ▲345.62 ▲0.0684.01 ▼2.9337.41 ▼5.05
Posts /wp-admin/edit.php2,113 ▲131.98 ▼0.0133.78 ▼7.5534.68 ▼4.23
Add New Post /wp-admin/post-new.php1,539 ▲223.59 ▲5.30667.18 ▲62.4061.44 ▼1.87
Media Library /wp-admin/upload.php1,419 ▲194.16 ▲0.0196.60 ▲2.4041.96 ▲0.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 3 tables
    • wp_vxcf_mailchimp_log
    • wp_vxcf_mailchimp_accounts
    • wp_vxcf_mailchimp
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • vxcf_mailchimp_version
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 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 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 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: elementor form mailchimp, contact form 7 mailchimp, mailchimp, contact form 7, ninja forms mailchimp

cf7-mailchimp/cf7-mailchimp.php 85% from 13 tests

Analyzing the main PHP file in "Integration for Mailchimp and Contact Form 7, WPForms, Elementor, Ninja Forms" version 1.1.3
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 234 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected8,032 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP207877617,115
SVG100640
CSS52310271
JavaScript31206

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 113)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity154.29
▷ Minimum class complexity6.00
▷ Maximum class complexity473.00
Average method complexity6.65
▷ Minimum method complexity1.00
▷ Maximum method complexity113.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods190
▷ Static methods63.16%
▷ Public methods18496.84%
▷ Protected methods00.00%
▷ Private methods63.16%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
35 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffeb33_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%