Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/intellectual-property-basic/taxonomies/amenity/setup.php+60
Declaration of IProperty_Amenity_Checklist::start_el(&$output, $category, $depth, $args, $id = 0) should be compatible with Walker_Category_Checklist::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
Server metrics [RAM: ▼1.53MB] [CPU: ▼51.45ms] Passed 4 tests
Server-side resources used by IProperty Real Estate Agent
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.45 ▼1.01 | 7.03 ▼34.81 |
Dashboard /wp-admin | 2.47 ▼0.83 | 8.94 ▼41.95 |
Posts /wp-admin/edit.php | 2.48 ▼0.88 | 9.47 ▼45.16 |
Add New Post /wp-admin/post-new.php | 2.47 ▼3.41 | 8.30 ▼83.89 |
Media Library /wp-admin/upload.php | 2.47 ▼0.76 | 10.09 ▼28.55 |
Property Categories /wp-admin/edit-tags.php?taxonomy=property-category&post_type=property | 2.48 | 8.62 |
Property Amenities /wp-admin/edit-tags.php?taxonomy=property-amenity&post_type=property | 2.48 | 10.95 |
Property /wp-admin/admin.php?page=iproperty-settings-property | 2.48 | 9.65 |
General /wp-admin/admin.php?page=iproperty-settings-general | 2.48 | 9.00 |
Add New /wp-admin/post-new.php?post_type=property | 2.48 | 7.93 |
Companies /wp-admin/edit-tags.php?taxonomy=company | 2.48 | 11.97 |
Property Sale Types /wp-admin/edit-tags.php?taxonomy=property-sale-type&post_type=property | 2.48 | 7.87 |
Featured /wp-admin/admin.php?page=iproperty-settings-featured | 2.48 | 9.27 |
Currency /wp-admin/admin.php?page=iproperty-settings-currency | 2.48 | 9.00 |
All Properties /wp-admin/edit.php?post_type=property | 2.48 | 10.78 |
Server storage [IO: ▲0.68MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 124 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_iproperty_properties |
New WordPress options |
---|
property-amenity_children |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
iproperty_db_version |
iproperty_options |
widget_recent-comments |
property-category_children |
Browser metrics Passed 4 tests
A check of browser resources used by IProperty Real Estate Agent
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,136 ▲347 | 13.69 ▲0.44 | 10.50 ▲8.66 | 42.08 ▲1.14 |
Dashboard /wp-admin | 2,315 ▲109 | 4.88 ▼1.01 | 109.56 ▲1.71 | 42.04 ▲1.48 |
Posts /wp-admin/edit.php | 2,201 ▲112 | 2.06 ▲0.00 | 39.35 ▲0.35 | 37.02 ▲2.25 |
Add New Post /wp-admin/post-new.php | 1,631 ▲86 | 17.97 ▼5.27 | 686.93 ▲19.33 | 46.20 ▼12.86 |
Media Library /wp-admin/upload.php | 1,497 ▲109 | 4.21 ▲0.04 | 98.14 ▼14.52 | 41.52 ▼8.62 |
Property Categories /wp-admin/edit-tags.php?taxonomy=property-category&post_type=property | 1,629 | 2.10 | 37.76 | 33.33 |
Property Amenities /wp-admin/edit-tags.php?taxonomy=property-amenity&post_type=property | 2,644 | 2.14 | 27.49 | 39.73 |
Property /wp-admin/admin.php?page=iproperty-settings-property | 947 | 1.94 | 35.03 | 25.12 |
General /wp-admin/admin.php?page=iproperty-settings-general | 1,154 | 1.93 | 40.67 | 28.38 |
Add New /wp-admin/post-new.php?post_type=property | 4,032 | 8.54 | 214.17 | 73.15 |
Companies /wp-admin/edit-tags.php?taxonomy=company | 1,459 | 2.10 | 39.11 | 32.99 |
Property Sale Types /wp-admin/edit-tags.php?taxonomy=property-sale-type&post_type=property | 1,732 | 2.14 | 28.44 | 37.31 |
Featured /wp-admin/admin.php?page=iproperty-settings-featured | 1,096 | 1.86 | 34.19 | 28.69 |
Currency /wp-admin/admin.php?page=iproperty-settings-currency | 1,373 | 1.81 | 26.53 | 29.50 |
All Properties /wp-admin/edit.php?post_type=property | 1,279 | 1.95 | 33.73 | 33.51 |
Uninstaller [IO: ✅] [DB: ▲0.01MB] 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
- > Warning in wp-content/plugins/intellectual-property-basic/taxonomies/amenity/setup.php+60
Declaration of IProperty_Amenity_Checklist::start_el(&$output, $category, $depth, $args, $id = 0) should be compatible with Walker_Category_Checklist::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- iproperty_options
- property-amenity_children
- property-category_children
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=property
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/intellectual-property-basic/taxonomies/amenity/setup.php+60
Declaration of IProperty_Amenity_Checklist::start_el(&$output, $category, $depth, $args, $id = 0) should be compatible with Walker_Category_Checklist::start_el(&$output, $data_object, $depth = 0, $args = Array, $current_object_id = 0)
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=property
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/intellectual-property-basic/vendor/struts/classes/struts/option/select.php+33
Declaration of IProperty_Struts_Option_Select::customizer_control_options($setting_name, $priority) should be compatible with IProperty_Struts_Option::customizer_control_options($setting_name, $priority = 1000)
- 33 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=iproperty-settings-currency
- > Notice in wp-content/plugins/intellectual-property-basic/vendor/struts/classes/struts/option.php+124
Only variables should be passed by reference
- > GET request to /wp-admin/edit.php?post_type=property
- > Warning in wp-includes/class-wp-hook.php+310
Parameter 2 to iproperty_property_admin_orderby() expected to be a reference, value given
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/intellectual-property-basic/views/single_property/top_tabs/_gallery.php
- > /wp-content/plugins/intellectual-property-basic/views/single_property/top_tabs/_street_view.php
- > /wp-content/plugins/intellectual-property-basic/endpoints/currency_convert.php
- 56× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/intellectual-property-basic/taxonomies/sale_type/setup.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function iproperty_get_current_property() in wp-content/plugins/intellectual-property-basic/views/_compact_property.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function iproperty_main_container_class() in wp-content/plugins/intellectual-property-basic/views/single_property.php:1
- > PHP Fatal error
Uncaught Error: Class 'IProperty_Struts_Option' not found in wp-content/plugins/intellectual-property-basic/vendor/struts/classes/struts/option/select.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory_uri() in wp-content/plugins/intellectual-property-basic/vendor/struts/config.example.php:3
- > PHP Fatal error
Uncaught Error: Class 'IProperty_Struts_Option' not found in wp-content/plugins/intellectual-property-basic/vendor/struts/classes/struts/option/text.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function iproperty_get_current_agent() in wp-content/plugins/intellectual-property-basic/views/_agent_details.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/intellectual-property-basic/views/_filter_companies.php:2
- > PHP Notice
Undefined variable: images in wp-content/plugins/intellectual-property-basic/views/single_property/top_tabs/_gallery.php on line 2
- > PHP Notice
Undefined variable: options in wp-content/plugins/intellectual-property-basic/vendor/struts/templates/default.php on line 3
- > PHP Fatal error
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)
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=company
- > Deprecation (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=company
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&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/intellectual-property-basic/vendor/Tax-Meta-Class/Tax-meta-class/js/tax-meta-clss.js:135:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&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&ver=6.3.1:2:27292)" undefined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=company
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/post-new.php?post_type=property
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?sensor=false&ver=6.3.1 208:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: iproperty, estate agency, real estate, realestate, property...
intellectual-property-basic/iproperty.php 85% from 13 tests
The primary PHP file in "IProperty Real Estate Agent" version 0.2.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("intellectual-property-basic.php" instead of "iproperty.php")
- Description: The description should be shorter than 140 characters (currently 343 characters long)
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
Good job! No executable or dangerous file extensions detected11,669 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 1,599 | 1,333 | 7,123 |
JavaScript | 13 | 459 | 528 | 2,539 |
CSS | 6 | 798 | 231 | 1,175 |
PO File | 1 | 380 | 425 | 786 |
Markdown | 1 | 19 | 0 | 46 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 21.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 201.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 2 | 11.11% |
▷ Concrete classes | 16 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 4 | 1.90% |
▷ Public methods | 182 | 86.26% |
▷ Protected methods | 29 | 13.74% |
▷ Private methods | 0 | 0.00% |
Functions | 214 | |
▷ Named functions | 214 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-table-sort.png | 2.96KB | 0.33KB | ▼ 88.90% |
stylesheets/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
images/map-preview.png | 0.57KB | 0.54KB | ▼ 5.81% |
images/property-preview.png | 0.34KB | 0.34KB | 0.00% |
stylesheets/images/calendar.png | 0.58KB | 0.61KB | 0.00% |