79% cf7-active-campaign

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

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

About plugin

  • Plugin page: cf7-active-campaign
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Jul 7, 2018
  • Latest release: Oct 6, 2023
  • Number of updates: 21
  • Update frequency: every 91.3 days
  • Top authors: CRMPerks (95.24%)codeincept (9.52%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /3,576 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.68MB] [CPU: ▲0.21ms] Passed 4 tests

Server-side resources used by Integration for ActiveCampaign and Contact Form 7, WPForms, Elementor, Ninja Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3053.46 ▲13.64
Dashboard /wp-admin4.18 ▲0.8354.22 ▲4.07
Posts /wp-admin/edit.php4.23 ▲0.8351.48 ▼0.99
Add New Post /wp-admin/post-new.php6.70 ▲0.7790.84 ▼7.76
Media Library /wp-admin/upload.php4.10 ▲0.8340.95 ▲5.53

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: 3 new tables, 7 new options
New tables
wp_vxcf_activecamp
wp_vxcf_activecamp_accounts
wp_vxcf_activecamp_log
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
vxcf_activecamp_version
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integration for ActiveCampaign and Contact Form 7, WPForms, Elementor, Ninja Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.14 ▼0.271.90 ▲0.3045.59 ▲7.11
Dashboard /wp-admin2,211 ▲315.56 ▼0.0490.74 ▼3.9540.85 ▼0.39
Posts /wp-admin/edit.php2,116 ▲131.98 ▼0.0136.46 ▼2.4534.91 ▼7.15
Add New Post /wp-admin/post-new.php1,544 ▲1823.23 ▼0.35628.35 ▼48.8953.98 ▲1.67
Media Library /wp-admin/upload.php1,419 ▲224.21 ▲0.0399.32 ▼11.0042.72 ▼1.13

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
These items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_vxcf_activecamp
    • wp_vxcf_activecamp_log
    • wp_vxcf_activecamp_accounts
  • The uninstall procedure has failed, leaving 7 options in the database
    • vxcf_activecamp_version
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ninja forms activecampaign integration, elementor forms activecampaign, activecampaign wpforms, contact form 7 activecampaign, contact form 7

cf7-active-campaign/cf7-active-campaign.php 92% from 13 tests

"Integration for ActiveCampaign and Contact Form 7, WPForms, Elementor, Ninja Forms" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 256 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin7,887 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP207747426,970
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
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 101)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity145.43
▷ Minimum class complexity6.00
▷ Maximum class complexity445.00
Average method complexity6.49
▷ Minimum method complexity1.00
▷ Maximum method complexity101.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods184
▷ Static methods63.26%
▷ Public methods17997.28%
▷ Protected methods00.00%
▷ Private methods52.72%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
images/updated.png1.53KB0.50KB▼ 67.37%
css/images/ui-bg_diagonals-small_75_ccd232_40x40.png0.33KB0.10KB▼ 69.97%
css/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%