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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 43.36 ▼0.19 |
Dashboard /wp-admin | 3.89 ▲0.59 | 62.96 ▲10.00 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 59.61 ▲9.12 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 104.51 ▲18.16 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 50.35 ▲12.49 |
/wp-admin/admin.php?page=innovs_add_new_attend_view | 3.80 | 41.44 |
/wp-admin/admin.php?page=emp_profile_leave | 3.81 | 40.94 |
/wp-admin/admin.php?page=innovs_edit_attend | 3.80 | 41.75 |
/wp-admin/admin.php?page=innovs_holiday_load | 3.71 | 39.16 |
/wp-admin/admin.php?page=innovs_add_new_attend_edit | 3.80 | 39.09 |
/wp-admin/admin.php?page=innovs_add_new_attend | 3.80 | 46.17 |
/wp-admin/admin.php?page=emp_profile_general | 3.86 | 38.86 |
/wp-admin/admin.php?page=emp_profile_attendance | 3.84 | 42.66 |
/wp-admin/admin.php?page=innovs_request | 3.81 | 47.74 |
/wp-admin/admin.php?page=emp_profile_job | 3.80 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,230 ▲469 | 18.54 ▲4.18 | 5.48 ▲3.27 | 26.06 ▼20.06 |
Dashboard /wp-admin | 2,541 ▲367 | 8.72 ▲3.15 | 151.37 ▲55.35 | 146.73 ▲103.97 |
Posts /wp-admin/edit.php | 2,481 ▲378 | 5.65 ▲3.70 | 79.92 ▲43.72 | 105.85 ▲68.68 |
Add New Post /wp-admin/post-new.php | 1,646 ▲120 | 25.00 ▲1.28 | 647.93 ▼32.49 | 222.14 ▲168.24 |
Media Library /wp-admin/upload.php | 1,622 ▲222 | 6.79 ▲2.60 | 117.43 ▲9.72 | 122.73 ▲76.56 |
/wp-admin/admin.php?page=innovs_add_new_attend_view | 1,364 | 6.37 | 76.97 | 109.74 |
/wp-admin/admin.php?page=emp_profile_leave | 1,439 | 6.23 | 72.43 | 125.00 |
/wp-admin/admin.php?page=innovs_edit_attend | 1,327 | 6.27 | 76.33 | 108.89 |
/wp-admin/admin.php?page=innovs_holiday_load | 745 | 1.94 | 11.92 | 25.68 |
/wp-admin/admin.php?page=innovs_add_new_attend_edit | 1,329 | 6.37 | 77.20 | 116.09 |
/wp-admin/admin.php?page=innovs_add_new_attend | 1,436 | 6.23 | 69.18 | 108.25 |
/wp-admin/admin.php?page=emp_profile_general | 2,381 | 6.17 | 73.81 | 115.49 |
/wp-admin/admin.php?page=emp_profile_attendance | 2,116 | 5.84 | 84.25 | 92.26 |
/wp-admin/admin.php?page=innovs_request | 1,513 | 6.26 | 71.65 | 102.89 |
/wp-admin/admin.php?page=emp_profile_job | 1,400 | 6.25 | 71.09 | 116.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
- > PHP Fatal error
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:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in innovs-hr-manager/assets to your readme.txt
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 5,261 | 9,305 | 22,566 |
PHP | 73 | 1,952 | 1,633 | 9,226 |
SVG | 4 | 0 | 16 | 6,599 |
CSS | 15 | 658 | 439 | 4,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 code | 0.19 |
Average class complexity | 17.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 237 | |
▷ Static methods | 7 | 2.95% |
▷ Public methods | 209 | 88.19% |
▷ Protected methods | 20 | 8.44% |
▷ Private methods | 8 | 3.38% |
Functions | 48 | |
▷ Named functions | 44 | 91.67% |
▷ Anonymous functions | 4 | 8.33% |
Constants | 39 | |
▷ Global constants | 39 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/hjj.png | 3.73KB | 2.65KB | ▼ 28.81% |
admin/img/user-img1.png | 27.53KB | 10.80KB | ▼ 60.78% |
(invalid) admin/img/user-img.png | 2.64KB | 0.00KB | ▼ 100.00% |
admin/img/emp.png | 44.30KB | 13.80KB | ▼ 68.85% |
admin/img/hrm-logo.png | 5.87KB | 2.44KB | ▼ 58.47% |