10% wp-real-estate-property-listing-crm

Code Review | Real Estate Listings Plugin for Professionals

WordPress plugin Real Estate Listings Plugin for Professionals scored 10% from 54 tests.

About plugin

  • Plugin page: wp-real-estate-pr...
  • Plugin version: 4.3.35
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Feb 5, 2019
  • Number of updates: 339
  • Update frequency: every 4.1 days
  • Top authors: allan.casilum (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10+ active / 22,464 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-real-estate-property-listing-crm/includes/lib/tcpdf/tcpdf.php+16912
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▲5.92MB] [CPU: ▼29.54ms] 75% from 4 tests

A check of server-side resources used by Real Estate Listings Plugin for Professionals
It is recommended to improve the following
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.92MB on /wp-admin/options.php?page=md-subscribe-api)
PageMemory (MB)CPU Time (ms)
Home /9.91 ▲6.4524.38 ▼19.68
Dashboard /wp-admin9.93 ▲6.6328.10 ▼16.98
Posts /wp-admin/edit.php9.93 ▲6.5827.39 ▼17.30
Add New Post /wp-admin/post-new.php9.93 ▲4.0427.23 ▼64.20
Media Library /wp-admin/upload.php9.93 ▲6.7030.12 ▼2.29
Subscribe Masterdigm API /wp-admin/options.php?page=md-settings-crm9.9326.21
Subscribe Masterdigm API /wp-admin/options.php?page=md-subscribe-api9.9328.26

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 654 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
MWP_ACTIVATE
api_keys_changed
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Real Estate Listings Plugin for Professionals
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,216 ▲48115.89 ▲1.3015.94 ▲13.6140.39 ▼9.21
Dashboard /wp-admin2,368 ▲1776.59 ▲1.66131.09 ▲29.45102.43 ▲56.09
Posts /wp-admin/edit.php2,292 ▲2033.47 ▲1.4953.60 ▲14.9584.43 ▲52.15
Add New Post /wp-admin/post-new.php1,558 ▲3618.20 ▼4.99599.10 ▼58.2442.52 ▼17.41
Media Library /wp-admin/upload.php1,438 ▲504.31 ▲0.1185.23 ▼16.2776.57 ▲30.68
Subscribe Masterdigm API /wp-admin/options.php?page=md-settings-crm1,0813.4239.9653.48
Subscribe Masterdigm API /wp-admin/options.php?page=md-subscribe-api1,0673.4738.7076.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/wp-real-estate-property-listing-crm/includes/lib/tcpdf/tcpdf.php+16912
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • api_keys_changed

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options.php?page=md-subscribe-api
    • > Deprecated in wp-content/plugins/wp-real-estate-property-listing-crm/includes/lib/tcpdf/include/tcpdf_images.php+310
    Array and string offset access syntax with curly braces is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options.php?page=md-subscribe-api
    • > Warning in wp-content/plugins/wp-real-estate-property-listing-crm/includes/lib/tcpdf/tcpdf.php+17797
    "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 18× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/includes/lib/tcpdf/tools/tcpdf_addfont.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/actionbuttons/print-button.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/admin/partials/property/settings/index.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/angularjs/favorite-button.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/admin/partials/mwp-admin-display.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/facebookapp/login-button.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/admin/partials/dashboard/tab-nav.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/account/favorites.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/partials/part-header-map.php
    • > /wp-content/plugins/wp-real-estate-property-listing-crm/admin/partials/theme/settings/index.php
  • 199× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-real-estate-property-listing-crm/admin/partials/subscribe/forms.php:1
    • > PHP Fatal error
      Uncaught Error: Interface 'SparkAPI_CacheInterface' not found in wp-content/plugins/wp-real-estate-property-listing-crm/includes/lib/flexmls/MemcacheCache.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-real-estate-property-listing-crm/admin/partials/dashboard/getting-started.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-real-estate-property-listing-crm/admin/partials/propertyalert/index.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _label() in wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/searchform/search-form-v2.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function md_search_form_start() in wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/searchform/raw-search-form-v4.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/inquire/inquire.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Mwp_Admin_TabNav' not found in wp-content/plugins/wp-real-estate-property-listing-crm/admin/partials/api/great-school.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _label() in wp-content/plugins/wp-real-estate-property-listing-crm/public/partials/template/default/searchform/search-form.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-real-estate-property-listing-crm/includes/mwp-search-settings.php:781

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Please watch the "Watch this video first!"), #2 (Getting Started), #3 (Webinars), #4 (Support), #5 (Connect with us), #6 (Settings - Popup), #7 (Settings - Mail), #8 (Settings - Client Lead), #9 (Account Settings), #10 (Search form / settings), #11 (Search settings - price range), #12 (Theme / Appereance settings), #13 (Theme / Appereance settings - Color), #14 (Theme / Appereance settings - Layout), #15 (Theme / Appereance settings - Map), #16 (API account - Flexmls), #17 (API account - great school), #18 (Property Alert), #19 (Shortcode button), #20 (Shortcode button - dropdown), #21 (Shortcode button - crm dropdown), #22 (Shortcode button - popup), #23 (Shortcode button - popup), #24 (Shortcode button - utility)
  • Tags: There are too many tags (47 tag instead of maximum 10)
The official readme.txt might help

wp-real-estate-property-listing-crm/mwp.php 77% from 13 tests

"Real Estate Listings Plugin for Professionals" version 4.3.35's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-real-estate-property-listing-crm.php" instead of "mwp.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 268 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected107,190 lines of code in 517 files:
LanguageFilesBlank linesComment linesLines of code
PHP4325,59819,20878,659
CSS2416327411,858
PO File83,8575,5479,817
JavaScript469951,0225,731
SVG200792
HTML4143293
JSON10040

PHP code 0% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,344)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 498)
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity37.41
▷ Minimum class complexity1.00
▷ Maximum class complexity4,344.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity498.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes253
▷ Abstract classes51.98%
▷ Concrete classes24898.02%
▷ Final classes00.00%
Methods2,874
▷ Static methods34812.11%
▷ Public methods2,54288.45%
▷ Protected methods29110.13%
▷ Private methods411.43%
Functions272
▷ Named functions272100.00%
▷ Anonymous functions00.00%
Constants115
▷ Global constants10893.91%
▷ Class constants76.09%
▷ Public constants7100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
89 PNG files occupy 2.41MB with 1.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-19.png62.36KB21.31KB▼ 65.83%
screenshot-3.png160.16KB50.29KB▼ 68.60%
admin/css/images/ui-bg_glass_75_dadada_1x400.png0.26KB0.16KB▼ 38.93%
assets/24x24_GS_School_Rating_Medium_9.png3.24KB1.99KB▼ 38.59%
screenshot-15.png49.25KB16.39KB▼ 66.72%