79% cf7-constant-contact

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

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

About plugin

  • Plugin page: cf7-constant-contact
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 19, 2018
  • Latest release: Oct 6, 2023
  • Number of updates: 27
  • Update frequency: every 67.2 days
  • Top authors: CRMPerks (81.48%)asif876 (22.22%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /14,569 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Integration for Constant Contact and Contact Form 7, WPForms, Elementor, Ninja Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.3345.07 ▲2.46
Dashboard /wp-admin4.17 ▲0.8753.17 ▼1.97
Posts /wp-admin/edit.php4.22 ▲0.8747.02 ▼11.63
Add New Post /wp-admin/post-new.php6.69 ▲0.8197.10 ▲7.55
Media Library /wp-admin/upload.php4.03 ▲0.8042.37 ▲10.19

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 70 new files
Database: 3 new tables, 7 new options
New tables
wp_vxcf_ccontact_accounts
wp_vxcf_ccontact
wp_vxcf_ccontact_log
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
vxcf_ccontact_version

Browser metrics Passed 4 tests

Integration for Constant Contact and Contact Form 7, WPForms, Elementor, Ninja Forms: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.20 ▼1.181.70 ▼0.2543.63 ▼1.54
Dashboard /wp-admin2,225 ▲375.90 ▲1.0297.87 ▼9.0936.62 ▼9.78
Posts /wp-admin/edit.php2,105 ▲132.02 ▼0.0337.83 ▼9.6732.41 ▼7.12
Add New Post /wp-admin/post-new.php1,555 ▲3418.40 ▼4.78612.39 ▼52.3654.51 ▼5.80
Media Library /wp-admin/upload.php1,404 ▲164.16 ▼0.1094.09 ▼14.8842.16 ▼4.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_vxcf_ccontact
    • wp_vxcf_ccontact_log
    • wp_vxcf_ccontact_accounts
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • vxcf_ccontact_version

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: wpforms constant contact, elementor forms constant contact integration, contact form 7 constant contact, ninja forms constant contact

cf7-constant-contact/cf7-constant-contact.php 85% from 13 tests

This is the main PHP file of "Integration for Constant Contact and Contact Form 7, WPForms, Elementor, Ninja Forms" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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
  • Description: Please don't use more than 140 characters for the plugin description (currently 248 characters long)

Code Analysis 97% from 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
No dangerous file extensions were detected7,935 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP207667977,018
SVG100640
CSS52310271
JavaScript31206

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity148.57
▷ Minimum class complexity6.00
▷ Maximum class complexity466.00
Average method complexity6.35
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods193
▷ Static methods63.11%
▷ Public methods18796.89%
▷ Protected methods00.00%
▷ Private methods63.11%
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

All PNG images should be compressed to minimize bandwidth usage for end users
34 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/deleted.png0.48KB0.33KB▼ 31.03%
css/images/ui-bg_diagonals-small_75_ccd232_40x40.png0.33KB0.10KB▼ 69.97%
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
css/images/ui-icons_88a206_256x240.png4.44KB4.17KB▼ 6.02%