80% gf-constant-contact

Code Review | WP Gravity Forms Constant Contact Plugin

WordPress plugin WP Gravity Forms Constant Contact Plugin scored 80% from 54 tests.

About plugin

  • Plugin page: gf-constant-contact
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Mar 4, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 20
  • Update frequency: every 84.7 days
  • Top authors: CRMPerks (85%)asif876 (20%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 9,322 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.42ms] Passed 4 tests

A check of server-side resources used by WP Gravity Forms Constant Contact Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.46 ▲0.68
Dashboard /wp-admin3.36 ▲0.0547.47 ▲0.74
Posts /wp-admin/edit.php3.47 ▲0.1245.55 ▼0.78
Add New Post /wp-admin/post-new.php5.94 ▲0.0692.57 ▼2.30
Media Library /wp-admin/upload.php3.28 ▲0.0537.77 ▲4.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: 3 new tables, 7 new options
New tables
wp_vxg_ccontact
wp_vxg_ccontact_accounts
wp_vxg_ccontact_log
New WordPress options
vxg_ccontact_pro_version
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Gravity Forms Constant Contact Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲1414.76 ▲1.161.75 ▼0.1643.11 ▲2.59
Dashboard /wp-admin2,234 ▲284.85 ▼0.95116.24 ▲19.2742.55 ▲3.11
Posts /wp-admin/edit.php2,114 ▲252.07 ▲0.0842.11 ▲7.8037.48 ▲3.76
Add New Post /wp-admin/post-new.php1,551 ▲923.22 ▲4.91581.76 ▼38.3353.02 ▼2.66
Media Library /wp-admin/upload.php1,410 ▲224.21 ▲0.0299.07 ▲2.3941.44 ▲0.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_vxg_ccontact_accounts
    • wp_vxg_ccontact
    • wp_vxg_ccontact_log
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • vxg_ccontact_pro_version
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
4 plugin tags: constant contact, gravity forms constant contact, gravity forms, gravity forms and constant contact

gf-constant-contact/gf-constant-contact.php 92% from 13 tests

The main file in "WP Gravity Forms Constant Contact Plugin" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin6,572 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP206998946,566
JavaScript2105
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity105.25
▷ Minimum class complexity6.00
▷ Maximum class complexity305.00
Average method complexity5.93
▷ Minimum method complexity1.00
▷ Maximum method complexity96.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods169
▷ Static methods31.78%
▷ Public methods15994.08%
▷ Protected methods00.00%
▷ Private methods105.92%
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
9 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/active1.png0.21KB0.18KB▼ 16.89%
images/deleted.png0.48KB0.33KB▼ 31.03%
images/active0.png0.22KB0.18KB▼ 16.67%
images/failed.png1.54KB0.48KB▼ 68.88%
images/ccontact-crm-logo.png7.41KB3.94KB▼ 46.75%