77% easy-property-listings

Code Review | Easy Property Listings

WordPress plugin Easy Property Listings scored77%from 54 tests.

About plugin

  • Plugin page: easy-property-lis...
  • Plugin version: 3.5
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.4
  • WordPress version: 6.3.1
  • First release: Jun 27, 2014
  • Latest release: Nov 8, 2023
  • Number of updates: 618
  • Update frequency: every 5.6 days
  • Top authors: mervb1 (100%)

Code review

54 tests

User reviews

111 reviews

Install metrics

6,000+ active /346,701 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲4.28MB] [CPU: ▲26.49ms] 75% from 4 tests

This is a short check of server-side resources used by Easy Property Listings
It is recommended to improve the following
  • RAM: The total memory usage must be kept under 10MB (currently 10.65MB on /wp-admin/post-new.php?post_type=property)
PageMemory (MB)CPU Time (ms)
Home /6.85 ▲3.3865.19 ▲26.24
Dashboard /wp-admin7.90 ▲4.55136.94 ▲78.94
Posts /wp-admin/edit.php7.96 ▲4.6078.82 ▲27.42
Add New Post /wp-admin/post-new.php10.62 ▲4.73118.60 ▲16.60
Media Library /wp-admin/upload.php7.83 ▲4.5971.75 ▲35.68
Getting started with Easy Property Listings /wp-admin/index.php?page=epl-getting-started7.7361.03
Settings /wp-admin/admin.php?page=epl-settings7.8085.03
Add New /wp-admin/post-new.php?post_type=property10.65118.05
The people that build Easy Property Listings /wp-admin/index.php?page=epl-credits7.86436.74
Contacts /wp-admin/admin.php?page=epl-contacts7.8660.84
Suburb /wp-admin/edit-tags.php?taxonomy=location&post_type=property7.8265.51
Help /wp-admin/admin.php?page=epl-general7.7860.34
Tools /wp-admin/admin.php?page=epl-tools7.7378.15
Features /wp-admin/edit-tags.php?taxonomy=tax_feature&post_type=property7.8260.99
All Listings /wp-admin/edit.php?post_type=property7.9366.45

Server storage [IO: ▲5.01MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 288 new files
Database: no new tables, 15 new options
New WordPress options
theysaidso_admin_options
epl_rewrite_rules
widget_theysaidso_widget
widget_epl_property_search
epl_version
widget_recent-comments
epl_use_php_sessions
widget_epl_contact_capture
epl_settings
widget_epl_author
...

Browser metrics Passed 4 tests

Easy Property Listings: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,532 ▲77013.64 ▼1.0711.20 ▲9.6435.10 ▼3.84
Dashboard /wp-admin2,537 ▲3605.79 ▲0.15103.77 ▲13.6044.45 ▲4.27
Posts /wp-admin/edit.php2,369 ▲2693.09 ▲1.1450.65 ▲9.8234.97 ▼0.39
Add New Post /wp-admin/post-new.php1,777 ▲24223.74 ▼1.34642.30 ▲18.6334.90 ▼32.47
Media Library /wp-admin/upload.php1,649 ▲2524.38 ▲0.23106.17 ▲4.8443.75 ▼1.28
Getting started with Easy Property Listings /wp-admin/index.php?page=epl-getting-started2,1189.09282.76107.05
Settings /wp-admin/admin.php?page=epl-settings4,4054.00111.2860.37
Add New /wp-admin/post-new.php?post_type=property7,75419.031,063.88201.57
The people that build Easy Property Listings /wp-admin/index.php?page=epl-credits1,0911.8629.2035.12
Contacts /wp-admin/admin.php?page=epl-contacts1,3971.8329.9227.18
Suburb /wp-admin/edit-tags.php?taxonomy=location&post_type=property1,4951.9634.1429.49
Help /wp-admin/admin.php?page=epl-general2,32415.82451.5467.48
Tools /wp-admin/admin.php?page=epl-tools1,1081.7733.4129.30
Features /wp-admin/edit-tags.php?taxonomy=tax_feature&post_type=property1,4951.9732.7929.76
All Listings /wp-admin/edit.php?post_type=property1,6623.1848.8532.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 15 options in the database
    • epl_use_php_sessions
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_epl_property_gallery
    • widget_recent-comments
    • widget_epl_recent_property
    • widget_theysaidso_widget
    • widget_epl_property_search
    • widget_recent-posts
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-property-listings/lib/templates/themes/twentytwenty/single-listing.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-property-listings/lib/includes/libraries/wp_session/wp-session.php:83
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-property-listings/lib/templates/themes/twentyseventeen/archive-listing.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-property-listings/lib/templates/themes/twentynineteen/single-listing.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-property-listings/lib/templates/themes/twentytwenty/archive-listing.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-property-listings/lib/templates/themes/twentynineteen/archive-listing.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-property-listings/lib/templates/themes/twentyseventeen/single-listing.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-property-listings/lib/templates/content/single-listing.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/easy-property-listings/lib/templates/content/archive-listing.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-property-listings/lib/templates/themes/twentyfourteen/archive-listing.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/post-new.php?post_type=property
    • > Console-api (severe) in unknown
    https://maps.googleapis.com/maps/api/js?v=3.exp&callback=Function.prototype&ver=3.5 131:248 "Geocoding Service: You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account"
    • > GET request to /wp-admin/post-new.php?post_type=property
    • > Javascript (severe) in unknown
    /wp-content/plugins/easy-property-listings/lib/assets/js/jquery-admin-scripts.min.js?ver=3.5 0:3265 Uncaught TypeError: Cannot read properties of null (reading '0')

Optimizations

Plugin configuration 90% 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
6 plugin tags: crm, real estate, contact management, listings, property...

easy-property-listings/easy-property-listings.php 77% from 13 tests

"Easy Property Listings" version 3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Description: Keep the plugin description shorter than 140 characters (currently 273 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin48,249 lines of code in 200 files:
LanguageFilesBlank linesComment linesLines of code
PHP1666,04910,95726,897
CSS162223768,427
JavaScript149861,0408,309
PO File11,1081,7062,557
XML153172,046
SVG20113

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity49.43
▷ Minimum class complexity1.00
▷ Maximum class complexity415.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes00.00%
▷ Concrete classes30100.00%
▷ Final classes26.67%
Methods441
▷ Static methods40.91%
▷ Public methods38587.30%
▷ Protected methods306.80%
▷ Private methods265.90%
Functions541
▷ Named functions54099.82%
▷ Anonymous functions10.18%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
41 PNG files occupy 1.11MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/assets/images/social-icons-sprites.png9.53KB3.37KB▼ 64.67%
lib/assets/images/icon-sprites.png4.37KB2.72KB▼ 37.73%
lib/assets/images/invalid.png0.30KB0.28KB▼ 7.44%
lib/assets/images/epl-wp-badge.png6.78KB4.63KB▼ 31.66%
lib/assets/images/icon-sprites-100px.png22.22KB11.18KB▼ 49.71%