Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.57MB] [CPU: ▼4.94ms] Passed 4 tests
This is a short check of server-side resources used by Hr Press Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.56 ▼6.16 |
Dashboard /wp-admin | 4.06 ▲0.75 | 50.36 ▲3.21 |
Posts /wp-admin/edit.php | 4.11 ▲0.75 | 47.82 ▼3.94 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.69 | 87.88 ▼12.87 |
Media Library /wp-admin/upload.php | 3.91 ▲0.69 | 38.78 ▲5.87 |
Announcements /wp-admin/admin.php?page=wp_hrp_announcements | 3.92 | 39.95 |
Employees /wp-admin/admin.php?page=wp_hrp_employees | 3.92 | 43.99 |
Designations /wp-admin/admin.php?page=wp_hrp_designations | 3.92 | 39.46 |
Departments /wp-admin/admin.php?page=wp_hrp_departments | 3.92 | 39.97 |
Dashboard /wp-admin/admin.php?page=hr_press | 3.97 | 42.79 |
Shifts /wp-admin/admin.php?page=wp_hrp_shifts | 3.92 | 39.20 |
Attendance /wp-admin/admin.php?page=wp_hrp_attendances | 3.92 | 38.12 |
Settings /wp-admin/admin.php?page=wp_hrp_settings | 3.97 | 43.01 |
Holidays /wp-admin/admin.php?page=wp_hrp_holidays | 3.92 | 37.90 |
Server storage [IO: ▲4.03MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: 8 new tables, 6 new options
New tables |
---|
wp_hrp_announcements |
wp_hrp_settings |
wp_hrp_attendances |
wp_hrp_holidays |
wp_hrp_shifts |
wp_hrp_employees |
wp_hrp_designations |
wp_hrp_departments |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Hr Press Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲94 | 13.30 ▼1.08 | 6.17 ▲3.97 | 39.04 ▼5.62 |
Dashboard /wp-admin | 2,254 ▲63 | 5.82 ▲0.93 | 100.01 ▼7.29 | 38.39 ▼2.80 |
Posts /wp-admin/edit.php | 2,137 ▲45 | 2.00 ▼0.04 | 33.69 ▼6.99 | 33.84 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 17.89 ▲0.27 | 649.69 ▲16.99 | 61.03 ▲4.86 |
Media Library /wp-admin/upload.php | 1,442 ▲51 | 4.16 ▼0.04 | 95.11 ▼5.74 | 42.20 ▼3.21 |
Announcements /wp-admin/admin.php?page=wp_hrp_announcements | 1,678 | 4.46 | 110.92 | 73.02 |
Employees /wp-admin/admin.php?page=wp_hrp_employees | 1,757 | 5.84 | 110.13 | 35.78 |
Designations /wp-admin/admin.php?page=wp_hrp_designations | 1,632 | 5.53 | 90.29 | 35.00 |
Departments /wp-admin/admin.php?page=wp_hrp_departments | 1,655 | 5.86 | 91.76 | 33.35 |
Dashboard /wp-admin/admin.php?page=hr_press | 1,561 | 3.94 | 55.89 | 45.03 |
Shifts /wp-admin/admin.php?page=wp_hrp_shifts | 1,678 | 6.22 | 96.34 | 35.48 |
Attendance /wp-admin/admin.php?page=wp_hrp_attendances | 1,620 | 5.48 | 101.43 | 33.48 |
Settings /wp-admin/admin.php?page=wp_hrp_settings | 2,282 | 4.42 | 65.32 | 42.12 |
Holidays /wp-admin/admin.php?page=wp_hrp_holidays | 1,701 | 4.63 | 106.00 | 37.04 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 tables in the database
- wp_hrp_departments
- wp_hrp_settings
- wp_hrp_employees
- wp_hrp_shifts
- wp_hrp_designations
- wp_hrp_attendances
- wp_hrp_holidays
- wp_hrp_announcements
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in hr-press-lite/assets to your readme.txt
hr-press-lite/HR_Press.php 62% from 13 tests
The main file in "Hr Press Lite" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hr-press-lite.php" instead of "HR_Press.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 356 characters long)
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "7.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "5.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin47,635 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 4,251 | 104 | 31,762 |
JavaScript | 14 | 2,239 | 7,237 | 8,132 |
PHP | 51 | 824 | 229 | 6,700 |
SVG | 1 | 0 | 0 | 1,041 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 70.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 448.00 |
Average method complexity | 4.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 144 | |
▷ Static methods | 138 | 95.83% |
▷ Public methods | 141 | 97.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.08% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 16 | 84.21% |
▷ Class constants | 3 | 15.79% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/person.png | 2.64KB | 0.00KB | ▼ 100.00% |