66% dsidxpress

Code Review | WordPress IDX Real Estate Listings & MLS Search

WordPress plugin WordPress IDX Real Estate Listings & MLS Search scored66%from 54 tests.

About plugin

  • Plugin page: dsidxpress
  • Plugin version: 3.18.0
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 5, 2010
  • Latest release: Jun 22, 2023
  • Number of updates: 598
  • Update frequency: every 8.2 days
  • Top authors: jmabe (44.65%)amattie (27.93%)diversesolutions (19.9%)zjustinw (5.85%)wschwarz (2.17%)

Code review

54 tests

User reviews

66 reviews

Install metrics

2,000+ active /373,299 total downloads

Benchmarks

Plugin footprint 82% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.21MB] [CPU: ▲1,285.82ms] 50% from 4 tests

Analyzing server-side resources used by WordPress IDX Real Estate Listings & MLS Search
It is recommended to improve the following
  • CPU: The total CPU usage must kept under 500.00ms (currently 2,635.19ms on /wp-admin/post-new.php?post_type=ds-idx-listings-page)
  • Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 1,285.82ms on /wp-admin/post-new.php?post_type=ds-idx-listings-page)
PageMemory (MB)CPU Time (ms)
Home /4.57 ▲1.1159.67 ▲14.39
Dashboard /wp-admin4.75 ▲1.451,746.95 ▲1,690.62
Posts /wp-admin/edit.php4.75 ▲1.391,804.84 ▲1,752.23
Add New Post /wp-admin/post-new.php6.76 ▲0.882,599.30 ▲2,489.61
Media Library /wp-admin/upload.php4.75 ▲1.521,723.21 ▲1,686.02
All IDX Pages /wp-admin/edit.php?post_type=ds-idx-listings-page4.751,739.14
Add New /wp-admin/post-new.php?post_type=ds-idx-listings-page6.742,635.19

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 146 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_dsidx-single-listing
db_upgraded
widget_dsidx-listings
widget_dsidx-search
widget_dsidx-quicksearch
widget_recent-comments
theysaidso_admin_options
widget_dsidx-list-areas
...

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress IDX Real Estate Listings & MLS Search
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,067 ▲29613.82 ▼0.939.67 ▲7.5843.25 ▼5.79
Dashboard /wp-admin2,276 ▲884.96 ▼0.8698.74 ▼4.5982.03 ▲41.67
Posts /wp-admin/edit.php2,149 ▲632.04 ▲0.0432.71 ▼6.6235.11 ▼2.72
Add New Post /wp-admin/post-new.php1,585 ▲5218.20 ▼4.94736.93 ▲115.4942.27 ▼16.03
Media Library /wp-admin/upload.php1,442 ▲514.16 ▼0.0894.27 ▼5.3887.79 ▲44.44
All IDX Pages /wp-admin/edit.php?post_type=ds-idx-listings-page1,1342.0133.2032.51
Add New /wp-admin/post-new.php?post_type=ds-idx-listings-page1,66016.98840.4737.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_dsidx-listings
    • db_upgraded
    • widget_recent-comments
    • widget_dsidx-list-areas
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_dsidx-quicksearch
    • widget_dsidx-single-listing
    • can_compress_scripts
    • widget_dsidx-search
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=ds-idx-listings-page
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ds-idx-listings-page
    • > Warning in wp-content/plugins/dsidxpress/admin.php+2058
    Invalid argument supplied for foreach()

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/dsidxpress/widget-idx-quick-search-simple.php
    • > /wp-content/plugins/dsidxpress/widget-idx-quick-search-classic.php
  • 119× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/dsidxpress/tinymce/idx_registration_form/dialog.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dsidxpress/roles.php:6
    • > PHP Notice
      Undefined variable: price_min in wp-content/plugins/dsidxpress/widget-idx-quick-search-simple.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsidxpress/autocomplete-mls-number.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/dsidxpress/widget-idx-quick-search-classic.php on line 40
    • > PHP Notice
      Undefined variable: widgetId in wp-content/plugins/dsidxpress/widget-idx-quick-search-classic.php on line 5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/dsidxpress/widget-idx-quick-search-classic.php on line 53
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dsidxpress/dsidxwidgets/widget-service-slideshow.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsidxpress/ajax-handler.php:2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/dsidxpress/widget-idx-quick-search-simple.php on line 67

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/post-new.php?post_type=ds-idx-listings-page
    • > Javascript (severe) in unknown
    /wp-content/plugins/dsidxpress/js/admin-utilities.js?ver=3.18.0 867:25 Uncaught ReferenceError: dsidxAjaxHandler is not defined

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

dsidxpress/dsidxpress.php 92% from 13 tests

Analyzing the main PHP file in "WordPress IDX Real Estate Listings & MLS Search" version 3.18.0
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin14,198 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP461,0182058,422
JavaScript24265523,394
CSS9174862,209
XML110159
SVG10014

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity43.34
▷ Minimum class complexity1.00
▷ Maximum class complexity336.00
Average method complexity7.76
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes32
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes00.00%
Methods200
▷ Static methods15276.00%
▷ Public methods200100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants24
▷ Global constants2395.83%
▷ Class constants14.17%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
32 compressed PNG files occupy 7.08MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tinymce/idx_registration_form/img/single_listing.png0.89KB0.99KB0.00%
assets/icon-128x128.png7.28KB2.35KB▼ 67.71%
assets/screenshot-5.png392.34KB424.20KB0.00%
images/link-builder-sprite.png0.57KB0.74KB0.00%
css/images/ui-icons_2e83ff_256x240.png4.10KB4.11KB0.00%