66% estatebud-properties-listings

Code Review | Estatebud - Properties & Listings

WordPress plugin Estatebud - Properties & Listings scored66%from 54 tests.

About plugin

  • Plugin page: estatebud-propert...
  • Plugin version: 5.5.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Mar 7, 2018
  • Latest release: Oct 28, 2021
  • Number of updates: 91
  • Update frequency: every 14.7 days
  • Top authors: estatebud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /6,796 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.66MB] [CPU: ▼4.45ms] Passed 4 tests

An overview of server-side resources used by Estatebud - Properties & Listings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲0.7251.14 ▲6.16
Dashboard /wp-admin4.00 ▲0.6655.56 ▼12.37
Posts /wp-admin/edit.php4.06 ▲0.7057.52 ▲1.89
Add New Post /wp-admin/post-new.php6.54 ▲0.6698.45 ▼9.52
Media Library /wp-admin/upload.php3.87 ▲0.6444.46 ▲2.22
Listing Settings /wp-admin/admin.php?page=estatebud_settings&tab=listing-settings3.96401.34
Shortcodes /wp-admin/admin.php?page=estatebud_settings&tab=shortcodes3.91274.34
Search Boxes /wp-admin/admin.php?page=estatebud_settings&tab=widgets3.91207.17
Property Inquiries /wp-admin/admin.php?page=estatebud_settings&tab=property-inquiries3.98295.38
Interactive Maps /wp-admin/admin.php?page=estatebud_settings&tab=maps3.91270.28
Support /wp-admin/admin.php?page=estatebud_settings&tab=support3.91205.90
Welcome /wp-admin/admin.php?page=estatebud_settings&tab=welcome3.91205.02
PDF Brochure /wp-admin/admin.php?page=estatebud_settings&tab=pdf-settings3.92302.85
API Settings /wp-admin/admin.php?page=estatebud_settings&tab=api-settings3.95283.99
Plugin Settings /wp-admin/admin.php?page=estatebud_settings&tab=plugin-settings3.99229.17

Server storage [IO: ▲1.78MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 146 new files
Database: no new tables, 17 new options
New WordPress options
theysaidso_admin_options
widget_estatebud-currency-widget
db_upgraded
estatebud_api_whois
estatebud_email_privacy_policy_url
widget_theysaidso_widget
can_compress_scripts
widget_estatebud-slider-widget
widget_recent-posts
estatebud_email_sender_name
...

Browser metrics Passed 4 tests

A check of browser resources used by Estatebud - Properties & Listings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,008 ▲26213.50 ▼0.879.44 ▲7.3038.73 ▼3.37
Dashboard /wp-admin2,276 ▲995.70 ▲0.0588.46 ▼10.5093.01 ▲52.84
Posts /wp-admin/edit.php2,201 ▲982.04 ▲0.0934.71 ▼6.5233.14 ▼4.08
Add New Post /wp-admin/post-new.php1,617 ▲8118.08 ▼4.95696.75 ▼13.4753.73 ▼1.24
Media Library /wp-admin/upload.php1,504 ▲1044.29 ▲0.10107.15 ▼5.6745.51 ▲2.04
Listing Settings /wp-admin/admin.php?page=estatebud_settings&tab=listing-settings1,5862.0244.2631.72
Shortcodes /wp-admin/admin.php?page=estatebud_settings&tab=shortcodes1,0371.6928.5630.06
Search Boxes /wp-admin/admin.php?page=estatebud_settings&tab=widgets1,0702.7440.7031.20
Property Inquiries /wp-admin/admin.php?page=estatebud_settings&tab=property-inquiries2,5578.71182.49123.81
Interactive Maps /wp-admin/admin.php?page=estatebud_settings&tab=maps1,1311.8425.5831.85
Support /wp-admin/admin.php?page=estatebud_settings&tab=support1,0751.7224.3429.95
Welcome /wp-admin/admin.php?page=estatebud_settings&tab=welcome1,0591.7526.6829.68
PDF Brochure /wp-admin/admin.php?page=estatebud_settings&tab=pdf-settings1,1261.7625.2627.26
API Settings /wp-admin/admin.php?page=estatebud_settings&tab=api-settings1,2021.8926.1027.30
Plugin Settings /wp-admin/admin.php?page=estatebud_settings&tab=plugin-settings1,5404.5673.7978.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 17 options in the database
    • widget_estatebud-widget
    • estatebud_email_company_recipient
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • estatebud_email_template_user
    • can_compress_scripts
    • theysaidso_admin_options
    • estatebud_email_sender_address
    • estatebud_email_sender_name
    • ...

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)
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=estatebud_settings&tab=pdf-settings
    • > Notice in wp-content/plugins/estatebud-properties-listings/admin/partials/estatebud-pdf-settings-display.php+55
    Trying to get property 'id' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=estatebud_settings&tab=pdf-settings
    • > Notice in wp-content/plugins/estatebud-properties-listings/admin/partials/estatebud-pdf-settings-display.php+56
    Trying to get property 'name' of non-object
    • > GET request to /wp-admin/admin.php?page=estatebud_settings&tab=pdf-settings
    • > Notice in wp-content/plugins/estatebud-properties-listings/admin/partials/estatebud-pdf-settings-display.php+54
    Trying to get property 'agent_details_supported' of non-object

SRP 0% 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
Please fix the following
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/estatebud-properties-listings/includes/slider/slider-multi.php
    • > /wp-content/plugins/estatebud-properties-listings/public/css/estatebud-dynamic.php
    • > /wp-content/plugins/estatebud-properties-listings/includes/slider/slider-single.php
    • > /wp-content/plugins/estatebud-properties-listings/includes/slider/slider-multi.css.php
    • > /wp-content/plugins/estatebud-properties-listings/includes/slider/slider-single.css.php
    • > /wp-content/plugins/estatebud-properties-listings/admin/partials/estatebud-shortcodes-form.php
  • 146× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: visible_count in wp-content/plugins/estatebud-properties-listings/includes/slider/slider-multi.css.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function estatebud__() in wp-content/plugins/estatebud-properties-listings/public/partials/inputs/estatebud-sea-view-check.php:3
    • > PHP Notice
      Undefined variable: document in wp-content/plugins/estatebud-properties-listings/public/partials/inputs/estatebud-price-max-input.php on line 2
    • > PHP Notice
      Undefined variable: document in wp-content/plugins/estatebud-properties-listings/public/partials/inputs/estatebud-type-select.php on line 2
    • > PHP Warning
      First parameter must either be an object or the name of an existing class in wp-content/plugins/estatebud-properties-listings/public/partials/estatebud-public-details-1.php on line 51
    • > PHP Fatal error
      Uncaught Error: Call to undefined function estatebud_e() in wp-content/plugins/estatebud-properties-listings/public/partials/estatebud-public-map-autocomplete.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/estatebud-properties-listings/admin/partials/estatebud-shortcodes-list.php on line 16
    • > PHP Notice
      Undefined variable: document in wp-content/plugins/estatebud-properties-listings/public/partials/inputs/estatebud-furnished-select.php on line 2
    • > PHP Notice
      Undefined variable: details in wp-content/plugins/estatebud-properties-listings/public/partials/estatebud-public-details-2.php on line 66
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/estatebud-properties-listings/admin/partials/estatebud-support-display.php:20

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
    • > GET request to /wp-admin/admin.php?page=estatebud_settings&tab=widgets
    • > 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 Error: ace.edit can't find div #template
    • > GET request to /wp-admin/admin.php?page=estatebud_settings&tab=property-inquiries
    • > 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: estatebud_pipelines.filter is not a function" "TypeError: estatebud_pipelines.filter is not a function\n at switchSelect (/wp-admin/admin.php?page=estatebud_settings&tab=property-inquiries:223:76)\n at HTMLSelectElement.onchange (/wp-admin/admin.php?page=estatebud_settings&tab=property-inquiries:208:100)\n at Object.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:70114)\n at HTMLSelectElement.\u003Canonymous> (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:70665)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:1594)\n at e.\u003Ccomputed>.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:70640)\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=estatebud_settings&tab=property-inquiries:239:55)\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
    • > GET request to /wp-admin/admin.php?page=estatebud_settings&tab=property-inquiries
    • > 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: estatebud_pipelines.filter is not a function
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=estatebud_settings&tab=property-inquiries
    • > Network (severe)
    https://wordpress.dio/wp-content/uploads/2018/01/logo_dark.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: real estate, real estate crm, property management, property listings, estate bud

estatebud-properties-listings/estatebud.php 85% from 13 tests

The principal PHP file in "Estatebud - Properties & Listings" v. 5.5.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("estatebud-properties-listings.php" instead of "estatebud.php")

Code Analysis Passed 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 plugin15,845 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP767301,0877,349
CSS11545713,483
JavaScript163052102,527
JSON5001,952
SVG29023534

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity28.13
▷ Minimum class complexity1.00
▷ Maximum class complexity118.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods118
▷ Static methods21.69%
▷ Public methods10790.68%
▷ Protected methods00.00%
▷ Private methods119.32%
Functions98
▷ Named functions4545.92%
▷ Anonymous functions5354.08%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin