10% i9-idxpress

Code Review | IDXMATRIX

WordPress plugin IDXMATRIX scored10%from 54 tests.

About plugin

  • Plugin page: i9-idxpress
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.6
  • WordPress version: 6.3.1
  • First release: Jun 27, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 144
  • Update frequency: every 3.1 days
  • Top authors: i9technologies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /939 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/i9-idxpress/i9Listings.php+129
    The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence

Server metrics [RAM: ▼1.82MB] [CPU: ▼50.42ms] Passed 4 tests

This is a short check of server-side resources used by IDXMATRIX
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.17 ▼1.295.76 ▼39.05
Dashboard /wp-admin2.19 ▼1.129.10 ▼39.81
Posts /wp-admin/edit.php2.19 ▼1.177.58 ▼37.74
Add New Post /wp-admin/post-new.php2.19 ▼3.706.85 ▼85.06
Media Library /wp-admin/upload.php2.19 ▼1.0411.73 ▼22.52

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 143 new files
Database: no new tables, 12 new options
New WordPress options
widget_cannysys-listings
widget_recent-comments
widget_i9-calc-widget
widget_cannysys-guided-search
widget_theysaidso_widget
widget_i9-quicksearch
theysaidso_admin_options
widget_recent-posts
widget_i9-open-house
widget_i9-list-areas
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for IDXMATRIX
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,008 ▲27314.65 ▲0.2739.67 ▲37.9934.00 ▼10.12
Dashboard /wp-admin2,240 ▲495.10 ▼0.75112.41 ▲4.90122.19 ▲83.51
Posts /wp-admin/edit.php2,123 ▲342.07 ▲0.0335.50 ▲0.8844.93 ▲5.08
Add New Post /wp-admin/post-new.php1,704 ▲18522.56 ▼0.65744.44 ▲54.7446.53 ▼16.51
Media Library /wp-admin/upload.php1,419 ▲284.27 ▲0.02102.56 ▲0.9399.19 ▲54.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the i9_admin_options_style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin does not fully uninstall, leaving 12 options in the database
    • widget_i9-quicksearch
    • widget_i9-open-house
    • widget_cannysys-listings
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_i9-list-areas
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_cannysys-guided-search
    • ...

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/i9-idxpress/i9-budget-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/i9-idxpress/i9-listing-areas.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i9-idxpress/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/i9-idxpress/i9-open-house.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/i9-idxpress/i9Listings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i9-idxpress/autocomplete.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i9-idxpress/i9guided-search.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i9-idxpress/client.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/i9-idxpress/rewrite.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/i9-idxpress/i9quick_search.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: custom idx, idx, mls, idxmatrix, housing...

i9-idxpress/i9-idxpress.php 92% from 13 tests

This is the main PHP file of "IDXMATRIX" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 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
No dangerous file extensions were detected14,495 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
CSS11103884,156
PHP204,4742843,955
JavaScript131,6671742,374
SVG4001,507
Sass1323241,256
LESS1323331,247

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity39.81
▷ Minimum class complexity3.00
▷ Maximum class complexity222.00
Average method complexity6.26
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods118
▷ Static methods8773.73%
▷ Public methods11597.46%
▷ Protected methods00.00%
▷ Private methods32.54%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/selectarrow.png1.06KB0.15KB▼ 85.60%
css/images/ui-icons_454545_256x240.png4.10KB4.11KB0.00%
images/hyperlink-icon.png3.89KB0.49KB▼ 87.34%
css/images/ui-icons_cd0a0a_256x240.png4.10KB4.11KB0.00%
images/i9-icon2.png4.32KB0.96KB▼ 77.70%