78% houzez-property-feed

Code Review | Houzez Property Feed

WordPress plugin Houzez Property Feed scored78%from 54 tests.

About plugin

  • Plugin page: houzez-property-feed
  • Plugin version: 2.0.55
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2023
  • Latest release: Dec 2, 2023
  • Number of updates: 155
  • Update frequency: every 1.2 days
  • Top authors: PropertyHive (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,785 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.51ms] Passed 4 tests

A check of server-side resources used by Houzez Property Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.87 ▼6.73
Dashboard /wp-admin3.38 ▲0.0849.84 ▲2.23
Posts /wp-admin/edit.php3.50 ▲0.1447.41 ▼2.41
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.86 ▲5.47
Media Library /wp-admin/upload.php3.30 ▲0.0735.08 ▲0.86

Server storage [IO: ▲1.71MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 100 new files
Database: 4 new tables, 8 new options
New tables
wp_houzez_property_feed_logs_instance
wp_houzez_property_feed_export_logs_instance
wp_houzez_property_feed_logs_instance_log
wp_houzez_property_feed_export_logs_instance_log
New WordPress options
can_compress_scripts
houzez_property_feed_version
widget_recent-posts
db_upgraded
theysaidso_admin_options
houzez_property_feed_db_version
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Houzez Property Feed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.23 ▼0.031.61 ▲0.0137.02 ▼6.81
Dashboard /wp-admin2,199 ▲185.49 ▼0.2384.69 ▼27.7741.44 ▼1.52
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0039.15 ▼0.5735.32 ▼2.20
Add New Post /wp-admin/post-new.php1,535 ▲923.16 ▼0.41670.83 ▲65.0655.92 ▲8.72
Media Library /wp-admin/upload.php1,401 ▲14.26 ▲0.0797.74 ▲4.2742.89 ▲2.51

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • widget_recent-posts
    • houzez_property_feed_version
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • houzez_property_feed_db_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/houzez-property-feed/download.php
    • > /wp-content/plugins/houzez-property-feed/includes/views/admin-settings-primary-nav-export.php
    • > /wp-content/plugins/houzez-property-feed/includes/views/admin-settings-primary-nav-import.php
  • 60× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant HOUZEZ_PROPERTY_FEED_PLUGIN_FILE - assumed 'HOUZEZ_PROPERTY_FEED_PLUGIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-logs-export.php on line 5
    • > PHP Notice
      Undefined variable: export_id in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-export-settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Houzez_Property_Feed_Format_Zoopla' not found in wp-content/plugins/houzez-property-feed/includes/export-formats/class-houzez-property-feed-format-zoopla.php:796
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-automatic-imports.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-export-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-settings-export.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-settings-import-email-reports.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-pro.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-logs-export.php:7
    • > PHP Warning
      include(): Failed opening './includes/views/admin-settings-notice.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/houzez-property-feed/includes/views/admin-settings-logs-import.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

houzez-property-feed/houzez-property-feed.php Passed 13 tests

The principal PHP file in "Houzez Property Feed" v. 2.0.55 is loaded by WordPress automatically on each request
87 characters long description:
Automatically import properties to Houzez from estate agency CRMs and export to portals

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
Success! There were no dangerous files found in this plugin35,700 lines of code in 96 files:
LanguageFilesBlank linesComment linesLines of code
PHP916,2272,36633,694
JavaScript3364581,847
CSS2374159

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 345)
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity140.02
▷ Minimum class complexity1.00
▷ Maximum class complexity398.00
Average method complexity26.42
▷ Minimum method complexity1.00
▷ Maximum method complexity345.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes49
▷ Abstract classes00.00%
▷ Concrete classes49100.00%
▷ Final classes12.04%
Methods268
▷ Static methods10.37%
▷ Public methods22784.70%
▷ Protected methods62.24%
▷ Private methods3513.06%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/houzez-property-feed-logo.png12.77KB8.22KB▼ 35.65%