Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.93MB] [CPU: ▼123.61ms] Passed 4 tests
Server-side resources used by WP Human Resource Management
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.77 ▲3.05 | 50.54 ▲29.63 |
Dashboard /wp-admin | 6.03 ▲2.97 | 71.83 ▲26.48 |
Posts /wp-admin/edit.php | 6.08 ▲2.97 | 63.32 ▲17.41 |
Add New Post /wp-admin/post-new.php | 8.32 ▲2.88 | 108.98 ▼554.76 |
Media Library /wp-admin/upload.php | 5.91 ▲2.91 | 46.49 ▲16.42 |
Server storage [IO: ▲6.25MB] [DB: ▲0.02MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 724 new files
Database: 22 new tables, 15 new options
New tables |
---|
wp_hrm_time_shift |
wp_hrm_language |
wp_hrm_notice |
wp_hrm_work_experience |
wp_hrm_personal_skill |
wp_hrm_location |
wp_hrm_designation |
wp_hrm_attendance |
wp_hrm_pay_grade |
wp_hrm_personal_education |
... |
New WordPress options |
---|
hrm_job_title_option |
hrm_notice |
hrm_pay_grade |
hrm_holiday |
hrm_work_week |
hrm_general_info |
hrm_personal_language |
hrm_leave_type |
hrm_location_option |
hrm_personal_skill |
... |
Browser metrics Passed 4 tests
WP Human Resource Management: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,789 ▲193 | 16.26 ▲0.64 | 9.58 ▲0.65 | 48.11 ▲1.96 |
Dashboard /wp-admin | 3,056 ▲125 | 5.94 ▼0.02 | 149.11 ▲0.68 | 121.07 ▲13.80 |
Posts /wp-admin/edit.php | 2,825 ▲89 | 2.71 ▼0.00 | 66.26 ▼4.72 | 90.67 ▲0.85 |
Add New Post /wp-admin/post-new.php | 1,668 ▼15 | 21.42 ▲2.66 | 295.08 ▼109.43 | 113.75 ▲3.22 |
Media Library /wp-admin/upload.php | 1,893 ▲86 | 5.01 ▼0.02 | 156.39 ▲6.00 | 111.36 ▲5.21 |
Designation /wp-admin/admin.php?page=hr_management#/designation | 1,594 | 9.01 | 155.85 | 72.66 |
Employee /wp-admin/admin.php?page=hr_management#/employee | 1,603 | 9.18 | 182.85 | 84.90 |
Profile /wp-admin/admin.php?page=hr_management#/employees | 1,657 | 8.44 | 124.77 | 67.61 |
Attendance /wp-admin/admin.php?page=hr_management#/attendance | 1,635 | 9.14 | 142.50 | 97.07 |
Recruitment /wp-admin/admin.php?page=hr_management#/recruitment | 1,645 | 11.77 | 355.32 | 104.76 |
Settings /wp-admin/admin.php?page=hr_management#/settings | 1,529 | 8.26 | 119.88 | 66.81 |
Organization /wp-admin/admin.php?page=hr_management#/organization | 1,646 | 8.30 | 135.76 | 72.84 |
Dashboard /wp-admin/admin.php?page=hr_management#/dashboard | 1,638 | 8.37 | 163.92 | 101.89 |
Payroll /wp-admin/admin.php?page=hr_management#/payroll | 1,755 | 9.35 | 130.83 | 91.18 |
Add-Ons /wp-admin/admin.php?page=hr_management#/addons | 1,549 | 8.01 | 117.92 | 68.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie tables detected upon uninstall: 22 tables
- wp_hrm_designation
- wp_hrm_financial_year
- wp_hrm_notice
- wp_hrm_salary
- wp_hrm_salary_group
- wp_hrm_time_shift
- wp_hrm_personal_language
- wp_hrm_relation
- wp_hrm_language
- wp_hrm_attendance
- ...
- This plugin does not fully uninstall, leaving 15 options in the database
- hrm_location_option
- hrm_personal_language
- hrm_admin
- hrm_personal_skill
- hrm_general_info
- hrm_job_title_option
- hrm_job_category
- hrm_holiday
- hrm_notice
- hrm_work_week
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hrm/templates/addons/licenses.php
- > /wp-content/plugins/hrm/vendor/symfony/translation/Resources/bin/translation-status.php
- 314× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/hrm/vendor/symfony/translation/Exception/InvalidResourceException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Eloquent\\Relations\\MorphOneOrMany' not found in wp-content/plugins/hrm/vendor/illuminate/database/Eloquent/Relations/MorphMany.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hrm/vendor/symfony/translation/Tests/Loader/MoFileLoaderTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'HRM\\Core\\Database\\Abstract_Migration' not found in wp-content/plugins/hrm/db/migrations/create_designation_table.php:6
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/hrm/vendor/illuminate/support/Facades/App.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hrm/vendor/symfony/translation/Tests/Dumper/JsonFileDumperTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Database\\Schema\\Grammars\\Grammar' not found in wp-content/plugins/hrm/vendor/illuminate/database/Schema/Grammars/PostgresGrammar.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hrm/vendor/symfony/translation/Tests/Dumper/FileDumperTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/hrm/vendor/symfony/translation/Tests/MessageSelectorTest.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Translation\\Dumper\\DumperInterface' not found in wp-content/plugins/hrm/vendor/symfony/translation/Dumper/FileDumper.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=hr_management#/attendance
- > Console-api (severe) in unknown
/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17 5:10851 TypeError: jQuery(...).datetimepicker is not a functionat r (/wp-content/plugins/hrm/assets/js/hrm.js?ver=2.2.17:1:454240)at inserted (/wp-content/plugins/hrm/assets/js/hrm.js?ver=2.2.17:1:454877)at ir (/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17:6:40165)at f (/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17:6:39638)at o (/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17:6:12643)at Object.i [as insert] (/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17:6:12277)at A (/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17:6:55896)at hn.__patch__ (/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17:6:57251)at hn._update (/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17:6:31690)at hn.i (/wp-content/plugins/hrm/assets/vendor/vue/vue.min.js?ver=2.2.17:6:63773)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Please a description for screenshot #6 in hrm/assets to your readme.txt
hrm/hrm.php Passed 13 tests
The principal PHP file in "WP Human Resource Management" v. 2.2.17 is loaded by WordPress automatically on each request
46 characters long description:
Organization, Industries and Office management
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/hrm/vendor/nesbot/carbon/bin/upgrade-carbon.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 551 | 11,603 | 27,498 | 43,878 |
JavaScript | 29 | 6,360 | 4,551 | 27,424 |
XSD | 4 | 99 | 76 | 4,991 |
CSS | 12 | 98 | 124 | 3,192 |
JSON | 17 | 0 | 0 | 1,266 |
LESS | 1 | 69 | 4 | 847 |
PO File | 8 | 308 | 381 | 660 |
SVG | 3 | 0 | 2 | 660 |
XML | 18 | 7 | 0 | 362 |
Markdown | 4 | 136 | 0 | 348 |
YAML | 5 | 0 | 0 | 19 |
Qt Linguist | 1 | 0 | 0 | 10 |
DOS Batch | 1 | 0 | 0 | 4 |
HTML | 1 | 0 | 0 | 1 |
INI | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 157)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 157.00 |
Code structure | ||
---|---|---|
Namespaces | 93 | |
Interfaces | 87 | |
Traits | 10 | |
Classes | 356 | |
▷ Abstract classes | 24 | 6.74% |
▷ Concrete classes | 332 | 93.26% |
▷ Final classes | 1 | 0.30% |
Methods | 4,145 | |
▷ Static methods | 559 | 13.49% |
▷ Public methods | 3,421 | 82.53% |
▷ Protected methods | 637 | 15.37% |
▷ Private methods | 87 | 2.10% |
Functions | 399 | |
▷ Named functions | 237 | 59.40% |
▷ Anonymous functions | 162 | 40.60% |
Constants | 84 | |
▷ Global constants | 12 | 14.29% |
▷ Class constants | 72 | 85.71% |
▷ Public constants | 72 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/css/chosen-sprite@2x.png | 0.85KB | 0.83KB | ▼ 3.10% |
assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
assets/css/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |