Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/employee-scheduler/includes/class-shiftee-basic-activator.php+80
Use of undefined constant SHIFTEE_BASIC_VERSION - assumed 'SHIFTEE_BASIC_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲2.44MB] [CPU: ▲19.75ms] Passed 4 tests
Server-side resources used by Shiftee Basic - Employee and Staff Scheduling
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.66 ▲2.20 | 77.37 ▲31.33 |
Dashboard /wp-admin | 5.76 ▲2.45 | 72.32 ▲17.85 |
Posts /wp-admin/edit.php | 5.93 ▲2.57 | 79.81 ▲23.70 |
Add New Post /wp-admin/post-new.php | 8.47 ▲2.58 | 110.37 ▲6.11 |
Media Library /wp-admin/upload.php | 5.78 ▲2.55 | 75.65 ▲39.12 |
All Shifts /wp-admin/edit.php?post_type=shift | 5.97 | 73.48 |
Job Categories /wp-admin/edit-tags.php?taxonomy=job_category&post_type=job | 5.77 | 67.19 |
Add New /wp-admin/post-new.php?post_type=job | 8.62 | 111.54 |
Add New /wp-admin/post-new.php?post_type=expense | 8.61 | 114.07 |
Shift Statuses /wp-admin/edit-tags.php?taxonomy=shift_status&post_type=shift | 5.77 | 72.28 |
Instructions /wp-admin/admin.php?page=instructions | 5.73 | 67.51 |
Expense Categories /wp-admin/edit-tags.php?taxonomy=expense_category&post_type=expense | 5.77 | 65.74 |
All Expenses /wp-admin/edit.php?post_type=expense | 5.97 | 92.33 |
All Jobs /wp-admin/edit.php?post_type=job | 5.91 | 69.00 |
Shiftee Basic /wp-admin/admin.php?page=shiftee | 5.73 | 66.76 |
Server storage [IO: ▲5.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 609 new files
Database: 2 new tables, 14 new options
New tables |
---|
wp_p2pmeta |
wp_p2p |
New WordPress options |
---|
p2p_storage |
db_upgraded |
widget_p2p |
widget_recent-posts |
expense_category_children |
can_compress_scripts |
widget_recent-comments |
shift_type_children |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Shiftee Basic - Employee and Staff Scheduling: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲169 | 13.21 ▲0.00 | 1.75 ▼0.20 | 40.43 ▼5.46 |
Dashboard /wp-admin | 2,346 ▲146 | 4.94 ▼0.85 | 115.41 ▲13.42 | 85.96 ▲44.04 |
Posts /wp-admin/edit.php | 2,250 ▲158 | 2.07 ▲0.07 | 40.32 ▲4.76 | 34.88 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,657 ▲124 | 19.97 ▼3.60 | 621.15 ▼63.97 | 53.57 ▼13.70 |
Media Library /wp-admin/upload.php | 1,534 ▲149 | 4.19 ▼0.02 | 99.58 ▼0.36 | 71.43 ▲29.11 |
All Shifts /wp-admin/edit.php?post_type=shift | 1,285 | 2.03 | 35.30 | 37.09 |
Job Categories /wp-admin/edit-tags.php?taxonomy=job_category&post_type=job | 1,416 | 2.35 | 27.54 | 35.03 |
Add New /wp-admin/post-new.php?post_type=job | 1,691 | 16.89 | 843.04 | 34.18 |
Add New /wp-admin/post-new.php?post_type=expense | 972 | 1.70 | 10.59 | 4.13 |
Shift Statuses /wp-admin/edit-tags.php?taxonomy=shift_status&post_type=shift | 1,633 | 2.47 | 29.29 | 36.69 |
Instructions /wp-admin/admin.php?page=instructions | 1,306 | 2.10 | 25.95 | 44.83 |
Expense Categories /wp-admin/edit-tags.php?taxonomy=expense_category&post_type=expense | 1,575 | 2.35 | 30.02 | 35.61 |
All Expenses /wp-admin/edit.php?post_type=expense | 1,246 | 2.00 | 39.10 | 32.68 |
All Jobs /wp-admin/edit.php?post_type=job | 1,216 | 2.01 | 37.95 | 33.93 |
Shiftee Basic /wp-admin/admin.php?page=shiftee | 2,188 | 1.88 | 29.67 | 34.27 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_p2pmeta
- wp_p2p
- Zombie WordPress options detected upon uninstall: 14 options
- p2p_storage
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- wpaesm_options
- widget_theysaidso_widget
- shift_type_children
- widget_p2p
- expense_status_children
- expense_category_children
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=shiftee
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/post-new.php?post_type=expense
- > Compile error in wp-content/plugins/employee-scheduler/libraries/cmb2/includes/types/CMB2_Type_Text_Date.php+15
Declaration of CMB2_Type_Text_Date::render() must be compatible with CMB2_Type_Text::render($args = Array)
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/employee-scheduler/public/partials/shiftee-public-display.php
- 91× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/employee-scheduler/libraries/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/employee-scheduler/libraries/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/employee-scheduler/public/partials/single-shift.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/employee-scheduler/admin/partials/metabox-shift.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/employee-scheduler/libraries/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/employee-scheduler/libraries/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/employee-scheduler/admin/partials/metabox-job.php:6
- > PHP Fatal error
Uncaught Error: Class 'P2P_Factory' not found in wp-content/plugins/employee-scheduler/libraries/wpp2p/admin/box-factory.php:5
- > PHP Fatal error
Uncaught Error: Class 'P2P_Indeterminate_Connection_Type' not found in wp-content/plugins/employee-scheduler/libraries/wpp2p/reciprocal-connection-type.php:3
- > PHP Fatal error
Uncaught Error: Class 'P2P_Side' not found in wp-content/plugins/employee-scheduler/libraries/wpp2p/side-user.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
employee-scheduler/employee-scheduler.php Passed 13 tests
The primary PHP file in "Shiftee Basic - Employee and Staff Scheduling" version 2.2.2 is used by WordPress to initiate all plugin functionality
120 characters long description:
Complete staff schedule management system: create and display schedule, let employees clock in and out, report expenses.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected79,231 lines of code in 427 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 122 | 13,800 | 17,904 | 31,621 |
JavaScript | 89 | 5,316 | 2,875 | 19,548 |
PHP | 158 | 5,550 | 10,966 | 18,954 |
CSS | 24 | 1,736 | 1,505 | 6,994 |
Sass | 15 | 291 | 25 | 1,330 |
Markdown | 6 | 226 | 0 | 642 |
HTML | 11 | 7 | 0 | 107 |
JSON | 2 | 0 | 0 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 18.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 151 | |
▷ Abstract classes | 20 | 13.25% |
▷ Concrete classes | 131 | 86.75% |
▷ Final classes | 0 | 0.00% |
Methods | 1,320 | |
▷ Static methods | 189 | 14.32% |
▷ Public methods | 1,091 | 82.65% |
▷ Protected methods | 175 | 13.26% |
▷ Private methods | 54 | 4.09% |
Functions | 86 | |
▷ Named functions | 86 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 43 | |
▷ Global constants | 26 | 60.47% |
▷ Class constants | 17 | 39.53% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
39 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libraries/fullcalendar/lib/cupertino/images/ui-bg_highlight-soft_25_ffef8f_1x100.png | 0.36KB | 0.17KB | ▼ 53.41% |
libraries/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
libraries/fullcalendar/lib/cupertino/images/ui-bg_glass_80_d7ebf9_1x400.png | 0.39KB | 0.16KB | ▼ 60.40% |
libraries/Tax-meta-class/images/remove.png | 2.15KB | 1.67KB | ▼ 22.25% |
libraries/fullcalendar/lib/cupertino/images/ui-bg_highlight-hard_70_000000_1x100.png | 0.30KB | 0.16KB | ▼ 48.06% |