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.24MB] [CPU: ▲0.77ms] Passed 4 tests
An overview of server-side resources used by Clock In Portal- Staff & Attendance Management
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 38.82 ▼4.03 |
Dashboard /wp-admin | 3.55 ▲0.25 | 49.40 ▲3.01 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 52.02 ▲2.33 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 101.94 ▲12.15 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 39.89 ▲1.76 |
Clock In Portal /wp-admin/admin.php?page=clock-in-portal | 3.54 | 35.84 |
/wp-admin/index.php?page=cip-setup-wizard-free | 3.39 | 29.14 |
Designations /wp-admin/admin.php?page=cip-designations | 3.52 | 34.37 |
How to Work /wp-admin/admin.php?page=cip-help | 3.50 | 35.84 |
Settings /wp-admin/admin.php?page=cip-settings | 4.93 | 42.42 |
Reports /wp-admin/admin.php?page=cip-reports | 3.93 | 34.77 |
Holidays /wp-admin/admin.php?page=cip-holidays | 3.57 | 36.22 |
Staff /wp-admin/admin.php?page=cip-staffs | 3.72 | 37.60 |
Leave Request /wp-admin/admin.php?page=cip-staff-request | 3.70 | 32.93 |
Server storage [IO: ▲16.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 147 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_sm_attendance |
wp_sm_staffs |
wp_sm_staff_category |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
cip_official_holidays |
Browser metrics Passed 4 tests
A check of browser resources used by Clock In Portal- Staff & Attendance Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 14.28 ▼0.10 | 1.85 ▼0.05 | 43.03 ▲0.79 |
Dashboard /wp-admin | 2,290 ▲102 | 4.86 ▼1.03 | 109.77 ▼2.59 | 42.84 ▲2.43 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.04 ▲0.05 | 39.43 ▼1.55 | 35.53 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,572 ▲35 | 23.39 ▲0.18 | 594.30 ▼88.94 | 58.69 ▲3.51 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.22 ▲0.04 | 97.92 ▼1.20 | 42.61 ▼1.72 |
Clock In Portal /wp-admin/admin.php?page=clock-in-portal | 923 | 19.81 | 411.49 | 98.52 |
/wp-admin/index.php?page=cip-setup-wizard-free | 362 | 2.65 | 52.17 | 20.79 |
Designations /wp-admin/admin.php?page=cip-designations | 938 | 19.87 | 395.78 | 45.14 |
How to Work /wp-admin/admin.php?page=cip-help | 930 | 19.83 | 404.70 | 48.49 |
Settings /wp-admin/admin.php?page=cip-settings | 3,499 | 19.84 | 308.54 | 46.60 |
Reports /wp-admin/admin.php?page=cip-reports | 1,036 | 19.88 | 307.52 | 42.65 |
Holidays /wp-admin/admin.php?page=cip-holidays | 980 | 19.92 | 285.26 | 34.63 |
Staff /wp-admin/admin.php?page=cip-staffs | 1,099 | 19.84 | 279.19 | 37.46 |
Leave Request /wp-admin/admin.php?page=cip-staff-request | 976 | 19.89 | 306.46 | 35.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_sm_staffs
- wp_sm_staff_category
- wp_sm_attendance
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- cip_official_holidays
- widget_recent-posts
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/clock-in-portal/subscribers/staff-holidays.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/clock-in-portal/help.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/clock-in-portal/settings/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/clock-in-portal/pro_features.php:5
- > 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 browser errors
- > GET request to /wp-admin/index.php?page=cip-setup-wizard-free
- > Console-api (warning) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28609 "jQuery.Deferred exception: jQuery(...).DataTable is not a function" "TypeError: jQuery(...).DataTable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/clock-in-portal//js/admin-setup.js?ver=1:43:27)\n at e (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:26990)\n at t (/wp-includes/js/jquery/jquery.min.js?ver=3.7.0:2:27292)" undefined
- > GET request to /wp-admin/index.php?page=cip-setup-wizard-free
- > Javascript (severe) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:28721 Uncaught TypeError: jQuery(...).DataTable is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: scheduler, clock in and out, attendance, check in, check out...
clock-in-portal/clock-in-portal.php 85% from 13 tests
The principal PHP file in "Clock In Portal- Staff & Attendance Management" v. 2.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: Please use dashes and lowercase characters for text domains
- Description: The description should be shorter than 140 characters (currently 143 characters long)
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
No dangerous file extensions were detected106,449 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 3,079 | 2,996 | 67,071 |
CSS | 18 | 2,915 | 71 | 19,682 |
SVG | 6 | 0 | 12 | 12,004 |
PHP | 23 | 653 | 363 | 7,086 |
PO File | 1 | 264 | 339 | 606 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 27 | |
▷ Static methods | 12 | 44.44% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.20MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
new-assets/images/logo.png | 6.55KB | 3.97KB | ▼ 39.36% |
image/christmas.png | 194.21KB | 210.44KB | 0.00% |
images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
image/logo.png | 2.91KB | 2.91KB | 0.00% |