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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▼0.42 | 7.74 ▼33.07 |
Dashboard /wp-admin | 3.06 ▼0.29 | 13.26 ▼45.50 |
Posts /wp-admin/edit.php | 3.06 ▼0.30 | 8.72 ▼43.54 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.83 | 9.61 ▼98.36 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 8.30 ▼27.24 |
Leave Management /wp-admin/admin.php?page=wphrm-leaves-application | 3.06 | 8.14 |
Employees /wp-admin/admin.php?page=wphrm-employees | 3.06 | 9.80 |
/wp-admin/admin.php?page=wphrm-salary-reports | 3.06 | 8.27 |
/wp-admin/admin.php?page=wphrm-employee-absent | 3.06 | 10.20 |
/wp-admin/admin.php?page=wphrm-add-designation | 3.06 | 7.98 |
Finance Management /wp-admin/admin.php?page=wphrm-financials | 3.06 | 9.82 |
/wp-admin/admin.php?page=wphrm-add-employee | 3.06 | 9.19 |
/wp-admin/admin.php?page=wphrm-view-attendance | 3.06 | 9.41 |
/wp-admin/admin.php?page=wphrm-select-financials-month | 3.06 | 10.41 |
/wp-admin/admin.php?page=wphrm-employee-view-details | 3.06 | 10.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,033 ▲287 | 14.46 ▲0.08 | 2.10 ▲0.07 | 43.87 ▼4.50 |
Dashboard /wp-admin | 2,417 ▲226 | 6.39 ▲0.49 | 119.17 ▲13.60 | 38.89 ▼0.85 |
Posts /wp-admin/edit.php | 2,328 ▲239 | 3.27 ▲1.25 | 54.12 ▲16.91 | 32.94 ▼1.95 |
Add New Post /wp-admin/post-new.php | 1,570 ▲37 | 23.17 ▲0.12 | 616.14 ▼26.30 | 37.41 ▼21.48 |
Media Library /wp-admin/upload.php | 1,462 ▲74 | 4.21 ▲0.04 | 80.44 ▼26.56 | 41.45 ▼6.54 |
Leave Management /wp-admin/admin.php?page=wphrm-leaves-application | 1,872 | 4.49 | 88.21 | 43.13 |
Employees /wp-admin/admin.php?page=wphrm-employees | 1,280 | 4.21 | 71.91 | 31.65 |
/wp-admin/admin.php?page=wphrm-salary-reports | 799 | 2.43 | 25.50 | 19.21 |
/wp-admin/admin.php?page=wphrm-employee-absent | 1,264 | 4.21 | 69.78 | 30.20 |
/wp-admin/admin.php?page=wphrm-add-designation | 1,488 | 4.12 | 73.22 | 36.31 |
Finance Management /wp-admin/admin.php?page=wphrm-financials | 2,788 | 4.79 | 83.61 | 36.16 |
/wp-admin/admin.php?page=wphrm-add-employee | 1,045 | 3.95 | 48.10 | 20.01 |
/wp-admin/admin.php?page=wphrm-view-attendance | 2,030 | 5.33 | 95.56 | 53.44 |
/wp-admin/admin.php?page=wphrm-select-financials-month | 1,048 | 3.70 | 50.31 | 19.84 |
/wp-admin/admin.php?page=wphrm-employee-view-details | 1,644 | 3.95 | 62.96 | 85.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 330 | 507 | 14,627 |
PHP | 24 | 257 | 146 | 7,752 |
CSS | 8 | 44 | 405 | 6,152 |
SVG | 1 | 0 | 0 | 565 |
SQL | 3 | 12 | 6 | 94 |
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 code | 0.36 |
Average class complexity | 101.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 358.00 |
Average method complexity | 6.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 79 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 0.84KB | 0.80KB | ▼ 4.53% |
assets/images/icon.png | 3.97KB | 4.22KB | 0.00% |
assets/images/Arrow left.png | 0.59KB | 0.60KB | 0.00% |
assets/images/default.png | 1.99KB | 1.85KB | ▼ 6.83% |
assets/images/Create.png | 0.82KB | 0.87KB | 0.00% |