94% gravity-forms-active-campaign-add-on

Code Review | Gravity Forms Active Campaign Add-On

WordPress plugin Gravity Forms Active Campaign Add-On scored 94% from 54 tests.

About plugin

  • Plugin page: gravity-forms-act...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.4
  • WordPress version: 5.8.1
  • First release: Apr 16, 2015
  • Latest release: Mar 10, 2018
  • Number of updates: 8
  • Update frequency: every 146.5 days
  • Top authors: ximixi (62.5%)marifamir (50%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 5,372 total downloads

Benchmarks

Plugin footprint Passed 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 gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼141.32ms] Passed 4 tests

Server-side resources used by Gravity Forms Active Campaign Add-On
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.06 ▲0.3435.34 ▲13.75
Dashboard /wp-admin3.29 ▲0.2444.38 ▲2.73
Posts /wp-admin/edit.php3.34 ▲0.2440.62 ▼5.26
Add New Post /wp-admin/post-new.php5.59 ▲0.1687.00 ▼563.24
Media Library /wp-admin/upload.php3.17 ▲0.1733.09 ▲0.49

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravity Forms Active Campaign Add-On
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.82 ▲0.249.01 ▼0.8749.02 ▼2.78
Dashboard /wp-admin2,973 ▲425.90 ▼0.25140.24 ▼22.62115.74 ▲4.95
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0062.62 ▲0.8790.83 ▼3.16
Add New Post /wp-admin/post-new.php1,615 ▼25721.85 ▲2.75281.07 ▼88.68104.08 ▼2.60
Media Library /wp-admin/upload.php1,810 ▼05.03 ▲0.02147.59 ▼13.88123.81 ▲10.98

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/Form.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/Tracking.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/Message.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/Campaign.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/Contact.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/Webhook.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/Auth.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/List.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/User.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AC_Contact' not found in wp-content/plugins/gravity-forms-active-campaign-add-on/includes/Subscriber.class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (`/assets/screenshot-1.png`) image not found
The official readme.txt might help

gravity-forms-active-campaign-add-on/index.php 92% from 13 tests

The main file in "Gravity Forms Active Campaign Add-On" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gravity-forms-active-campaign-add-on.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,128 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP17264801,128

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.81
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods116
▷ Static methods00.00%
▷ Public methods116100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/tick.png0.29KB0.37KB0.00%
images/cross.png0.59KB0.58KB▼ 2.15%