WordPress plugin WP HRM LITE scored58%from 54 tests.

About plugin

  • Plugin page: wp-hrm-lite-human...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Aug 16, 2016
  • Latest release: Jan 26, 2017
  • Number of updates: 11
  • Update frequency: every 15.3 days
  • Top authors: indigothemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,742 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.96MB] [CPU: ▼55.12ms] Passed 4 tests

A check of server-side resources used by WP HRM LITE
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.04 ▼0.427.74 ▼33.07
Dashboard /wp-admin3.06 ▼0.2913.26 ▼45.50
Posts /wp-admin/edit.php3.06 ▼0.308.72 ▼43.54
Add New Post /wp-admin/post-new.php3.06 ▼2.839.61 ▼98.36
Media Library /wp-admin/upload.php3.06 ▼0.178.30 ▼27.24
Leave Management /wp-admin/admin.php?page=wphrm-leaves-application3.068.14
Employees /wp-admin/admin.php?page=wphrm-employees3.069.80
/wp-admin/admin.php?page=wphrm-salary-reports3.068.27
/wp-admin/admin.php?page=wphrm-employee-absent3.0610.20
/wp-admin/admin.php?page=wphrm-add-designation3.067.98
Finance Management /wp-admin/admin.php?page=wphrm-financials3.069.82
/wp-admin/admin.php?page=wphrm-add-employee3.069.19
/wp-admin/admin.php?page=wphrm-view-attendance3.069.41
/wp-admin/admin.php?page=wphrm-select-financials-month3.0610.41
/wp-admin/admin.php?page=wphrm-employee-view-details3.0610.38

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 76 new files
Database: 11 new tables, 7 new options
New tables
wphrm_notice
wphrm_messages
wphrm_attendance
wphrm_settings
wphrm_salary
wphrm_department
wphrm_notifications
wphrm_financials
wphrm_leavetypes
wphrm_designation
...
New WordPress options
widget_recent-posts
recovery_mode_email_last_sent
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WP HRM LITE: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,033 ▲28714.46 ▲0.082.10 ▲0.0743.87 ▼4.50
Dashboard /wp-admin2,417 ▲2266.39 ▲0.49119.17 ▲13.6038.89 ▼0.85
Posts /wp-admin/edit.php2,328 ▲2393.27 ▲1.2554.12 ▲16.9132.94 ▼1.95
Add New Post /wp-admin/post-new.php1,570 ▲3723.17 ▲0.12616.14 ▼26.3037.41 ▼21.48
Media Library /wp-admin/upload.php1,462 ▲744.21 ▲0.0480.44 ▼26.5641.45 ▼6.54
Leave Management /wp-admin/admin.php?page=wphrm-leaves-application1,8724.4988.2143.13
Employees /wp-admin/admin.php?page=wphrm-employees1,2804.2171.9131.65
/wp-admin/admin.php?page=wphrm-salary-reports7992.4325.5019.21
/wp-admin/admin.php?page=wphrm-employee-absent1,2644.2169.7830.20
/wp-admin/admin.php?page=wphrm-add-designation1,4884.1273.2236.31
Finance Management /wp-admin/admin.php?page=wphrm-financials2,7884.7983.6136.16
/wp-admin/admin.php?page=wphrm-add-employee1,0453.9548.1020.01
/wp-admin/admin.php?page=wphrm-view-attendance2,0305.3395.5653.44
/wp-admin/admin.php?page=wphrm-select-financials-month1,0483.7050.3119.84
/wp-admin/admin.php?page=wphrm-employee-view-details1,6443.9562.9685.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function WP_User_Query::query was called incorrectly. User queries should not be run before the plugins_loaded hook. Please see Debugging in WordPress for more information. (This message was added in version 6.1.1.)
  • The uninstall procedure failed, leaving 11 tables in the database
    • wphrm_holidays
    • wphrm_financials
    • wphrm_notice
    • wphrm_department
    • wphrm_settings
    • wphrm_designation
    • wphrm_attendance
    • wphrm_leavetypes
    • wphrm_notifications
    • wphrm_messages
    • ...
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • recovery_mode_email_last_sent
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 22 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wphrm-employee-view-details
    • > POST request to /wp-admin/admin-ajax.php
    • > User notice in wp-includes/functions.php+5905
    Function WP_User_Query::query was called incorrectly. User queries should not be run before the plugins_loaded hook. Please see Debugging in WordPress for more information. (This message was added in version 6.1.1.)
    • > GET request to /wp-admin/admin.php?page=wphrm-salary-reports
    • > Error in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wp-hrm-lite-human-resource-management-system.php+736
    Uncaught Error: Call to a member function WPHRMGetSalaryReportExcel() on null in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wp-hrm-lite-human-resource-management-system.php:736
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): WPHRM->WPHRMSalaryReports()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=wphrm-employee-absent
    • > Notice in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wphrm-employee-absent.php+45
    Undefined index: date
    • > GET request to /wp-admin/admin.php?page=wphrm-add-designation
    • > Notice in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wphrm-designation.php+13
    Undefined index: departmentID
    • > GET request to /wp-admin/admin.php?page=wphrm-add-designation
    • > Notice in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wphrm-designation.php+14
    Undefined index: department_name
    • > GET request to /wp-admin/admin.php?page=wphrm-financials
    • > Notice in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wphrm-financials-report.php+295
    Undefined variable: wphrmMessagesUpdateDeparment
    • > GET request to /wp-admin/admin.php?page=wphrm-add-employee
    • > Warning in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wp-hrm-lite-human-resource-management-system.php+409
    include_once(wphrm-employee-page.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=wphrm-add-employee
    • > Warning in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wp-hrm-lite-human-resource-management-system.php+409
    include_once(): Failed opening 'wphrm-employee-page.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/admin.php?page=wphrm-view-attendance
    • > POST request to /wp-admin/admin-ajax.php
    • > Error in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wp-hrm-lite-human-resource-management-system.php+1528
    Uncaught Error: Call to undefined function bcdiv() in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wp-hrm-lite-human-resource-management-system.php:1528
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): WPHRM->WPHRMEmployeeAttendanceReports()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin-ajax.php(188): do_action()
    #4 {main}
    thrown
    • > GET request to /wp-admin/admin.php?page=wphrm-select-financials-month
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'WPHRM' does not have a method 'WPHRMSelectFinancialsMonth'
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wphrm-employee-view-details
    • > Notice in wp-content/plugins/wp-hrm-lite-human-resource-management-system/wphrm-employee-view-info.php+72
    Undefined variable: wphrm_employee_edit_id

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wphrm-employee-view-details
    • > Network (severe)
    wp-content/plugins/wp-hrm-lite-human-resource-management-system/assets/fonts/fontawesome-webfont.woff2?v=4.3.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wphrm-view-attendance
    • > Network (severe)
    wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: hr management system, hrm, wp hrm, human resource management

wp-hrm-lite-human-resource-management-system/wp-hrm-lite-human-resource-management-system.php 85% from 13 tests

The main PHP script in "WP HRM LITE" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 201 characters long)

Code Analysis 97% 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
Everything looks great! No dangerous files found in this plugin29,190 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1733050714,627
PHP242571467,752
CSS8444056,152
SVG100565
SQL312694

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 102)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity101.25
▷ Minimum class complexity1.00
▷ Maximum class complexity358.00
Average method complexity6.08
▷ Minimum method complexity1.00
▷ Maximum method complexity102.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods79
▷ Static methods00.00%
▷ Public methods79100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
7 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png0.84KB0.80KB▼ 4.53%
assets/images/icon.png3.97KB4.22KB0.00%
assets/images/Arrow left.png0.59KB0.60KB0.00%
assets/images/default.png1.99KB1.85KB▼ 6.83%
assets/images/Create.png0.82KB0.87KB0.00%