Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲3.33MB] [CPU: ▲21.79ms] Passed 4 tests
An overview of server-side resources used by PropertyHive
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.72 ▲2.26 | 54.44 ▲15.05 |
Dashboard /wp-admin | 7.00 ▲3.70 | 75.55 ▲19.63 |
Posts /wp-admin/edit.php | 7.08 ▲3.72 | 82.98 ▲37.20 |
Add New Post /wp-admin/post-new.php | 9.80 ▲3.91 | 109.67 ▲15.78 |
Media Library /wp-admin/upload.php | 6.86 ▲3.64 | 68.27 ▲36.69 |
Management /wp-admin/edit.php?post_type=key_date&orderby=date_due&order=asc&status=upcoming_and_overdue&filter_action=Filter | 7.06 | 76.69 |
Enquiries /wp-admin/edit.php?post_type=enquiry | 7.05 | 73.80 |
Merge Duplicate Contacts /wp-admin/admin.php?page=ph-merge-duplicate-contacts | 7.08 | 63.48 |
Third Party Contacts /wp-admin/edit.php?post_type=contact&_contact_type=thirdparty | 7.05 | 64.59 |
Viewings /wp-admin/edit.php?post_type=viewing | 7.06 | 70.44 |
Tenancies /wp-admin/edit.php?post_type=tenancy | 6.95 | 62.62 |
Appraisals /wp-admin/edit.php?post_type=appraisal | 7.05 | 66.86 |
Property Hive /wp-admin/admin.php?page=propertyhive | 8.07 | 65.21 |
Properties /wp-admin/edit.php?post_type=property | 7.07 | 71.89 |
Owners & Landlords /wp-admin/edit.php?post_type=contact&_contact_type=owner | 7.05 | 64.46 |
Server storage [IO: ▲8.99MB] [DB: ▲0.18MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 529 new files
Database: 2 new tables, 30 new options
New tables |
---|
wp_ph_email_log |
wp_ph_address_keyword_polygon |
New WordPress options |
---|
propertyhive_key_date_type |
can_compress_scripts |
widget_recent-comments |
property_type_children |
propertyhivemeta_box_errors |
propertyhive_availability_departments |
commercial_property_type_children |
propertyhive_primary_department |
propertyhive_active_departments_sales |
tenure_children |
... |
Browser metrics Passed 4 tests
Checking browser requirements for PropertyHive
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,188 ▲441 | 13.57 ▼0.70 | 9.30 ▲7.64 | 37.33 ▼7.21 |
Dashboard /wp-admin | 2,560 ▲380 | 5.82 ▲0.16 | 120.93 ▲23.16 | 81.08 ▲34.29 |
Posts /wp-admin/edit.php | 2,248 ▲148 | 2.20 ▲0.26 | 38.78 ▲1.38 | 35.33 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,644 ▲118 | 23.12 ▼0.54 | 761.64 ▲121.04 | 62.43 ▲12.77 |
Media Library /wp-admin/upload.php | 1,545 ▲142 | 4.15 ▼0.05 | 98.04 ▼2.20 | 76.95 ▲35.08 |
Management /wp-admin/edit.php?post_type=key_date&orderby=date_due&order=asc&status=upcoming_and_overdue&filter_action=Filter | 1,489 | 4.28 | 101.23 | 30.95 |
Enquiries /wp-admin/edit.php?post_type=enquiry | 1,519 | 4.32 | 91.67 | 80.49 |
Merge Duplicate Contacts /wp-admin/admin.php?page=ph-merge-duplicate-contacts | 1,152 | 4.01 | 54.49 | 67.31 |
Third Party Contacts /wp-admin/edit.php?post_type=contact&_contact_type=thirdparty | 1,448 | 4.21 | 62.33 | 81.06 |
Viewings /wp-admin/edit.php?post_type=viewing | 1,618 | 4.68 | 74.70 | 32.46 |
Tenancies /wp-admin/edit.php?post_type=tenancy | 1,308 | 2.09 | 35.85 | 31.02 |
Appraisals /wp-admin/edit.php?post_type=appraisal | 1,595 | 4.63 | 66.97 | 69.53 |
Property Hive /wp-admin/admin.php?page=propertyhive | 1,238 | 1.83 | 27.33 | 28.42 |
Properties /wp-admin/edit.php?post_type=property | 1,579 | 4.21 | 61.34 | 68.64 |
Owners & Landlords /wp-admin/edit.php?post_type=contact&_contact_type=owner | 1,451 | 4.19 | 67.46 | 46.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.18MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_ph_address_keyword_polygon
- wp_ph_email_log
- Zombie WordPress options were found after uninstall: 30 options
- management_key_date_type_children
- furnished_children
- propertyhive_default_country
- propertyhive_active_departments_sales
- widget_recent-comments
- db_upgraded
- propertyhivemeta_box_errors
- can_compress_scripts
- parking_children
- propertyhive_version
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/propertyhive/templates/search/loop-end.php
- > /wp-content/plugins/propertyhive/includes/admin/class-ph-admin-merge-contacts.php
- > /wp-content/plugins/propertyhive/templates/search/loop-start.php
- > /wp-content/plugins/propertyhive/includes/admin/views/html-admin-reports-property-stock-analysis.php
- > /wp-content/plugins/propertyhive/includes/admin/class-ph-admin-applicant-list.php
- 95× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/propertyhive/includes/admin/views/html-property-sales-meta-box.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/propertyhive/includes/elementor-widgets/property-full-description.php:7
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/propertyhive/includes/elementor-widgets/property-availability.php:7
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/propertyhive/includes/elementor-widgets/property-address-name-number.php:7
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/propertyhive/includes/elementor-widgets/property-search-form.php:7
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/propertyhive/includes/admin/views/html-property-offers-meta-box.php on line 5
- > PHP Notice
Undefined variable: property in wp-content/plugins/propertyhive/templates/emails/applicant-match-property.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/propertyhive/includes/elementor-widgets/property-let-available-date.php:7
- > PHP Notice
Undefined variable: post in wp-content/plugins/propertyhive/includes/admin/views/html-display-notes.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/propertyhive/includes/admin/views/html-property-offers-meta-box.php:26
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=contact&_contact_type=owner
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?ver=3 215: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 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: You are using too many tags: 24 tag instead of maximum 10
propertyhive/propertyhive.php 92% from 13 tests
The main file in "PropertyHive" v. 2.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/i18n/languages/")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin98,546 lines of code in 443 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 382 | 14,950 | 10,086 | 66,310 |
JavaScript | 44 | 8,142 | 8,594 | 28,592 |
CSS | 11 | 225 | 119 | 2,837 |
SVG | 2 | 0 | 0 | 539 |
Markdown | 1 | 68 | 0 | 140 |
HTML | 1 | 3 | 0 | 76 |
JSON | 2 | 0 | 0 | 52 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 180)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 27.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 710.00 |
Average method complexity | 5.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 180.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 288 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 288 | 100.00% |
▷ Final classes | 1 | 0.35% |
Methods | 1,692 | |
▷ Static methods | 239 | 14.13% |
▷ Public methods | 1,491 | 88.12% |
▷ Protected methods | 108 | 6.38% |
▷ Private methods | 93 | 5.50% |
Functions | 119 | |
▷ Named functions | 114 | 95.80% |
▷ Anonymous functions | 5 | 4.20% |
Constants | 21 | |
▷ Global constants | 9 | 42.86% |
▷ Class constants | 12 | 57.14% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
49 PNG files occupy 0.43MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jquery-ui/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
assets/images/attachment-delete.png | 0.46KB | 0.36KB | ▼ 21.28% |
assets/css/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/images/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 2.99% |
assets/images/admin/get-involved/trello.png | 78.88KB | 30.35KB | ▼ 61.53% |