73% real-estate-properties

Code Review | Real Estate Properties

WordPress plugin Real Estate Properties scored 73% from 54 tests.

About plugin

  • Plugin page: real-estate-prope...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 12, 2018
  • Latest release: Aug 12, 2018
  • Number of updates: 3
  • Update frequency: every 20.7 days
  • Top authors: pearlthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲1.00MB] [CPU: ▲9.82ms] Passed 4 tests

A check of server-side resources used by Real Estate Properties
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲1.0259.62 ▲13.14
Dashboard /wp-admin4.32 ▲1.0154.03 ▲2.52
Posts /wp-admin/edit.php4.37 ▲1.0155.02 ▲10.48
Add New Post /wp-admin/post-new.php6.95 ▲1.06108.09 ▲17.65
Media Library /wp-admin/upload.php4.18 ▲0.9547.77 ▲13.14
All Properties /wp-admin/edit.php?post_type=property4.2947.46
Types /wp-admin/edit-tags.php?taxonomy=property-type&post_type=property4.1840.72
Statuses /wp-admin/edit-tags.php?taxonomy=property-status&post_type=property4.1842.02
Welcome to Meta Box /wp-admin/index.php?page=meta-box-about4.1639.47
Add New /wp-admin/post-new.php?post_type=property7.06105.06
Locations /wp-admin/edit-tags.php?taxonomy=property-location&post_type=property4.1846.21
Features /wp-admin/edit-tags.php?taxonomy=property-feature&post_type=property4.1841.47

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

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

Browser metrics Passed 4 tests

Real Estate Properties: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲21513.59 ▼1.155.33 ▲3.2540.33 ▼3.34
Dashboard /wp-admin2,253 ▲654.99 ▲0.09108.96 ▲1.2142.29 ▼0.08
Posts /wp-admin/edit.php2,143 ▲542.21 ▲0.1735.94 ▼0.7037.03 ▼1.28
Add New Post /wp-admin/post-new.php1,568 ▲5417.61 ▼0.04659.20 ▲66.0651.75 ▲1.93
Media Library /wp-admin/upload.php1,450 ▲594.16 ▼0.1297.24 ▼6.1642.29 ▼3.44
All Properties /wp-admin/edit.php?post_type=property1,1672.1833.0829.40
Types /wp-admin/edit-tags.php?taxonomy=property-type&post_type=property1,3191.8928.6329.02
Statuses /wp-admin/edit-tags.php?taxonomy=property-status&post_type=property1,3161.9027.8528.66
Welcome to Meta Box /wp-admin/index.php?page=meta-box-about9341.9525.4548.23
Add New /wp-admin/post-new.php?post_type=property2,28118.94976.7744.77
Locations /wp-admin/edit-tags.php?taxonomy=property-location&post_type=property1,3221.8827.6228.97
Features /wp-admin/edit-tags.php?taxonomy=property-feature&post_type=property1,3221.8929.5527.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/real-estate-properties/public/partials/real-estate-properties-public-display.php
    • > /wp-content/plugins/real-estate-properties/plugins/meta-box/inc/templates/video.php
    • > /wp-content/plugins/real-estate-properties/plugins/meta-box/inc/templates/image-advanced.php
    • > /wp-content/plugins/real-estate-properties/plugins/meta-box/inc/templates/audio.php
    • > /wp-content/plugins/real-estate-properties/plugins/meta-box/inc/templates/media.php
    • > /wp-content/plugins/real-estate-properties/admin/partials/real-estate-properties-admin-display.php
    • > /wp-content/plugins/real-estate-properties/plugins/meta-box/inc/templates/upload.php
  • 63× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/button.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/image-advanced.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/multiple-values.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/choice.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/textarea.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/object-choice.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_File_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/image.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_List_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/checkbox-list.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/wysiwyg.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/real-estate-properties/plugins/meta-box/inc/fields/key-value.php:11

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)
Please fix the following browser errors
    • > GET request to /wp-admin/post-new.php?post_type=property
    • > Console-api (warning) in unknown
    https://maps.google.com/maps/api/js?key=AIzaSyC1mUh87SGFyf133tpZQJa-s96p0tgnraQ&ver=6.3.1 208:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: properties, real estate, listing, property

real-estate-properties/real-estate-properties.php Passed 13 tests

The entry point to "Real Estate Properties" version 1.0.0 is a PHP file that has certain tags in its header comment area
79 characters long description:
A plugin that offers Property custom post type to list properties on your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected11,585 lines of code in 248 files:
LanguageFilesBlank linesComment linesLines of code
PHP1071,2914,6035,658
JavaScript885546752,367
CSS381471181,897
PO File146066731,653
Markdown19010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.42
▷ Minimum class complexity1.00
▷ Maximum class complexity63.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes89
▷ Abstract classes66.74%
▷ Concrete classes8393.26%
▷ Final classes00.00%
Methods466
▷ Static methods27258.37%
▷ Public methods43392.92%
▷ Protected methods224.72%
▷ Private methods112.36%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
plugins/meta-box/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
plugins/meta-box/img/jqueryui/ui-icons_888888_256x240.png4.27KB4.11KB▼ 3.78%
plugins/meta-box/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
plugins/meta-box/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
plugins/meta-box/img/jqueryui/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%