84% idx-connect-for-gravityforms

Code Review | IDX Connect for Gravity Forms

WordPress plugin IDX Connect for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: idx-connect-for-g...
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Oct 8, 2016
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: bhubbard (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,205 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
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.90ms] Passed 4 tests

An overview of server-side resources used by IDX Connect for Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.47 ▼2.09
Dashboard /wp-admin3.31 ▼0.0451.62 ▼11.66
Posts /wp-admin/edit.php3.36 ▲0.0053.59 ▲2.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.49 ▼8.19
Media Library /wp-admin/upload.php3.23 ▲0.0042.22 ▲8.46

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

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

Browser metrics Passed 4 tests

A check of browser resources used by IDX Connect for Gravity Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.011.69 ▲0.0743.75 ▲1.63
Dashboard /wp-admin2,195 ▲245.53 ▼0.0989.97 ▼1.2339.06 ▼2.67
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0539.49 ▼0.9135.13 ▼0.70
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▲0.38681.57 ▲42.2352.17 ▼3.04
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0197.60 ▼8.8942.37 ▼3.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/idx-connect-for-gravityforms/gravityforms-idxbroker.php:18
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/idx-connect-for-gravityforms/gravityforms-idxbroker.php on line 17
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/idx-connect-for-gravityforms/gravityforms-idxbroker.php on line 17
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/idx-connect-for-gravityforms/gravityforms-idxbroker.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

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
3 plugin tags: idx broker, gravity forms, real estate

idx-connect-for-gravityforms/gravityforms-idxbroker.php 92% from 13 tests

The main PHP file in "IDX Connect for Gravity Forms" ver. 1.5.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("idx-connect-for-gravityforms.php" instead of "gravityforms-idxbroker.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
Good job! No executable or dangerous file extensions detected1,641 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
XML5001,106
PHP216471475
Markdown117039
JSON10021

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/idxbroker-gravityforms-logo.png26.55KB8.31KB▼ 68.71%