10% rets-rabbit

Code Review | Rets Rabbit

WordPress plugin Rets Rabbit scored10%from 54 tests.

About plugin

  • Plugin page: rets-rabbit
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Mar 2, 2015
  • Latest release: Aug 2, 2016
  • Number of updates: 33
  • Update frequency: every 15.8 days
  • Top authors: ppohler (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,336 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/rets-rabbit/vendor/composer/autoload_real.php+28
    require_once(wp-content/plugins/rets-rabbit/vendor/composer/autoload_static.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.17ms] Passed 4 tests

A check of server-side resources used by Rets Rabbit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0049.47 ▲12.55
Dashboard /wp-admin3.31 ▲0.0043.75 ▼1.88
Posts /wp-admin/edit.php3.36 ▲0.0044.78 ▲0.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.24 ▼9.46
Media Library /wp-admin/upload.php3.23 ▲0.0033.10 ▲2.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 229 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Rets Rabbit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.381.97 ▲0.3240.20 ▲3.55
Dashboard /wp-admin2,209 ▲204.84 ▼0.0996.61 ▼24.2938.65 ▼6.91
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0140.52 ▼0.4135.75 ▲0.44
Add New Post /wp-admin/post-new.php1,535 ▲723.26 ▲4.78670.35 ▲67.3170.75 ▲16.28
Media Library /wp-admin/upload.php1,388 ▼34.17 ▼0.0195.17 ▼12.3541.69 ▼1.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rets-rabbit/template/detail.example.php
  • 176× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\ParseException' not found in wp-content/plugins/rets-rabbit/vendor/guzzlehttp/guzzle/src/Exception/XmlParseException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rets-rabbit/vendor/guzzlehttp/guzzle/tests/Event/HeadersEventTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Event\\AbstractTransferEvent' not found in wp-content/plugins/rets-rabbit/vendor/guzzlehttp/guzzle/src/Event/CompleteEvent.php:13
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/rets-rabbit/template/detail.example.php on line 35
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rets-rabbit/vendor/guzzlehttp/guzzle/tests/Subscriber/HistoryTest.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/rets-rabbit/vendor/guzzlehttp/guzzle/src/Exception/AdapterException.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rets-rabbit/vendor/guzzlehttp/guzzle/tests/UrlTest.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/rets-rabbit/vendor/guzzlehttp/guzzle/tests/Message/MessageParserTest.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Event\\AbstractEvent' not found in wp-content/plugins/rets-rabbit/vendor/guzzlehttp/guzzle/src/Event/AbstractRequestEvent.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/rets-rabbit/template/detail.example.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: idx search, rets, real estate listings, rets search, rets feed...

rets-rabbit/retsrabbit.php 92% from 13 tests

"Rets Rabbit" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rets-rabbit.php" instead of "retsrabbit.php")

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
Everything looks great! No dangerous files found in this plugin21,043 lines of code in 214 files:
LanguageFilesBlank linesComment linesLines of code
PHP1812,7374,48316,838
Markdown548701,933
reStructuredText129801,2331,597
JSON550255
make3435179
JavaScript1133895
XML30149
Python1222348
YAML210046
HTML1003

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity6.65
▷ Minimum class complexity1.00
▷ Maximum class complexity54.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces26
Interfaces18
Traits4
Classes154
▷ Abstract classes53.25%
▷ Concrete classes14996.75%
▷ Final classes10.67%
Methods1,380
▷ Static methods533.84%
▷ Public methods1,24390.07%
▷ Protected methods251.81%
▷ Private methods1128.12%
Functions150
▷ Named functions3422.67%
▷ Anonymous functions11677.33%
Constants20
▷ Global constants210.00%
▷ Class constants1890.00%
▷ Public constants18100.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
2 PNG files occupy 0.24MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/guzzlehttp/guzzle/docs/_static/guzzle-icon.png0.78KB0.94KB0.00%
vendor/guzzlehttp/guzzle/docs/_static/logo.png241.87KB69.68KB▼ 71.19%