89% realtycandy-gravity-forms-to-idxbroker-connector

Code Review | RealtyCandy GravityForms IDX Broker Connector

WordPress plugin RealtyCandy GravityForms IDX Broker Connector scored89%from 54 tests.

About plugin

  • Plugin page: realtycandy-gravi...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2016
  • Latest release: Jan 21, 2017
  • Number of updates: 7
  • Update frequency: every 13.7 days
  • Top authors: RealtyCandy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,172 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by RealtyCandy GravityForms IDX Broker Connector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.38 ▼9.68
Dashboard /wp-admin3.31 ▼0.0449.66 ▼15.81
Posts /wp-admin/edit.php3.36 ▲0.0046.14 ▼7.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.37 ▼26.20
Media Library /wp-admin/upload.php3.23 ▲0.0032.54 ▼3.21

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for RealtyCandy GravityForms IDX Broker Connector
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▲0.071.81 ▼0.0444.23 ▲1.46
Dashboard /wp-admin2,195 ▲185.62 ▼0.0685.06 ▼11.3638.45 ▼3.48
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0340.04 ▲3.4132.56 ▼4.72
Add New Post /wp-admin/post-new.php1,531 ▲523.01 ▼0.00674.23 ▲77.0256.55 ▲8.34
Media Library /wp-admin/upload.php1,400 ▼34.19 ▲0.0196.89 ▼4.9344.03 ▼3.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Select this box in the setup page to send your GravityForms leads to IDX Broker) image required
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

realtycandy-gravity-forms-to-idxbroker-connector/index.php 85% from 13 tests

The entry point to "RealtyCandy GravityForms IDX Broker Connector" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("realtycandy-gravity-forms-to-idxbroker-connector.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin176 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13928176

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin