61% innovs-hr-manager

Code Review | Innovs HR - Complete Human Resource Management System for Your Business

WordPress plugin Innovs HR - Complete Human Resource Management System for Your Business scored61%from 54 tests.

About plugin

  • Plugin page: innovs-hr-manager
  • Plugin version: 1.0.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2020
  • Latest release: Aug 28, 2023
  • Number of updates: 17
  • Update frequency: every 75.3 days
  • Top authors: innovs (94.12%)shawon786 (11.76%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,193 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▲7.86ms] Passed 4 tests

A check of server-side resources used by Innovs HR - Complete Human Resource Management System for Your Business
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4743.36 ▼0.19
Dashboard /wp-admin3.89 ▲0.5962.96 ▲10.00
Posts /wp-admin/edit.php3.96 ▲0.6059.61 ▲9.12
Add New Post /wp-admin/post-new.php6.42 ▲0.53104.51 ▲18.16
Media Library /wp-admin/upload.php3.74 ▲0.5150.35 ▲12.49
/wp-admin/admin.php?page=innovs_add_new_attend_view3.8041.44
/wp-admin/admin.php?page=emp_profile_leave3.8140.94
/wp-admin/admin.php?page=innovs_edit_attend3.8041.75
/wp-admin/admin.php?page=innovs_holiday_load3.7139.16
/wp-admin/admin.php?page=innovs_add_new_attend_edit3.8039.09
/wp-admin/admin.php?page=innovs_add_new_attend3.8046.17
/wp-admin/admin.php?page=emp_profile_general3.8638.86
/wp-admin/admin.php?page=emp_profile_attendance3.8442.66
/wp-admin/admin.php?page=innovs_request3.8147.74
/wp-admin/admin.php?page=emp_profile_job3.8039.63

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 163 new files
Database: 9 new tables, 29 new options
New tables
wp_innovs_leave_request
wp_innovs_leave_policy
wp_innovs_attendance
wp_innovs_designation
wp_innovs_location
wp_innovs_leave_entitlement
wp_innovs_holiday
wp_innovs_department
wp_innovs_employee
New WordPress options
hrm_att_wed
hrm_att_sun
att_in_time
widget_recent-comments
recovery_mode_email_last_sent
hrm_grace_time
widget_recent-posts
hrm_text_color
can_compress_scripts
hrm_att_tue
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Innovs HR - Complete Human Resource Management System for Your Business
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,230 ▲46918.54 ▲4.185.48 ▲3.2726.06 ▼20.06
Dashboard /wp-admin2,541 ▲3678.72 ▲3.15151.37 ▲55.35146.73 ▲103.97
Posts /wp-admin/edit.php2,481 ▲3785.65 ▲3.7079.92 ▲43.72105.85 ▲68.68
Add New Post /wp-admin/post-new.php1,646 ▲12025.00 ▲1.28647.93 ▼32.49222.14 ▲168.24
Media Library /wp-admin/upload.php1,622 ▲2226.79 ▲2.60117.43 ▲9.72122.73 ▲76.56
/wp-admin/admin.php?page=innovs_add_new_attend_view1,3646.3776.97109.74
/wp-admin/admin.php?page=emp_profile_leave1,4396.2372.43125.00
/wp-admin/admin.php?page=innovs_edit_attend1,3276.2776.33108.89
/wp-admin/admin.php?page=innovs_holiday_load7451.9411.9225.68
/wp-admin/admin.php?page=innovs_add_new_attend_edit1,3296.3777.20116.09
/wp-admin/admin.php?page=innovs_add_new_attend1,4366.2369.18108.25
/wp-admin/admin.php?page=emp_profile_general2,3816.1773.81115.49
/wp-admin/admin.php?page=emp_profile_attendance2,1165.8484.2592.26
/wp-admin/admin.php?page=innovs_request1,5136.2671.65102.89
/wp-admin/admin.php?page=emp_profile_job1,4006.2571.09116.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 9 tables in the database
    • wp_innovs_leave_request
    • wp_innovs_employee
    • wp_innovs_holiday
    • wp_innovs_location
    • wp_innovs_leave_policy
    • wp_innovs_attendance
    • wp_innovs_department
    • wp_innovs_leave_entitlement
    • wp_innovs_designation
  • Zombie WordPress options detected upon uninstall: 29 options
    • hrm_text_color
    • ihm_new_rq_msg
    • widget_recent-posts
    • widget_theysaidso_widget
    • ihm_reject_rq_msg
    • hrm_att_tue
    • widget_recent-comments
    • att_in_time
    • hrm_grace_time
    • ihm_add_new_emplyee_msg
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=emp_profile_attendance
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/employee-part/attendance.php+262
    Undefined variable: single_month
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=emp_profile_attendance
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/employee-part/attendance.php+262
    Undefined variable: single_year
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=emp_profile_job
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/part/header.php+75
    Undefined variable: sub_page
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=innovs_add_new_attend_edit
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/part/header.php+88
    Undefined variable: page
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=innovs_edit_attend
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/update/edit-emp-attend.php+40
    Undefined variable: come_from_page
    • > GET request to /wp-admin/admin.php?page=innovs_edit_attend
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/update/edit-emp-attend.php+57
    Undefined variable: user_id
    • > GET request to /wp-admin/admin.php?page=innovs_edit_attend
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/update/edit-emp-attend.php+128
    Undefined variable: url
    • > GET request to /wp-admin/admin.php?page=innovs_holiday_load
    • > Warning in wp-content/plugins/innovs-hr-manager/includes/class-innovs-hrm.php+453
    require_once(wp-content/plugins/innovs-hr-manager/includes/../admin/partials/innovs-holiday-load.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=innovs_holiday_load
    • > Compile error in wp-content/plugins/innovs-hr-manager/includes/class-innovs-hrm.php+453
    require_once(): Failed opening required 'wp-content/plugins/innovs-hr-manager/includes/../admin/partials/innovs-holiday-load.php' (include_path='.:/usr/share/php')
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=innovs_add_new_attend_edit
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/add-new-attend-part/add-new-attend-edit.php+57
    Undefined variable: single_date
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=emp_profile_general
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/employee-part/general.php+55
    Undefined offset: 1
    • > GET request to /wp-admin/admin.php?page=emp_profile_general
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/employee-part/general.php+140
    Undefined index: emp_depart
    • > GET request to /wp-admin/admin.php?page=emp_profile_general
    • > Notice in wp-content/plugins/innovs-hr-manager/admin/partials/employee-part/general.php+145
    Undefined index: job_title
    • > GET request to /wp-admin/admin.php?page=emp_profile_attendance
    • > Warning in wp-content/plugins/innovs-hr-manager/includes/class-innovs-hrm-functions.php+21
    cal_days_in_month(): invalid date

SRP 0% 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
Please fix the following items
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/innovs-hr-manager/admin/index.php
    • > /wp-content/plugins/innovs-hr-manager/admin/partials/innovs-pro-addon.php
    • > /wp-content/plugins/innovs-hr-manager/public/partials/innovs-public-display.php
  • 57× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Innovs_Hrm_Controller' not found in wp-content/plugins/innovs-hr-manager/admin/partials/update/edit-entitlement.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/innovs-hr-manager/admin/partials/setting-part/general-setting.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/innovs-hr-manager/admin/partials/update/edit-location.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Innovs_Hrm_Controller' not found in wp-content/plugins/innovs-hr-manager/admin/partials/update/edit-department.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/innovs-hr-manager/admin/partials/update/edit-holiday.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/innovs-hr-manager/admin/partials/html-file/designation.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/innovs-hr-manager/admin/partials/innovs-emp-attendance.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/innovs-hr-manager/includes/ajax.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/innovs-hr-manager/admin/partials/update/edit-designation.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/innovs-hr-manager/admin/addons/addons.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Please fix the following attributes: The official readme.txt is a good inspiration

innovs-hr-manager/innovshrm.php 85% from 13 tests

The principal PHP file in "Innovs HR - Complete Human Resource Management System for Your Business" v. 1.0.3.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("innovs-hr-manager.php" instead of "innovshrm.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin42,470 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript205,2619,30522,566
PHP731,9521,6339,226
SVG40166,599
CSS156584394,079

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 105)
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity17.40
▷ Minimum class complexity1.00
▷ Maximum class complexity105.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity105.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods237
▷ Static methods72.95%
▷ Public methods20988.19%
▷ Protected methods208.44%
▷ Private methods83.38%
Functions48
▷ Named functions4491.67%
▷ Anonymous functions48.33%
Constants39
▷ Global constants39100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/hjj.png3.73KB2.65KB▼ 28.81%
admin/img/user-img1.png27.53KB10.80KB▼ 60.78%
(invalid) admin/img/user-img.png2.64KB0.00KB▼ 100.00%
admin/img/emp.png44.30KB13.80KB▼ 68.85%
admin/img/hrm-logo.png5.87KB2.44KB▼ 58.47%