Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲7.23MB] [CPU: ▲56.22ms] 50% from 4 tests
A check of server-side resources used by Essential Real Estate
It is recommended to improve the following
- RAM: You should keep total memory usage under 10MB (currently 14.68MB on /wp-admin/post-new.php?post_type=agent)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 7.23MB on /wp-admin/edit.php?post_type=package)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.88 ▲10.42 | 86.13 ▲45.67 |
Dashboard /wp-admin | 9.37 ▲6.07 | 93.30 ▲43.00 |
Posts /wp-admin/edit.php | 9.79 ▲6.43 | 133.32 ▲84.33 |
Add New Post /wp-admin/post-new.php | 16.23 ▲10.34 | 201.13 ▲77.00 |
Media Library /wp-admin/upload.php | 9.33 ▲6.10 | 90.75 ▲59.21 |
Property Status /wp-admin/edit-tags.php?taxonomy=property-status&post_type=property | 9.53 | 89.68 |
Add New /wp-admin/post-new.php?post_type=package | 9.94 | 143.55 |
Welcome /wp-admin/admin.php?page=ere_welcome | 9.24 | 75.38 |
Property Feature /wp-admin/edit-tags.php?taxonomy=property-feature&post_type=property | 9.41 | 89.48 |
Agency /wp-admin/edit-tags.php?taxonomy=agency&post_type=agent | 14.63 | 89.43 |
Fonts Management /wp-admin/admin.php?page=g5core_fonts_management | 9.27 | 76.03 |
Add New /wp-admin/post-new.php?post_type=property | 14.94 | 217.64 |
Property Type /wp-admin/edit-tags.php?taxonomy=property-type&post_type=property | 9.51 | 84.90 |
Add New /wp-admin/post-new.php?post_type=agent | 14.68 | 157.53 |
All Packages /wp-admin/edit.php?post_type=package | 9.67 | 105.37 |
Server storage [IO: ▲15.47MB] [DB: ▲0.05MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 1,177 new files
Database: 1 new table, 17 new options
New tables |
---|
wp_ere_save_search |
New WordPress options |
---|
widget_ere_widget_recent_properties |
can_compress_scripts |
widget_theysaidso_widget |
ere_options |
ere_version |
widget_recent-posts |
widget_ere_widget_featured_properties |
theysaidso_admin_options |
widget_ere_widget_mortgage_calculator |
widget_ere_widget_top_agents |
... |
Browser metrics 75% from 4 tests
This is an overview of browser requirements for Essential Real Estate
Please improve the following
- Nodes: Limit the number of DOM nodes under 25,000 (currently 33,193 on /wp-admin/admin.php?page=g5core_fonts_management)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,204 ▲442 | 15.58 ▲1.31 | 42.95 ▲41.30 | 42.83 ▼1.71 |
Dashboard /wp-admin | 2,396 ▲215 | 5.62 ▼0.06 | 93.61 ▼20.47 | 46.37 ▼1.46 |
Posts /wp-admin/edit.php | 7,715 ▲5,615 | 2.42 ▲0.46 | 56.10 ▲18.21 | 34.58 ▲2.37 |
Add New Post /wp-admin/post-new.php | 6,999 ▲5,470 | 23.14 ▲0.28 | 706.41 ▲131.69 | 37.98 ▼12.26 |
Media Library /wp-admin/upload.php | 1,601 ▲198 | 4.14 ▼0.01 | 107.93 ▲10.60 | 47.41 ▲3.01 |
Property Status /wp-admin/edit-tags.php?taxonomy=property-status&post_type=property | 1,919 | 3.52 | 67.08 | 41.60 |
Add New /wp-admin/post-new.php?post_type=package | 7,727 | 4.68 | 104.06 | 40.57 |
Welcome /wp-admin/admin.php?page=ere_welcome | 1,419 | 9.16 | 284.77 | 66.98 |
Property Feature /wp-admin/edit-tags.php?taxonomy=property-feature&post_type=property | 1,476 | 2.28 | 30.06 | 28.76 |
Agency /wp-admin/edit-tags.php?taxonomy=agency&post_type=agent | 2,923 | 10.53 | 250.92 | 90.12 |
Fonts Management /wp-admin/admin.php?page=g5core_fonts_management | 33,193 | 6.54 | 109.58 | 93.60 |
Add New /wp-admin/post-new.php?post_type=property | 12,116 | 10.75 | 299.24 | 85.50 |
Property Type /wp-admin/edit-tags.php?taxonomy=property-type&post_type=property | 1,788 | 3.49 | 44.73 | 36.34 |
Add New /wp-admin/post-new.php?post_type=agent | 9,195 | 10.01 | 258.81 | 74.80 |
All Packages /wp-admin/edit.php?post_type=package | 6,715 | 2.50 | 49.04 | 27.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_ere_save_search
- The uninstall procedure has failed, leaving 17 options in the database
- widget_ere_widget_login_menu
- theysaidso_admin_options
- widget_ere_widget_my_package
- widget_ere_widget_top_agents
- widget_recent-comments
- widget_ere_widget_listing_property_taxonomy
- db_upgraded
- ere_options
- widget_ere_widget_search_form
- ere_version
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 22× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/essential-real-estate/lib/smart-framework/init.php
- > /wp-content/plugins/essential-real-estate/lib/smart-framework/inc/content-inject.class.php
- > /wp-content/plugins/essential-real-estate/includes/functions/property.php
- > /wp-content/plugins/essential-real-estate/lib/smart-framework/admin/templates/meta-end.php
- > /wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/build.php
- > /wp-content/plugins/essential-real-estate/includes/ere-formatting-functions.php
- > /wp-content/plugins/essential-real-estate/public/templates/loop/property-title.php
- > /wp-content/plugins/essential-real-estate/public/templates/loop/property-location.php
- > /wp-content/plugins/essential-real-estate/lib/smart-framework/core/fonts/fonts.class.php
- > /wp-content/plugins/essential-real-estate/lib/smart-framework/core/icons-popup/templates/icons-svg.tpl.php
- 110× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/tests/BankAccountTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/tests/TestCase.php:9
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/lib/Error/Api.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/essential-real-estate/includes/widgets/acf/templates/image.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\JsonSerializable' not found in wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/lib/StripeObject.php:8
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/tests/TokenTest.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/essential-real-estate/lib/smart-framework/admin/templates/theme-options-end.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/tests/CollectionTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/lib/ApplicationFee.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/tests/PlanTest.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit-tags.php?taxonomy=property-status&post_type=property
- > Javascript (severe) in unknown
/wp-admin/edit-tags.php?taxonomy=property-status&post_type=property 55:7 Uncaught SyntaxError: Invalid or unexpected token
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=property
- > Console-api (warning) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places&language=en_US&key=AIzaSyBqmFdSPp4-iY_BG14j_eUeLwOn9Oj4a4Q&ver=6.3.1 240: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"
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=agency&post_type=agent
- > Console-api (severe) in unknown
http://maps.googleapis.com/maps/api/js?libraries=places&language=en_US&key=AIzaSyBqmFdSPp4-iY_BG14j_eUeLwOn9Oj4a4Q&ver=6.3.1 158:248 "Google Maps JavaScript API error: ExpiredKeyMapError\nhttps://developers.google.com/maps/documentation/javascript/error-messages#expired-key-map-error"
- > GET request to /wp-admin/edit-tags.php?taxonomy=property-type&post_type=property
- > Javascript (severe) in unknown
/wp-admin/edit-tags.php?taxonomy=property-type&post_type=property 55:7 Uncaught SyntaxError: Invalid or unexpected token
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== essential-real-estate ===
)
essential-real-estate/essential-real-estate.php 92% from 13 tests
This is the main PHP file of "Essential Real Estate" version 4.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 289 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please make sure to remedy the following
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/essential-real-estate/public/partials/payment/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 314 | 24,154 | 11,059 | 66,892 |
PHP | 427 | 4,095 | 5,697 | 51,596 |
CSS | 165 | 2,464 | 524 | 34,225 |
JSON | 2 | 0 | 0 | 33,760 |
PO File | 4 | 6,729 | 12,383 | 15,172 |
LESS | 18 | 586 | 81 | 7,506 |
Sass | 50 | 563 | 6 | 5,559 |
SVG | 3 | 0 | 0 | 3,001 |
Markdown | 3 | 426 | 0 | 912 |
XML | 3 | 0 | 0 | 54 |
HTML | 1 | 2 | 0 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 232 | |
▷ Abstract classes | 11 | 4.74% |
▷ Concrete classes | 221 | 95.26% |
▷ Final classes | 1 | 0.45% |
Methods | 1,341 | |
▷ Static methods | 212 | 15.81% |
▷ Public methods | 1,202 | 89.63% |
▷ Protected methods | 41 | 3.06% |
▷ Private methods | 98 | 7.31% |
Functions | 82 | |
▷ Named functions | 79 | 96.34% |
▷ Anonymous functions | 3 | 3.66% |
Constants | 18 | |
▷ Global constants | 14 | 77.78% |
▷ Class constants | 4 | 22.22% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
134 PNG files occupy 0.49MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/nearby-places/Pharmacy.png | 3.52KB | 2.03KB | ▼ 42.34% |
public/assets/packages/jquery-ui/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.32KB | 0.18KB | ▼ 42.38% |
admin/assets/images/nearby-places/Place_of_worship.png | 3.46KB | 2.02KB | ▼ 41.73% |
public/assets/packages/jquery-ui/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
admin/assets/images/nearby-places/University.png | 3.45KB | 2.00KB | ▼ 42.24% |