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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 49.47 ▲12.55 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.75 ▼1.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.78 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.24 ▼9.46 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.38 | 1.97 ▲0.32 | 40.20 ▲3.55 |
Dashboard /wp-admin | 2,209 ▲20 | 4.84 ▼0.09 | 96.61 ▼24.29 | 38.65 ▼6.91 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.00 ▼0.01 | 40.52 ▼0.41 | 35.75 ▲0.44 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.26 ▲4.78 | 670.35 ▲67.31 | 70.75 ▲16.28 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▼0.01 | 95.17 ▼12.35 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 181 | 2,737 | 4,483 | 16,838 |
Markdown | 5 | 487 | 0 | 1,933 |
reStructuredText | 12 | 980 | 1,233 | 1,597 |
JSON | 5 | 5 | 0 | 255 |
make | 3 | 43 | 5 | 179 |
JavaScript | 1 | 13 | 38 | 95 |
XML | 3 | 0 | 1 | 49 |
Python | 1 | 22 | 23 | 48 |
YAML | 2 | 10 | 0 | 46 |
HTML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 18 | |
Traits | 4 | |
Classes | 154 | |
▷ Abstract classes | 5 | 3.25% |
▷ Concrete classes | 149 | 96.75% |
▷ Final classes | 1 | 0.67% |
Methods | 1,380 | |
▷ Static methods | 53 | 3.84% |
▷ Public methods | 1,243 | 90.07% |
▷ Protected methods | 25 | 1.81% |
▷ Private methods | 112 | 8.12% |
Functions | 150 | |
▷ Named functions | 34 | 22.67% |
▷ Anonymous functions | 116 | 77.33% |
Constants | 20 | |
▷ Global constants | 2 | 10.00% |
▷ Class constants | 18 | 90.00% |
▷ Public constants | 18 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/guzzlehttp/guzzle/docs/_static/guzzle-icon.png | 0.78KB | 0.94KB | 0.00% |
vendor/guzzlehttp/guzzle/docs/_static/logo.png | 241.87KB | 69.68KB | ▼ 71.19% |