83% gravity-forms-exacttarget

Code Review | Gravity Forms ExactTarget Add-on

WordPress plugin Gravity Forms ExactTarget Add-on scored83%from 54 tests.

About plugin

  • Plugin page: gravity-forms-exa...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Aug 31, 2011
  • Latest release: Jun 18, 2014
  • Number of updates: 19
  • Update frequency: every 54.1 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /5,965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼5.25ms] Passed 4 tests

An overview of server-side resources used by Gravity Forms ExactTarget Add-on
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2237.03 ▼3.23
Dashboard /wp-admin3.52 ▲0.2248.54 ▼4.34
Posts /wp-admin/edit.php3.64 ▲0.2854.34 ▲4.07
Add New Post /wp-admin/post-new.php6.10 ▲0.2286.18 ▼10.54
Media Library /wp-admin/upload.php3.45 ▲0.2234.42 ▼2.90

Server storage [IO: ▲0.35MB] [DB: ▲0.31MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Gravity Forms ExactTarget Add-on
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲5413.19 ▼1.402.02 ▲0.0040.26 ▼3.60
Dashboard /wp-admin2,221 ▲185.86 ▲0.98104.56 ▲4.1441.83 ▲2.95
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0835.03 ▼4.6233.07 ▼4.46
Add New Post /wp-admin/post-new.php1,554 ▲2818.10 ▲0.66596.84 ▼95.5763.62 ▼3.60
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0195.34 ▼9.5841.04 ▼5.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/gravity-forms-exacttarget/register.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-exacttarget/exacttarget.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (The Gravity Forms ExactTarget Add-on settings page), #2 (It's easy to integrate Gravity Forms with ExactTarget: set up a "Feed" and match up the fields you'd like sent to ExactTarget)
You can take inspiration from this readme.txt

gravity-forms-exacttarget/exacttarget.php 92% from 13 tests

The main file in "Gravity Forms ExactTarget Add-on" v. 1.0.6 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-exacttarget.php" instead of "exacttarget.php")

Code Analysis Passed 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 detected2,475 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46211132,475

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity95.00
▷ Minimum class complexity9.00
▷ Maximum class complexity189.00
Average method complexity5.86
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods58
▷ Static methods3763.79%
▷ Public methods4374.14%
▷ Protected methods35.17%
▷ Private methods1220.69%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/active1.png0.71KB0.63KB▼ 11.28%
images/remove.png3.32KB0.62KB▼ 81.33%
images/active0.png0.65KB0.61KB▼ 5.56%
images/add.png3.37KB0.66KB▼ 80.54%
images/exacttarget_wordpress_icon_32.png2.40KB1.32KB▼ 44.91%