Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wprealestate/wprealestate.php+146
Methods with the same name as their class will not be constructors in a future version of PHP; SearchWidget has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼49.73ms] Passed 4 tests
A check of server-side resources used by WP Real Estate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.30 | 4.72 ▼30.12 |
Dashboard /wp-admin | 2.19 ▼1.12 | 6.05 ▼40.87 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 5.73 ▼40.93 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 6.35 ▼87.00 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.53 ▼28.37 |
State /wp-admin/edit-tags.php?taxonomy=state&post_type=property | 2.19 | 5.87 |
WP Real Estate /wp-admin/admin.php?page=WPRealEstateHome | 2.19 | 6.28 |
Property Type /wp-admin/admin.php?page=WPRealEstatePropertyType | 2.19 | 6.77 |
Settings /wp-admin/admin.php?page=WPRealEstateSettings | 2.19 | 5.98 |
All Properties /wp-admin/edit.php?post_type=property | 2.19 | 6.07 |
Facility /wp-admin/edit-tags.php?taxonomy=facility&post_type=property | 2.19 | 4.88 |
Add New /wp-admin/post-new.php?post_type=property | 2.19 | 6.61 |
Server storage [IO: ▲2.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 77 new files
Database: no new tables, 15 new options
New WordPress options |
---|
widget_recent-posts |
p_detail_sidebar |
p_share_buttons |
p_list_sidebar |
widget_theysaidso_widget |
et_re_property_type |
ET_RE_Currency |
et_re_adv_flds |
theysaidso_admin_options |
p_num_slider_pics |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Real Estate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲164 | 13.74 ▼0.62 | 8.39 ▲6.63 | 43.80 ▲3.87 |
Dashboard /wp-admin | 2,265 ▲85 | 5.58 ▼0.06 | 81.92 ▼7.26 | 37.77 ▼0.99 |
Posts /wp-admin/edit.php | 2,173 ▲76 | 2.02 ▼0.05 | 36.24 ▼1.18 | 31.29 ▼0.93 |
Add New Post /wp-admin/post-new.php | 1,596 ▲68 | 18.31 ▼4.77 | 683.71 ▲12.01 | 71.16 ▲11.40 |
Media Library /wp-admin/upload.php | 1,476 ▲76 | 4.22 ▼0.05 | 95.94 ▼16.24 | 44.46 ▼3.03 |
State /wp-admin/edit-tags.php?taxonomy=state&post_type=property | 1,316 | 2.14 | 26.00 | 29.20 |
WP Real Estate /wp-admin/admin.php?page=WPRealEstateHome | 1,067 | 2.01 | 24.72 | 45.33 |
Property Type /wp-admin/admin.php?page=WPRealEstatePropertyType | 878 | 1.66 | 25.79 | 24.20 |
Settings /wp-admin/admin.php?page=WPRealEstateSettings | 1,271 | 1.68 | 23.81 | 42.78 |
All Properties /wp-admin/edit.php?post_type=property | 1,204 | 1.92 | 33.10 | 30.57 |
Facility /wp-admin/edit-tags.php?taxonomy=facility&post_type=property | 1,316 | 2.16 | 27.14 | 25.51 |
Add New /wp-admin/post-new.php?post_type=property | 3,688 | 7.53 | 186.56 | 69.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wprealestate/wprealestate.php+146
Methods with the same name as their class will not be constructors in a future version of PHP; SearchWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 15 options
- et_re_pp_listing
- can_compress_scripts
- p_detail_sidebar
- widget_theysaidso_widget
- p_list_sidebar
- widget_recent-posts
- p_num_slider_pics
- et_re_property_type
- ET_RE_Currency
- et_re_wg_bg_color
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=property
- > Deprecated in wp-content/plugins/wprealestate/wprealestate.php+146
Methods with the same name as their class will not be constructors in a future version of PHP; SearchWidget has a deprecated constructor
SRP 50% 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
Almost there! Just fix the following items
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wprealestate/wprealestate.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprealestate/functions.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprealestate/adm_pro_custom_details.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wprealestate/et_re_home.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wprealestate/shrtcd_property_list_filter.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wprealestate/wprealestate_vars.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_localize_script() in wp-content/plugins/wprealestate/wp_localize_script.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wprealestate/library/property-images-metabox.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wprealestate/tpl_property_view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wprealestate/et_er_property_type.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=property
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wprealestate/library/js/get-images.js?ver=6.3.1:21:26)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=property
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #3 is required in wprealestate/assets to your readme.txt
wprealestate/wprealestate.php Passed 13 tests
The main file in "WP Real Estate" v. 5.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
Real estate property listing.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected25,088 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 1,074 | 73 | 8,045 |
SVG | 5 | 0 | 0 | 7,319 |
HTML | 2 | 561 | 0 | 3,988 |
PHP | 14 | 516 | 123 | 2,260 |
JavaScript | 6 | 661 | 446 | 2,231 |
PO File | 4 | 515 | 1,051 | 1,245 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 39 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bed.png | 1.13KB | 0.47KB | ▼ 58.08% |
images/bg_direction_nav.png | 1.82KB | 0.79KB | ▼ 56.38% |
images/deleteicon.png | 1.09KB | 0.43KB | ▼ 60.75% |
images/no_property_image.png | 12.05KB | 3.84KB | ▼ 68.12% |
images/bath.png | 1.17KB | 0.55KB | ▼ 52.92% |