10% showcase-idx

Code Review | Showcase IDX Real Estate Search

WordPress plugin Showcase IDX Real Estate Search scored10%from 54 tests.

About plugin

  • Plugin page: showcase-idx
  • Plugin version: 3.2.9
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Nov 7, 2023
  • Number of updates: 253
  • Update frequency: every 15.6 days
  • Top authors: showcaseidx (63.24%)kanwei@gmail.com (37.15%)

Code review

54 tests

User reviews

30 reviews

Install metrics

2,000+ active /72,830 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/showcase-idx/3/install.php+47
    Undefined index: root_url

Server metrics [RAM: ▲0.11MB] [CPU: ▼1.59ms] Passed 4 tests

A check of server-side resources used by Showcase IDX Real Estate Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.39 ▲0.23
Dashboard /wp-admin3.50 ▲0.20804.08 ▲753.11
Posts /wp-admin/edit.php3.51 ▲0.1549.53 ▼0.79
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.30 ▼9.18
Media Library /wp-admin/upload.php3.32 ▲0.0936.03 ▲3.37

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 12 new options
New WordPress options
showcaseidx_deprovision_install_id
widget_theysaidso_widget
showcaseidx_product_version
can_compress_scripts
showcaseidx_install_id
showcaseidx_website_uuid
showcaseidx_search_page
showcaseidx_website_name
widget_recent-posts
db_upgraded
...

Browser metrics Passed 4 tests

Checking browser requirements for Showcase IDX Real Estate Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲19614.14 ▼0.081.80 ▲0.0133.26 ▼10.42
Dashboard /wp-admin2,337 ▲1635.66 ▲0.0388.99 ▼10.5392.67 ▲45.05
Posts /wp-admin/edit.php2,164 ▲612.00 ▼0.0035.56 ▲0.5532.48 ▼5.69
Add New Post /wp-admin/post-new.php1,581 ▲5522.72 ▼0.61781.67 ▲96.1353.94 ▼1.31
Media Library /wp-admin/upload.php1,458 ▲584.16 ▼0.0597.09 ▼6.4573.93 ▲31.35

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 12 options in the database
    • widget_recent-comments
    • showcaseidx_website_name
    • db_upgraded
    • showcaseidx_product_version
    • showcaseidx_website_uuid
    • widget_theysaidso_widget
    • can_compress_scripts
    • showcaseidx_deprovision_install_id
    • showcaseidx_search_page
    • theysaidso_admin_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/showcase-idx/2/admin.php:7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/showcase-idx/2/showcaseidx.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/showcase-idx/3/shortcodes.php:3
    • > PHP Warning
      Use of undefined constant SHOWCASEIDX_ACCOUNT_STATUS_EXPIRED - assumed 'SHOWCASEIDX_ACCOUNT_STATUS_EXPIRED' (this will throw an Error in a future version of PHP) in wp-content/plugins/showcase-idx/3/page.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/showcase-idx/showcaseidx.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/showcase-idx/3/admin.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/showcase-idx/3/install.php:3
    • > PHP Warning
      Use of undefined constant SHOWCASEIDX_ACCOUNT_STATUS_REVOKED - assumed 'SHOWCASEIDX_ACCOUNT_STATUS_REVOKED' (this will throw an Error in a future version of PHP) in wp-content/plugins/showcase-idx/3/page.php on line 4
    • > PHP Warning
      Use of undefined constant SHOWCASEIDX_ACCOUNT_STATUS_INVALID - assumed 'SHOWCASEIDX_ACCOUNT_STATUS_INVALID' (this will throw an Error in a future version of PHP) in wp-content/plugins/showcase-idx/3/page.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/showcase-idx/3/resources.php:6

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: showcase idx, idx search, mls, real estate search, idx

showcase-idx/showcaseidx.php 92% from 13 tests

Analyzing the main PHP file in "Showcase IDX Real Estate Search" version 3.2.9
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("showcase-idx.php" instead of "showcaseidx.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 detected1,954 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP163231431,847
CSS1188107

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods350.00%
▷ Protected methods233.33%
▷ Private methods116.67%
Functions113
▷ Named functions9584.07%
▷ Anonymous functions1815.93%
Constants19
▷ Global constants19100.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.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/menu.png1.62KB0.63KB▼ 61.23%
images/showcaseidx_greenwhite_text_logo_trans.png12.24KB5.73KB▼ 53.23%
images/showcaseidx_wp_admin_bar_logo_icon.png1.20KB1.20KB0.00%
images/editor-screenshot.png23.00KB6.74KB▼ 70.68%
images/logo.png3.49KB2.22KB▼ 36.41%