Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/time-sheets/time-sheets.php+558
Trying to access array offset on value of type bool
Server metrics [RAM: ▲1.35MB] [CPU: ▼1.07ms] Passed 4 tests
This is a short check of server-side resources used by Time Sheets
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.81 ▲1.34 | 49.30 ▲11.85 |
Dashboard /wp-admin | 4.67 ▲1.32 | 57.29 ▼2.47 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 51.19 ▲2.34 |
Add New Post /wp-admin/post-new.php | 7.27 ▲1.38 | 86.88 ▼15.98 |
Media Library /wp-admin/upload.php | 4.60 ▲1.36 | 46.61 ▲13.67 |
Manage Invoicers /wp-admin/admin.php?page=time_sheets_manage_invoicers | 4.50 | 40.11 |
Documentation /wp-admin/admin.php?page=timesheet_docs | 4.50 | 37.00 |
Manage Payroll /wp-admin/admin.php?page=time_sheets_manage_payroll | 4.50 | 38.40 |
My Dashboard /wp-admin/admin.php?page=search_timesheet | 4.57 | 40.56 |
Manage Client Managers /wp-admin/admin.php?page=time_sheets_client_managers | 4.50 | 41.35 |
My Settings /wp-admin/admin.php?page=my_settings | 4.48 | 37.42 |
Manage Approvers /wp-admin/admin.php?page=time_sheets_manage_approvers | 4.50 | 37.87 |
Enter Time Sheet /wp-admin/admin.php?page=show_timesheet | 4.54 | 38.98 |
Global Settings /wp-admin/admin.php?page=time_sheets_settings | 4.48 | 35.49 |
Server storage [IO: ▲6.18MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 342 new files
Database: 29 new tables, 7 new options
New tables |
---|
wp_timesheet_users_archive |
wp_timesheet_approvers_approvies |
wp_timesheet_employee_always_to_payroll |
wp_timesheet_clients_users |
wp_timesheet_payrollers_archive |
wp_timesheet_comment_audit |
wp_timesheet_manage_client_users |
wp_timesheet_recurring_invoices_monthly_archive |
wp_timesheet_employee_always_to_payroll_archive |
wp_timesheet |
... |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
time_sheets |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Time Sheets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,977 ▲231 | 14.21 ▲0.01 | 10.70 ▲9.13 | 45.69 ▲3.57 |
Dashboard /wp-admin | 2,263 ▲82 | 4.93 ▼0.79 | 98.41 ▲0.56 | 83.21 ▲42.29 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 2.31 ▲0.27 | 35.66 ▼3.81 | 30.25 ▼8.97 |
Add New Post /wp-admin/post-new.php | 1,583 ▲57 | 23.40 ▲0.19 | 743.48 ▲84.10 | 53.50 ▼3.47 |
Media Library /wp-admin/upload.php | 1,474 ▲74 | 4.44 ▲0.24 | 100.40 ▼0.43 | 59.39 ▲13.61 |
Manage Invoicers /wp-admin/admin.php?page=time_sheets_manage_invoicers | 884 | 1.85 | 25.46 | 24.39 |
Documentation /wp-admin/admin.php?page=timesheet_docs | 903 | 1.92 | 23.63 | 20.77 |
Manage Payroll /wp-admin/admin.php?page=time_sheets_manage_payroll | 887 | 1.95 | 24.98 | 20.63 |
My Dashboard /wp-admin/admin.php?page=search_timesheet | 1,321 | 2.44 | 58.83 | 26.32 |
Manage Client Managers /wp-admin/admin.php?page=time_sheets_client_managers | 888 | 1.94 | 25.43 | 23.77 |
My Settings /wp-admin/admin.php?page=my_settings | 890 | 1.86 | 24.77 | 25.24 |
Manage Approvers /wp-admin/admin.php?page=time_sheets_manage_approvers | 885 | 1.95 | 24.98 | 21.58 |
Enter Time Sheet /wp-admin/admin.php?page=show_timesheet | 1,366 | 2.58 | 60.19 | 26.01 |
Global Settings /wp-admin/admin.php?page=time_sheets_settings | 952 | 2.06 | 26.32 | 23.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 29 tables in the database
- wp_timesheet_invoicers
- wp_timesheet_emailqueue_archive
- wp_timesheet_comment_audit
- wp_timesheet_client_projects
- wp_timesheet_clients_archive
- wp_timesheet_approvers_approvies
- wp_timesheet_client_project_autoclose
- wp_timesheet_manage_client_users_archive
- wp_timesheet_clients_users
- wp_timesheet_approvers_archive
- ...
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- time_sheets
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
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
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=my_settings
- > Notice in wp-content/plugins/time-sheets/mysettings.php+162
Undefined index: users_override_location
- > GET request to /wp-admin/admin.php?page=my_settings
- > Notice in wp-content/plugins/time-sheets/mysettings.php+183
Undefined index: user_specific_date_format
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=show_timesheet
- > Notice in wp-content/plugins/time-sheets/entry.php+717
Undefined index: week_starts
- > GET request to /wp-admin/admin.php?page=show_timesheet
- > Notice in wp-content/plugins/time-sheets/settings.php+441
Undefined index: display_notes_toggle
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=show_timesheet
- > Notice in wp-content/plugins/time-sheets/settings.php+441
Undefined index: display_expenses_toggle
- > GET request to /wp-admin/admin.php?page=time_sheets_settings
- > Notice in wp-content/plugins/time-sheets/settings.php+1050
Undefined index: cron_user
- > GET request to /wp-admin/admin.php?page=time_sheets_settings
- > Notice in wp-content/plugins/time-sheets/settings.php+590
Undefined index: project_trigger_percent
- > GET request to /wp-admin/admin.php?page=time_sheets_settings
- > Notice in wp-content/plugins/time-sheets/settings.php+604
Undefined index: email_address_on_project_over
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/time-sheets/time-sheets.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=search_timesheet
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=search_timesheet 229:0 Uncaught TypeError: $ is not a function
- > GET request to /wp-admin/admin.php?page=search_timesheet
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=search_timesheet 276:29 Uncaught TypeError: Cannot set properties of undefined (setting 'disabled')
- > GET request to /wp-admin/admin.php?page=show_timesheet
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=show_timesheet 229:0 Uncaught TypeError: $ is not a function
- > GET request to /wp-admin/admin.php?page=show_timesheet
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=show_timesheet 323:15 Uncaught SyntaxError: Unexpected token ';'
- > GET request to /wp-admin/admin.php?page=time_sheets_settings
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=time_sheets_settings 169:70 Uncaught TypeError: Cannot read properties of undefined (reading 'checked')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: time tracking, business management, time sheets, payroll, invoicing...
time-sheets/time-sheets.php Passed 13 tests
"Time Sheets" version 1.33.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
23 characters long description:
Time Sheets application
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected114,352 lines of code in 270 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 228 | 13,838 | 8,079 | 100,346 |
PHP | 17 | 1,753 | 256 | 7,470 |
CSS | 13 | 219 | 117 | 3,811 |
Sass | 9 | 518 | 6 | 2,672 |
SVG | 2 | 0 | 0 | 52 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 73.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 314.00 |
Average method complexity | 6.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 209 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 209 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 0.17MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
arrow_up.png | 2.97KB | 2.06KB | ▼ 30.78% |
x.png | 9.50KB | 4.78KB | ▼ 49.67% |
js/minified/shims/jpicker/images/preview-opacity.png | 0.08KB | 0.09KB | 0.00% |
js/minified/shims/jpicker/images/NoColor.png | 0.48KB | 0.60KB | 0.00% |
js/minified/shims/styles/color-picker.png | 0.33KB | 0.56KB | 0.00% |