74% house-manager

Code Review | House Manager – Easy Renter Management System for WordPress

WordPress plugin House Manager – Easy Renter Management System for WordPress scored74%from 54 tests.

About plugin

  • Plugin page: house-manager
  • Plugin version: 1.0.8.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jun 24, 2018
  • Latest release: Aug 28, 2023
  • Number of updates: 36
  • Update frequency: every 52.5 days
  • Top authors: shawon786 (86.11%)innovs (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,055 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by House Manager – Easy Renter Management System for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2238.03 ▼2.98
Dashboard /wp-admin3.59 ▲0.2853.86 ▲1.63
Posts /wp-admin/edit.php3.64 ▲0.2852.57 ▲1.76
Add New Post /wp-admin/post-new.php6.11 ▲0.22101.88 ▲1.34
Media Library /wp-admin/upload.php3.45 ▲0.2236.97 ▲3.60

Server storage [IO: ▲1.57MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 69 new files
Database: 5 new tables, 8 new options
New tables
wp_hm_invoices
wp_hm_flats
wp_hm_renters
wp_hm_invoice_items
wp_hm_settings
New WordPress options
theysaidso_admin_options
db_upgraded
hm_version
widget_recent-comments
hm_db_version
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for House Manager – Easy Renter Management System for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.19 ▼0.451.84 ▼0.1045.51 ▲3.97
Dashboard /wp-admin2,195 ▲245.58 ▼0.0685.50 ▼17.1338.58 ▼13.31
Posts /wp-admin/edit.php2,106 ▲62.01 ▲0.0036.88 ▼2.7733.70 ▼4.71
Add New Post /wp-admin/post-new.php1,539 ▼623.07 ▲0.02627.73 ▼62.2055.65 ▼3.09
Media Library /wp-admin/upload.php1,406 ▲64.21 ▲0.0399.98 ▼1.6544.60 ▲2.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie tables were found after uninstall: 5 tables
    • wp_hm_renters
    • wp_hm_settings
    • wp_hm_invoice_items
    • wp_hm_flats
    • wp_hm_invoices
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • hm_db_version
    • hm_version
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/house-manager/public/templates/partials/footer.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'HM_Controller' not found in wp-content/plugins/house-manager/public/templates/single-renter.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'HM_Controller' not found in wp-content/plugins/house-manager/public/templates/payment.php:10
    • > PHP Warning
      Use of undefined constant HM_PUBLIC_DIR - assumed 'HM_PUBLIC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/house-manager/public/templates/partials/footer.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'HM_Controller' not found in wp-content/plugins/house-manager/public/templates/dashboard.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function hm_current_user_id() in wp-content/plugins/house-manager/public/templates/renter-profile.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'HM_Controller' not found in wp-content/plugins/house-manager/public/templates/flats.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/house-manager/public/templates/partials/header.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'HM_Controller' not found in wp-content/plugins/house-manager/public/templates/payment-options.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'HM_Controller' not found in wp-content/plugins/house-manager/public/templates/new-invoice.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #21, #22, #23, #24 in house-manager/assets to your readme.txt
The official readme.txt might help

house-manager/house-manager.php Passed 13 tests

The main PHP script in "House Manager – Easy Renter Management System for WordPress" version 1.0.8.4 is automatically included on every request by WordPress
39 characters long description:
Manage your Property and Renter easily!

Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected11,438 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,1341,5118,806
PHP315694382,224
CSS48126389
PO File11118
Markdown1101

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.25
Average class complexity11.73
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods68
▷ Static methods2130.88%
▷ Public methods5885.29%
▷ Protected methods22.94%
▷ Private methods811.76%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.25MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/icons/overview.png20.49KB1.60KB▼ 92.19%
public/images/icons/invoice.png15.38KB0.24KB▼ 98.42%
public/css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
public/images/icons/edit.png16.00KB0.66KB▼ 95.90%
public/images/icons/tick.png19.00KB9.04KB▼ 52.45%