72% real-estate-right-now

Code Review | Real Estate Property 2023 Create Your Own Fields and Search Bar WP Plugin

WordPress plugin Real Estate Property 2023 Create Your Own Fields and Search Bar WP Plugin scored72%from 54 tests.

About plugin

  • Plugin page: real-estate-right...
  • Plugin version: 4.08
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 10, 2017
  • Latest release: Oct 18, 2023
  • Number of updates: 1
  • Update frequency: every 365.0 days

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /27,282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼0.76ms] Passed 4 tests

An overview of server-side resources used by Real Estate Property 2023 Create Your Own Fields and Search Bar WP Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2043.27 ▲0.62
Dashboard /wp-admin3.56 ▲0.2155.64 ▼5.21
Posts /wp-admin/edit.php3.67 ▲0.3258.41 ▲8.63
Add New Post /wp-admin/post-new.php6.16 ▲0.2794.25 ▼7.08
Media Library /wp-admin/upload.php3.49 ▲0.2652.34 ▲16.53
Agents /wp-admin/admin.php?page=md-agents3.4639.88
RealEstate Designer /wp-admin/themes.php?page=Real_Estate_Designer3.4639.47
Settings2 /wp-admin/admin.php?page=rep_settings3.5143.73
Dashboard /wp-admin/admin.php?page=real_estate_plugin3.5243.04
Fields Table /wp-admin/admin.php?page=fields-table3.4641.94
Go Pro /wp-admin/admin.php?page=realestate_my-custom-submenu-page33.4643.39
Properties Table /wp-admin/admin.php?page=products-table3.4647.77
Locations /wp-admin/admin.php?page=md-locations3.4640.31
Settings /wp-admin/admin.php?page=rep-settings3.4639.18
RealEstate Designer /wp-admin/admin.php?page=md-designer23.4640.97

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 183 new files
Database: no new tables, 15 new options
New WordPress options
can_compress_scripts
RealEstate_recipientEmail
widget_featuredwidget
db_upgraded
widget_searchwidget
RealEstate_activated
widget_recent-comments
meta_boxes
widget_theysaidso_widget
widget_recentwidget
...

Browser metrics Passed 4 tests

A check of browser resources used by Real Estate Property 2023 Create Your Own Fields and Search Bar WP Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,106 ▲36015.55 ▲0.919.34 ▲7.6438.47 ▼7.74
Dashboard /wp-admin2,320 ▲1436.22 ▲0.55104.57 ▲5.9277.39 ▲31.21
Posts /wp-admin/edit.php2,253 ▲1533.01 ▲0.9955.84 ▲20.4651.31 ▲18.06
Add New Post /wp-admin/post-new.php1,809 ▲28323.57 ▲0.28669.68 ▲7.4837.87 ▼25.34
Media Library /wp-admin/upload.php1,542 ▲1455.31 ▲1.0893.40 ▼24.1891.65 ▲45.66
Agents /wp-admin/admin.php?page=md-agents2,4675.4181.2242.69
RealEstate Designer /wp-admin/themes.php?page=Real_Estate_Designer9262.3935.6221.67
Settings2 /wp-admin/admin.php?page=rep_settings1,4782.9181.3073.54
Dashboard /wp-admin/admin.php?page=real_estate_plugin1,3952.8842.4983.78
Fields Table /wp-admin/admin.php?page=fields-table2,3444.3459.8964.11
Go Pro /wp-admin/admin.php?page=realestate_my-custom-submenu-page31,2213.0961.2963.14
Properties Table /wp-admin/admin.php?page=products-table1,9923.9250.2656.60
Locations /wp-admin/admin.php?page=md-locations2,2064.0049.5945.97
Settings /wp-admin/admin.php?page=rep-settings2,1583.6140.9971.04
RealEstate Designer /wp-admin/admin.php?page=md-designer210,56628.30842.39179.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • bill_show_warnings
    • bill_last_feedback
    • widget_searchwidget
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recentwidget
    • RealEstate_recipientEmail
    • widget_recent-comments
    • realestateplugin_optin
    • can_compress_scripts
    • ...

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/real-estate-right-now/public/restore-config.php
    • > /wp-content/plugins/real-estate-right-now/includes/checkup/class_bill_catch_errors.php
    • > /wp-content/plugins/real-estate-right-now/includes/checkup/bill_class_diagnose.php
    • > /wp-content/plugins/real-estate-right-now/dashboard/fixconfig.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'realestate\\WP\\Settings\\Page' not found in wp-content/plugins/real-estate-right-now/settings/options/plugin_options_tabbed.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-estate-right-now/includes/widgets/widgets.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function RealEstatePlugin_activate\\is_multisite() in wp-content/plugins/real-estate-right-now/includes/feedback/activated-manager.php:2
    • > PHP Warning
      require_once(wp-content/plugins/real-estate-right-now/public/wp-settings.php): failed to open stream: No such file or directory in wp-content/plugins/real-estate-right-now/public/wp-config.php on line 97
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/real-estate-right-now/includes/templates/template-showroom1.php:310
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-estate-right-now/includes/multi/multi-functions.php:1
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/real-estate-right-now/public/wp-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/real-estate-right-now/public/wp-config.php on line 97

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)
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=realestate_my-custom-submenu-page3
    • > Network (severe)
    http://realestateplugin.eu/wp-admin/admin-ajax.php?action=stopbadbots_grava_fingerprint&fingerprint=%23Europe%2FBucharest%23-180%23linux%20x86_64%23Linux%230%2Cfalse%2Cfalse - Failed to load resource: the server responded with a status of 400 (Bad Request)
    • > GET request to /wp-admin/admin.php?page=md-designer2
    • > Security (warning) in unknown
    /?customize_changeset_uuid=edfe46e3-9ac2-498b-81d7-1593072088da&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

Optimizations

Plugin configuration 93% 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:
  • Screenshots: These screenshots require images: #1 (Front products Page (List View)), #2 (Front products Page (Gallery)), #3 (Settings Page), #4 (Product Table Page), #5 (Front Product Post Page), #6 (Fields Page Setup), #7 (Team Front Page)
You can look at the official readme.txt

real-estate-right-now/realestate.php 92% from 13 tests

The main PHP file in "Real Estate Property 2023 Create Your Own Fields and Search Bar WP Plugin" ver. 4.08 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("real-estate-right-now.php" instead of "realestate.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin23,547 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
PHP471,1101,1169,286
CSS184983566,401
SVG6003,949
PO File68279911,883
JavaScript142082191,685
HTML4712343

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.19
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods101
▷ Static methods65.94%
▷ Public methods9796.04%
▷ Protected methods00.00%
▷ Private methods43.96%
Functions122
▷ Named functions12199.18%
▷ Anonymous functions10.82%
Constants78
▷ Global constants78100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
40 PNG files occupy 1.42MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/step2.png5.16KB2.27KB▼ 55.92%
assets/jquery/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/3steps.png16.86KB5.35KB▼ 68.30%
assets/images/help50.png6.20KB2.87KB▼ 53.74%
assets/images/service_configuration.png1.65KB0.89KB▼ 46.18%