83% gravity-forms-icontact

Code Review | iContact for Gravity Forms

WordPress plugin iContact for Gravity Forms scored83%from 54 tests.

About plugin

  • Plugin page: gravity-forms-ico...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2.2
  • WordPress version: 6.3.1
  • First release: Oct 24, 2011
  • Latest release: Jun 9, 2015
  • Number of updates: 26
  • Update frequency: every 51.0 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,043 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.64ms] Passed 4 tests

Analyzing server-side resources used by iContact for Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2437.34 ▼1.25
Dashboard /wp-admin3.55 ▲0.2045.07 ▼11.92
Posts /wp-admin/edit.php3.66 ▲0.3047.82 ▼1.39
Add New Post /wp-admin/post-new.php6.13 ▲0.2491.30 ▼3.99
Media Library /wp-admin/upload.php3.47 ▲0.2435.07 ▼1.12

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by iContact for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.231.51 ▼0.1540.78 ▲0.55
Dashboard /wp-admin2,209 ▲215.90 ▲1.0095.91 ▼14.1338.07 ▼8.09
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0339.14 ▼1.7136.96 ▲1.65
Add New Post /wp-admin/post-new.php1,543 ▲2418.29 ▼5.11609.57 ▼137.7552.14 ▼25.35
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0295.91 ▼3.6743.07 ▼0.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-icontact/icontact.php:28

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The Gravity Forms iContact Add-on settings page) image missing
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

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

"iContact for Gravity Forms" version 1.3.2'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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gravity-forms-icontact.php" instead of "icontact.php")

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
Good job! No executable or dangerous file extensions detected1,615 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43431951,615

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity72.50
▷ Minimum class complexity9.00
▷ Maximum class complexity198.00
Average method complexity4.76
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods76
▷ Static methods5471.05%
▷ Public methods5471.05%
▷ Protected methods45.26%
▷ Private methods1823.68%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
7 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/icontact_wordpress_icon_32.png2.58KB1.88KB▼ 27.10%
images/active0.png0.65KB0.61KB▼ 5.56%
images/active1.png0.71KB0.63KB▼ 11.28%
images/remove.png3.32KB0.62KB▼ 81.33%
images/stop.png0.68KB0.78KB0.00%