Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.12ms] Passed 4 tests
This is a short check of server-side resources used by WP Employee Attendance System
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.58 ▼5.15 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.08 ▼1.29 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 46.73 ▲2.36 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 90.40 ▲8.88 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 35.70 ▲3.62 |
Attendance Update /wp-admin/admin.php?page=Attendance_Update | 3.27 | 29.03 |
Take Todays Attendance /wp-admin/admin.php?page=Attendance_Panel | 3.29 | 33.65 |
Employee Delete /wp-admin/admin.php?page=Employee_Delete | 3.29 | 29.52 |
Employee Update /wp-admin/admin.php?page=Employee_Update | 3.27 | 28.35 |
View Todays Attendance /wp-admin/admin.php?page=View_Todays_Attendance | 3.29 | 29.73 |
Employee Insert /wp-admin/admin.php?page=Employee_Insert | 3.29 | 28.34 |
View All Attendance /wp-admin/admin.php?page=View_All_Attendance | 3.29 | 27.92 |
Employee Attendance /wp-admin/admin.php?page=Employee_Attendance | 3.29 | 30.40 |
Employee Listing /wp-admin/admin.php?page=Employee_Listing | 3.29 | 29.86 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_employee_details |
wp_attendance_taken |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
jal_db_version |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Employee Attendance System
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲77 | 14.58 ▲0.23 | 1.63 ▼0.11 | 36.29 ▼10.25 |
Dashboard /wp-admin | 2,247 ▲67 | 5.56 ▼0.12 | 91.31 ▼0.67 | 37.99 ▼7.78 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.03 ▲0.08 | 39.32 ▲3.79 | 35.95 ▲4.52 |
Add New Post /wp-admin/post-new.php | 1,569 ▲39 | 23.23 ▲0.22 | 596.08 ▼31.23 | 46.39 ▼0.75 |
Media Library /wp-admin/upload.php | 1,521 ▲124 | 4.20 ▼0.09 | 96.89 ▼1.48 | 42.92 ▲0.89 |
Attendance Update /wp-admin/admin.php?page=Attendance_Update | 873 | 2.04 | 26.43 | 27.24 |
Take Todays Attendance /wp-admin/admin.php?page=Attendance_Panel | 839 | 2.00 | 25.31 | 28.61 |
Employee Delete /wp-admin/admin.php?page=Employee_Delete | 1,635 | 2.95 | 42.93 | 36.29 |
Employee Update /wp-admin/admin.php?page=Employee_Update | 950 | 2.02 | 25.20 | 34.29 |
View Todays Attendance /wp-admin/admin.php?page=View_Todays_Attendance | 859 | 2.14 | 24.83 | 30.78 |
Employee Insert /wp-admin/admin.php?page=Employee_Insert | 957 | 2.02 | 24.67 | 31.71 |
View All Attendance /wp-admin/admin.php?page=View_All_Attendance | 907 | 1.97 | 25.98 | 29.00 |
Employee Attendance /wp-admin/admin.php?page=Employee_Attendance | 956 | 1.97 | 23.92 | 52.12 |
Employee Listing /wp-admin/admin.php?page=Employee_Listing | 861 | 2.01 | 24.51 | 28.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_employee_details
- wp_attendance_taken
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- jal_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+6
Undefined index: id
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+63
Undefined offset: 0
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+26
Trying to get property 'id' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+29
Trying to get property 'name' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Attendance_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/update_todays_attendance.php+43
Trying to get property 'attendance' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+40
Trying to get property 'gender' of non-object
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+48
Trying to get property 'email' of non-object
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+53
Trying to get property 'DOB' of non-object
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+58
Trying to get property 'contact_no' of non-object
- > GET request to /wp-admin/admin.php?page=Employee_Update
- > Notice in wp-content/plugins/wp-employee-attendance-system/employee_update.php+63
Trying to get property 'department' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-employee-attendance-system/employee_attendance.php:42
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Employee_Listing
- > Network (severe)
wp-content/plugins/wp-employee-attendance-system/css/fonts/Poppins-Regular.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Employee_Listing
- > Network (severe)
wp-content/plugins/wp-employee-attendance-system/css/fonts/Poppins-Regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Employee_Listing
- > Network (severe)
wp-content/plugins/wp-employee-attendance-system/css/fonts/Poppins-Regular.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-employee-attendance-system ===
)
wp-employee-attendance-system/employee_attendance.php 92% from 13 tests
The principal PHP file in "WP Employee Attendance System" v. 3.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-employee-attendance-system.php" instead of "employee_attendance.php")
Code Analysis Passed 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 plugin2,235 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 208 | 72 | 1,441 |
PHP | 11 | 158 | 52 | 794 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin