10% simply-rets

Code Review | SimplyRETS Real Estate IDX

WordPress plugin SimplyRETS Real Estate IDX scored10%from 54 tests.

About plugin

  • Plugin page: simply-rets
  • Plugin version: 2.10.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: Sep 27, 2023
  • Number of updates: 149
  • Update frequency: every 21.3 days
  • Top authors: SimplyRETS (71.14%)ReichertBrothers (29.53%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /31,955 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
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/simply-rets/simply-rets-api-helper.php+166
    Undefined property: stdClass::$vendors

Server metrics [RAM: ▲0.90MB] [CPU: ▲8.30ms] Passed 4 tests

This is a short check of server-side resources used by SimplyRETS Real Estate IDX
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.31 ▲0.8452.84 ▲14.07
Dashboard /wp-admin4.23 ▲0.9264.31 ▲14.20
Posts /wp-admin/edit.php4.27 ▲0.9154.46 ▲4.38
Add New Post /wp-admin/post-new.php6.83 ▲0.94103.05 ▲4.42
Media Library /wp-admin/upload.php4.15 ▲0.9245.91 ▲10.33
All SimplyRETS Pages /wp-admin/edit.php?post_type=sr-listings4.1843.38
Add New /wp-admin/post-new.php?post_type=sr-listings4.3055.34

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 430 new files
Database: no new tables, 25 new options
New WordPress options
sr_api_name
sr_show_admin_message
widget_recent-comments
sr_demo_page_created
sr_office_on_thumbnails
widget_srrandomlistingwidget
sr_agent_on_thumbnails
widget_srsearchformwidget
sr_api_key
sr_permalink_structure
...

Browser metrics Passed 4 tests

An overview of browser requirements for SimplyRETS Real Estate IDX
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲27213.71 ▼0.678.65 ▲6.9242.26 ▲0.28
Dashboard /wp-admin2,273 ▲885.07 ▼0.81105.11 ▼6.9244.73 ▲2.76
Posts /wp-admin/edit.php2,152 ▲602.04 ▲0.0334.31 ▼6.4636.21 ▼0.35
Add New Post /wp-admin/post-new.php1,572 ▲5317.47 ▼5.84599.44 ▼71.7451.64 ▼9.90
Media Library /wp-admin/upload.php1,452 ▲644.32 ▲0.1296.38 ▼6.5141.81 ▼4.67
SimplyRETS /wp-admin/simplyrets-admin.php260.440.1013.47
All SimplyRETS Pages /wp-admin/edit.php?post_type=sr-listings1,1161.9832.2432.02
Add New /wp-admin/post-new.php?post_type=sr-listings2,6297.93166.1371.81

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 23 options in the database
    • sr_adv_search_meta_endpoints
    • widget_sragentlistingwidget
    • sr_agent_office_above_the_fold
    • sr_search_map_position
    • widget_theysaidso_widget
    • sr_thumbnail_idx_image
    • theysaidso_admin_options
    • sr_listing_gallery
    • sr_office_on_thumbnails
    • sr_permalink_structure
    • ...

Smoke tests 25% 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
    • > GET request to /wp-admin/post-new.php?post_type=sr-listings
    • > Notice in wp-content/plugins/simply-rets/simply-rets-post-pages.php+345
    Undefined variable: max_bath_filisting_typelter

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 236× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Geocoder\\Geocoder' not found in wp-content/plugins/simply-rets/vendor/egeloen/google-map/src/Services/Geocoding/Geocoder.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Ivory\\GoogleMap\\Helper\\AbstractHelper' not found in wp-content/plugins/simply-rets/vendor/egeloen/google-map/src/Helper/Overlays/PolylineHelper.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/simply-rets/vendor/egeloen/google-map/tests/Helper/ApiHelperTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Ivory\\GoogleMap\\Assets\\AbstractJavascriptVariableAsset' not found in wp-content/plugins/simply-rets/vendor/egeloen/google-map/src/Assets/AbstractOptionsAsset.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/simply-rets/vendor/egeloen/google-map/tests/Services/DistanceMatrix/DistanceMatrixStatusTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/simply-rets/vendor/egeloen/google-map/tests/Services/Directions/DirectionsResponseTest.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/simply-rets/vendor/egeloen/google-map/tests/Controls/ControlPositionTest.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Ivory\\GoogleMap\\Exception\\Exception' not found in wp-content/plugins/simply-rets/vendor/egeloen/google-map/src/Exception/ControlException.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\PropertyAccess\\Exception\\ExceptionInterface' not found in wp-content/plugins/simply-rets/vendor/symfony/property-access/Exception/InvalidArgumentException.php:19
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/simply-rets/tests/bootstrap.php on line 6

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)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/simplyrets-admin.php
    • > Network (severe)
    wp-admin/simplyrets-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can take inspiration from this readme.txt

simply-rets/simply-rets.php Passed 13 tests

This is the main PHP file of "SimplyRETS Real Estate IDX" version 2.10.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
Show your Real Estate listings on your Wordpress site. SimplyRETS provides a very simple set up and full control over your listings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin31,268 lines of code in 405 files:
LanguageFilesBlank linesComment linesLines of code
PHP3267,05414,60826,119
Markdown551,09902,661
JavaScript626575958
CSS3156343742
JSON700495
HTML1133108
Bourne Shell2257107
XML55078

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity174.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces60
Interfaces12
Traits0
Classes324
▷ Abstract classes103.09%
▷ Concrete classes31496.91%
▷ Final classes30.96%
Methods2,562
▷ Static methods30311.83%
▷ Public methods2,22686.89%
▷ Protected methods27210.62%
▷ Private methods642.50%
Functions26
▷ Named functions1661.54%
▷ Anonymous functions1038.46%
Constants92
▷ Global constants00.00%
▷ Class constants92100.00%
▷ Public constants92100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-128x128.png6.67KB2.87KB▼ 56.93%
assets/img/logo_button.png12.20KB5.18KB▼ 57.53%
assets/galleria/themes/classic/classic-map.png1.80KB0.67KB▼ 62.77%