68% idx-broker-platinum

Code Review | IMPress for IDX Broker

WordPress plugin IMPress for IDX Broker scored68%from 54 tests.

About plugin

  • Plugin page: idx-broker-platinum
  • Plugin version: 3.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: Oct 5, 2022
  • Number of updates: 390
  • Update frequency: every 9.4 days
  • Top authors: idxco (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

10,000+ active /316,998 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲2.03MB] [CPU: ▲28.95ms] Passed 4 tests

This is a short check of server-side resources used by IMPress for IDX Broker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.59 ▲2.1359.31 ▲18.10
Dashboard /wp-admin5.42 ▲2.0790.28 ▲26.51
Posts /wp-admin/edit.php5.47 ▲2.1191.56 ▲42.12
Add New Post /wp-admin/post-new.php7.74 ▲1.86135.15 ▲29.07
Media Library /wp-admin/upload.php5.33 ▲2.1085.14 ▲46.60
Leads /wp-admin/admin.php?page=leads5.2474.72
General Settings /wp-admin/admin.php?page=idx-broker5.2378.06
Add Search /wp-admin/admin.php?page=edit-idx-search5.2470.93
Add Lead /wp-admin/admin.php?page=edit-lead5.3076.01
Saved Links /wp-admin/admin.php?page=idx-searches5.2468.57

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 564 new files
Database: no new tables, 15 new options
New WordPress options
widget_idx_omnibar_widget
widget_impress_idx_dashboard_widget
db_upgraded
widget_recent-posts
widget_impress_lead_login
idx_results_url
widget_recent-comments
idx_cron_schedule
impress_data_sent
widget_impress_carousel
...

Browser metrics Passed 4 tests

Checking browser requirements for IMPress for IDX Broker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,068 ▲30713.36 ▼0.861.89 ▲0.0943.32 ▲3.48
Dashboard /wp-admin2,406 ▲2064.86 ▼0.01111.95 ▼12.9941.91 ▼0.51
Posts /wp-admin/edit.php2,250 ▲1502.05 ▲0.0239.13 ▼1.7541.05 ▲3.77
Add New Post /wp-admin/post-new.php6,555 ▲5,01929.56 ▲6.43866.88 ▲203.4137.54 ▼20.44
Media Library /wp-admin/upload.php1,553 ▲1504.20 ▼0.06102.90 ▼8.1649.71 ▲2.42
Leads /wp-admin/admin.php?page=leads1,4802.9576.25142.60
General Settings /wp-admin/admin.php?page=idx-broker1,4876.43155.08119.16
Add Search /wp-admin/admin.php?page=edit-idx-search1,3862.5641.6856.87
Add Lead /wp-admin/admin.php?page=edit-lead1,3762.4335.9337.12
Saved Links /wp-admin/admin.php?page=idx-searches1,2642.7550.7044.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/idx-broker-platinum/add-ons/listings/uninstall.php+9
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 12 options in the database
    • widget_impress_idx_dashboard_widget
    • impress_data_sent
    • db_upgraded
    • widget_impress_city_links
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_impress_lead_login
    • widget_impress_showcase
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
  • 208× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/idx-broker-platinum/vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php:7
    • > PHP Warning
      Use of undefined constant IMPRESS_IDX_DIR - assumed 'IMPRESS_IDX_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/idx-broker-platinum/add-ons/utilities/background-processing/impress-agents-background-process.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/idx-broker-platinum/vendor/symfony/translation/Dumper/PoFileDumper.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/idx-broker-platinum/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/idx-broker-platinum/vendor/symfony/translation/Dumper/XliffFileDumper.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/idx-broker-platinum/vendor/symfony/translation/Dumper/IniFileDumper.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/idx-broker-platinum/add-ons/listings/includes/wp-api.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/idx-broker-platinum/idx/widgets/impress-carousel-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\FileLoader' not found in wp-content/plugins/idx-broker-platinum/vendor/symfony/translation/Loader/IniFileLoader.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Translation\\Catalogue\\OperationInterface' not found in wp-content/plugins/idx-broker-platinum/vendor/symfony/translation/Catalogue/AbstractOperation.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=idx-broker
    • > Javascript (severe) in unknown
    /wp-content/plugins/idx-broker-platinum/assets/vue/backend/admin.js?ver=0.1.0 81:34316

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
The official readme.txt is a good inspiration

idx-broker-platinum/idx-broker-platinum.php Passed 13 tests

The main PHP file in "IMPress for IDX Broker" ver. 3.1.0 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Over 600 IDX/MLS feeds serviced. The #1 IDX/MLS solution just got even better!

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected43,114 lines of code in 538 files:
LanguageFilesBlank linesComment linesLines of code
PHP3256,20011,46028,907
JSON12007,903
XSD392482,803
JavaScript821583331,589
Markdown103310915
CSS65362398
XML1550296
SVG1202230
PO File67037
YAML54024
Qt Linguist10010
HTML1001
INI1001

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.80
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces31
Interfaces9
Traits0
Classes227
▷ Abstract classes104.41%
▷ Concrete classes21795.59%
▷ Final classes31.38%
Methods1,439
▷ Static methods1419.80%
▷ Public methods1,23685.89%
▷ Protected methods1017.02%
▷ Private methods1027.09%
Functions176
▷ Named functions14783.52%
▷ Anonymous functions2916.48%
Constants52
▷ Global constants713.46%
▷ Class constants4586.54%
▷ Public constants45100.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
15 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/block-placeholder-images/lead-signup-placeholder.png22.09KB8.43KB▼ 61.82%
assets/images/block-placeholder-images/carousel-placeholder.png22.18KB8.40KB▼ 62.14%
assets/images/active.png0.89KB0.59KB▼ 33.48%
assets/images/block-placeholder-images/showcase-placeholder.png23.28KB8.74KB▼ 62.44%
assets/images/block-placeholder-images/lead-login-placeholder.png20.69KB7.91KB▼ 61.78%