10% real-estate-property

Code Review | Real Estate Property Management

WordPress plugin Real Estate Property Management scored10%from 54 tests.

About plugin

  • Plugin page: real-estate-property
  • Plugin version: 1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2021
  • Latest release: Aug 31, 2022
  • Number of updates: 15
  • Update frequency: every 33.7 days
  • Top authors: SwiftCloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /430 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/real-estate-property/admin/swift_property_admin.php+126
    include_once(section/sp_local_capture.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.56MB] [CPU: ▼50.98ms] Passed 4 tests

An overview of server-side resources used by Real Estate Property Management
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.42 ▼1.046.02 ▼34.12
Dashboard /wp-admin2.45 ▼0.867.67 ▼45.42
Posts /wp-admin/edit.php2.45 ▼0.918.69 ▼36.04
Add New Post /wp-admin/post-new.php2.45 ▼3.447.66 ▼88.34
Media Library /wp-admin/upload.php2.45 ▼0.787.93 ▼25.04
Add New Property /wp-admin/post-new.php?post_type=swift_property2.459.04
Settings /wp-admin/admin.php?page=swift_property_control_panel2.459.77
Updates & Tips /wp-admin/admin.php?page=swift_property_dashboard2.459.32
Categories /wp-admin/edit-tags.php?taxonomy=swift_property_category&post_type=swift_property2.457.35
Tags /wp-admin/edit-tags.php?taxonomy=swift_property_tag&post_type=swift_property2.457.84
Log Detail /wp-admin/admin.php?page=swift_property_admin_display_log_details2.457.33
Form Submission /wp-admin/admin.php?page=swift_property_admin_display_log2.458.93
All Properties /wp-admin/edit.php?post_type=swift_property2.457.46

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 115 new files
Database: 1 new table, 10 new options
New tables
wp_swift_property_log
New WordPress options
swift_property_category_children
can_compress_scripts
swift_property_db_version
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
sp_property_slug
db_upgraded
sp_event_flag
widget_theysaidso_widget

Browser metrics Passed 4 tests

Real Estate Property Management: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,992 ▲22114.01 ▼0.289.12 ▲7.0828.00 ▼11.87
Dashboard /wp-admin2,302 ▲1114.95 ▲0.07115.63 ▲10.35100.04 ▲61.49
Posts /wp-admin/edit.php2,200 ▲1112.11 ▲0.0837.89 ▲1.8940.46 ▲6.51
Add New Post /wp-admin/post-new.php1,606 ▲7721.80 ▲3.45772.65 ▲138.8238.38 ▼12.80
Media Library /wp-admin/upload.php1,502 ▲1174.26 ▲0.04105.45 ▲0.4088.96 ▲45.33
Add New Property /wp-admin/post-new.php?post_type=swift_property3,1477.97193.84141.12
Settings /wp-admin/admin.php?page=swift_property_control_panel1,3193.3647.4673.89
Updates & Tips /wp-admin/admin.php?page=swift_property_dashboard9892.2929.5937.64
Categories /wp-admin/edit-tags.php?taxonomy=swift_property_category&post_type=swift_property2,4882.5031.7240.53
Tags /wp-admin/edit-tags.php?taxonomy=swift_property_tag&post_type=swift_property1,3452.3828.0240.51
Log Detail /wp-admin/admin.php?page=swift_property_admin_display_log_details8662.1226.6329.93
Form Submission /wp-admin/admin.php?page=swift_property_admin_display_log8702.1227.0529.65
All Properties /wp-admin/edit.php?post_type=swift_property1,2122.2138.0536.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/real-estate-property/admin/swift_property_admin.php+126
    include_once(section/sp_local_capture.php): failed to open stream: No such file or directory
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_swift_property_log
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • sp_event_flag
    • sp_property_slug
    • widget_theysaidso_widget
    • swift_property_category_children
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=swift_property
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/real-estate-property/admin/swift_property_admin.php+126
    include_once(section/sp_local_capture.php): failed to open stream: No such file or directory
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=swift_property
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/real-estate-property/admin/swift_property_admin.php+126
    include_once(): Failed opening 'section/sp_local_capture.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=swift_property_admin_display_log_details
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'swift_property_admin_display_log_details' not found or invalid function name
    • > GET request to /wp-admin/admin.php?page=swift_property_admin_display_log
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'swift_property_admin_display_log' not found or invalid function name

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
The following issues need your attention
  • 22× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-estate-property/section/sp-function.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-estate-property/admin/section/sp_bulk_upload.php:132
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/real-estate-property/admin/section/sp_general_settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/real-estate-property/section/header-property.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-estate-property/admin/section/sp_user_fields.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/real-estate-property/swift-properties.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/real-estate-property/rss-property-feed.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/real-estate-property/section/single-swift_property.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-estate-property/swift-property-pagetemplater.php:143
    • > PHP Notice
      Undefined index: wp_version in wp-content/plugins/real-estate-property/admin/swift_property_admin.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Please fix the following attributes: You can take inspiration from this readme.txt

real-estate-property/swift-properties.php 85% from 13 tests

The entry point to "Real Estate Property Management" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("real-estate-property.php" instead of "swift-properties.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin29,385 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
SVG40012,223
JavaScript182,0841,6517,666
CSS165783596,749
PHP204463422,747

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.33
▷ Minimum class complexity7.00
▷ Maximum class complexity19.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1493.33%
▷ Protected methods00.00%
▷ Private methods16.67%
Functions57
▷ Named functions57100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
25 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/close.png1.80KB1.76KB▼ 2.33%
admin/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png0.41KB0.15KB▼ 62.44%
admin/css/images/ui-bg_diagonals-thick_20_666666_40x40.png0.30KB0.15KB▼ 49.68%
images/swiftcloud_logo.png5.52KB3.74KB▼ 32.27%
admin/css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%