Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.55MB] [CPU: ▼48.69ms] Passed 4 tests
Server-side resources used by Real Estate Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.44 ▼1.02 | 10.61 ▼29.47 |
Dashboard /wp-admin | 2.46 ▼0.84 | 12.10 ▼40.36 |
Posts /wp-admin/edit.php | 2.46 ▼0.89 | 12.27 ▼41.21 |
Add New Post /wp-admin/post-new.php | 2.46 ▼3.42 | 14.89 ▼83.70 |
Media Library /wp-admin/upload.php | 2.46 ▼0.77 | 12.06 ▼27.51 |
Real Estate Pro /wp-admin/options-general.php?page=re-pro-settings | 2.46 | 13.15 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 155 new files
Database: no new tables, 28 new options
New WordPress options |
---|
widget_homes_featured_listings |
widget_homefinder_affiliate_search |
widget_zillow_expensive_homes_widget |
widget_homes_commute_time |
widget_homes_simple_search |
widget_recent-posts |
widget_zillow_review_widget |
db_upgraded |
widget_homefinder_advertiser_directory |
widget_zillow_newest_forsale_homes_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Real Estate Pro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.61 ▼0.80 | 1.96 ▼0.04 | 45.23 ▲1.63 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▼1.05 | 103.64 ▲3.51 | 43.40 ▼2.85 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.00 ▼0.04 | 36.70 ▼3.59 | 37.68 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.12 ▲5.65 | 646.51 ▼43.69 | 55.61 ▼6.59 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▲0.02 | 97.42 ▼9.60 | 41.63 ▼6.47 |
Real Estate Pro /wp-admin/options-general.php?page=re-pro-settings | 848 | 2.03 | 24.68 | 34.08 |
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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/re-pro/modules/greatschools/widgets/widget-getschools.php+126
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 28 options in the database
- widget_zillow_expensive_homes_widget
- widget_theysaidso_widget
- widget_rentbits_avg_rental_rates
- widget_zillow_review_widget
- widget_zillow_large_search_box
- widget_homes_search
- widget_homefinder_advertiser_directory
- widget_recent-posts
- widget_streetadvisor-details
- widget_homes_featured_listings
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=re-pro-settings
- > Notice in wp-content/plugins/re-pro/modules/greatschools/widgets/widget-getschools.php+126
Trying to access array offset on value of type bool
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 take a closer look at the following
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/re-pro/settings.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/re-pro/modules/google-maps/maps-widget.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/re-pro/modules/realtor-com/widgets/class-realtor-widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/re-pro/modules/zillow/widgets/class-zillow-badges-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_role() in wp-content/plugins/re-pro/modules/users/class-user-roles.php:34
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/re-pro/modules/equal-housing/widgets/class-equal-housing-widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/re-pro/modules/greatschools/widgets/widget-getschools.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/re-pro/modules/users/class-user-fields.php:62
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/re-pro/modules/equal-housing/widgets/class-equal-housing-widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in re-pro/assets to your readme.txt
- Requires php: Invalid plugin version format
re-pro/re-pro.php 92% from 13 tests
The main PHP file in "Real Estate Pro" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin4,668 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 1,420 | 3,332 | 3,996 |
Sass | 1 | 34 | 3 | 242 |
CSS | 2 | 38 | 0 | 200 |
SVG | 4 | 0 | 1 | 96 |
JavaScript | 4 | 5 | 1 | 77 |
Markdown | 2 | 24 | 0 | 53 |
YAML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 51 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 293 | |
▷ Static methods | 1 | 0.34% |
▷ Public methods | 284 | 96.93% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 3.07% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
57 PNG files occupy 0.37MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/greatschools/GS_Stars_3.png | 1.01KB | 0.68KB | ▼ 32.75% |
assets/images/greatschools/94x94_GS_CityDistrict_Rating_Large_6.png | 3.83KB | 1.77KB | ▼ 53.94% |
assets/images/icon-256x256.png | 7.00KB | 4.47KB | ▼ 36.08% |
assets/images/greatschools/94x94_GS_CityDistrict_Rating_Large_3.png | 3.90KB | 1.74KB | ▼ 55.46% |
assets/images/greatschools/20x20_GS_School_Rating_Small_4.png | 1.45KB | 0.37KB | ▼ 74.38% |