10% rover-idx

Code Review | Rover IDX

WordPress plugin Rover IDX scored10%from 54 tests.

About plugin

  • Plugin page: rover-idx
  • Plugin version: 3.0.0.2827
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Oct 26, 2023
  • Number of updates: 145
  • Update frequency: every 18.6 days
  • Top authors: stevemullen (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

200+ active /18,483 total downloads

Benchmarks

Plugin footprint 58% 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
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/rover-idx/rover-content.php+735
    Undefined index: crawler

Server metrics [RAM: ▲1.25MB] [CPU: ▲0.98ms] Passed 4 tests

A check of server-side resources used by Rover IDX
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.59 ▲1.1344.24 ▲4.87
Dashboard /wp-admin4.58 ▲1.2748.81 ▲4.49
Posts /wp-admin/edit.php4.71 ▲1.3652.90 ▲3.10
Add New Post /wp-admin/post-new.php7.18 ▲1.2983.96 ▼8.55
Media Library /wp-admin/upload.php4.52 ▲1.2946.89 ▲15.89
SEO /wp-admin/admin.php?page=rover-idx-seo4.4738.61
Help /wp-admin/admin.php?page=rover-idx-help4.4737.89
Social /wp-admin/admin.php?page=rover-idx-social4.4738.57
Styling /wp-admin/admin.php?page=rover-idx-styling4.5240.96
General /wp-admin/admin.php?page=rover-idx4.4735.51
Lead Generation /wp-admin/admin.php?page=rover-idx-lead-generation4.4743.03

Server storage [IO: ▲2.13MB] [DB: ▲0.03MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 132 new files
Database: 1 new table, 27 new options
New tables
wp_roveridx_tracking
New WordPress options
widget_roveridx_quick_links
widget_roveridx_mortgage_calc
widget_roveridx_ask_a_question
widget_recent-comments
roveridx_endpoint
widget_roveridx_affordability_calc
can_compress_scripts
widget_roveridx_recently_viewed
widget_recent-posts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

Rover IDX: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,976 ▲21514.43 ▼0.033.39 ▲1.3936.84 ▼12.55
Dashboard /wp-admin2,374 ▲1975.87 ▲0.2193.11 ▲5.3282.37 ▲45.45
Posts /wp-admin/edit.php2,179 ▲792.30 ▲0.2845.78 ▲6.1935.35 ▼2.66
Add New Post /wp-admin/post-new.php1,605 ▲6818.36 ▲0.17696.74 ▲94.9560.50 ▼14.63
Media Library /wp-admin/upload.php1,471 ▲684.36 ▲0.19110.66 ▲9.7883.94 ▲42.28
SEO /wp-admin/admin.php?page=rover-idx-seo9641.9633.5354.23
Help /wp-admin/admin.php?page=rover-idx-help2,1099.03222.8295.16
Social /wp-admin/admin.php?page=rover-idx-social9561.9034.1735.97
Styling /wp-admin/admin.php?page=rover-idx-styling9521.9330.0633.13
General /wp-admin/admin.php?page=rover-idx1,9072.0344.8576.38
Lead Generation /wp-admin/admin.php?page=rover-idx-lead-generation9581.9230.9535.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 21 options in the database
    • roveridx_css_amp
    • widget_roveridx_quick_links
    • theysaidso_admin_options
    • widget_roveridx_search_school
    • widget_roveridx_new_and_updated
    • widget_roveridx_recently_viewed
    • widget_roveridx_search_omni
    • widget_theysaidso_widget
    • widget_roveridx_search_mlnumber
    • roveridx_endpoint
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rover-idx-lead-generation
    • > Notice in wp-content/plugins/rover-idx/rover-content.php+735
    Undefined index: crawler

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
Almost there! Just fix the following items
  • 73× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rover-idx/widgets/rover-affordability-calc.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rover-idx/widgets/rover-mortgage-calc.php:2
    • > PHP Warning
      require_once(ROVER_IDX_PLUGIN_PATHrover-shared.php): failed to open stream: No such file or directory in wp-content/plugins/rover-idx/rover-init.php on line 3
    • > PHP Warning
      require_once(ROVER_IDX_PLUGIN_PATHadmin/rover-templates.php): failed to open stream: No such file or directory in wp-content/plugins/rover-idx/admin/rover-panel-lead-generation.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/rover-idx/rover-agent.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rover-idx/rover-custom-post-types-dyn-meta.php:12
    • > PHP Fatal error
      require_once(): Failed opening required 'ROVER_IDX_PLUGIN_PATHadmin/rover-templates.php' (include_path='.:/usr/share/php') in wp-content/plugins/rover-idx/admin/rover-panel-engine.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ROVER_IDX_PLUGIN_PATHrover-content.php' (include_path='.:/usr/share/php') in wp-content/plugins/rover-idx/admin/rover-dashboard.php on line 2
    • > PHP Warning
      Use of undefined constant ROVER_IDX_PLUGIN_PATH - assumed 'ROVER_IDX_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/rover-idx/admin/rover-panel-setup.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ROVER_IDX_PLUGIN_PATHrover-shared.php' (include_path='.:/usr/share/php') in wp-content/plugins/rover-idx/admin/rover-admin-init.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (16 tag instead of maximum 10)
  • Screenshots: Add images for these screenshots: #1 (Setting up Rover IDX is a breeze), #2 (Type in the name or broker last name of the office, and select the active agents. You can set meta data for the agents as well.), #3 (Choose from any of the listing layout templates that ship with Rover IDX, or build your own.), #4 (Super easy to add searchable pages - [rover_idx_full_page] creates a fully searchable page with search panel, listing results, and in 2-column mode a sidebar with highlighted listings.), #5 (Simple, clean layouts for highly usable pages.), #6 (Don't forget to include a map. Visitors love maps!), #7 (Easy add links to your sidebar, footer, or page. These links take advantage of the Rover IDX dynamic url feature. If the page does not exist in your website, Rover IDX will parse the url, hoping that the url is calling for searchable listings specified by the url. See https://roveridx.com/features/roverurl/ for more information.)
You can look at the official readme.txt

rover-idx/roveridx.php 85% from 13 tests

The primary PHP file in "Rover IDX" version 3.0.0.2827 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("rover-idx.php" instead of "roveridx.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 179 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 detected15,667 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
PHP543,1611,50910,285
CSS192763964,613
SVG100565
JavaScript116204

PHP code Passed 2 tests

Analyzing 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.34
Average class complexity35.36
▷ Minimum class complexity1.00
▷ Maximum class complexity187.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes36
▷ Abstract classes12.78%
▷ Concrete classes3597.22%
▷ Final classes00.00%
Methods351
▷ Static methods7019.94%
▷ Public methods24268.95%
▷ Protected methods329.12%
▷ Private methods7721.94%
Functions156
▷ Named functions12278.21%
▷ Anonymous functions3421.79%
Constants39
▷ Global constants3897.44%
▷ Class constants12.56%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
30 PNG files occupy 0.10MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/themes/Bootstrap/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
images/wp_icon.png2.87KB1.71KB▼ 40.65%
css/themes/Bootstrap/custom-theme/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
images/gp_icon.png2.00KB1.48KB▼ 25.96%
css/themes/Bootstrap/custom-theme/images/ui-bg_glass_75_ffffff_1x400.png0.10KB0.10KB▼ 4.67%