Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/system-ticket-support/inc/functions/helper.php+170
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼52.91ms] Passed 4 tests
Server-side resources used by System Ticket Support
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 4.44 ▼35.09 |
Dashboard /wp-admin | 2.20 ▼1.10 | 5.88 ▼38.85 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.87 ▼43.90 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 5.76 ▼93.79 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 5.61 ▼28.68 |
Server storage [IO: ▲7.54MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 584 new files
Database: 13 new tables, 8 new options
New tables |
---|
wp_sts_template_tags |
wp_sts_notification |
wp_sts_key_mail_rate |
wp_sts_user_notification |
wp_sts_note |
wp_sts_user_attachment |
wp_sts_theme |
wp_sts_message |
wp_sts_mail_template |
wp_sts_attachment |
... |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
sts_version |
db_upgraded |
sts_support_page_id |
Browser metrics Passed 4 tests
System Ticket Support: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲81 | 13.23 ▼0.96 | 1.66 ▼0.48 | 41.32 ▼6.64 |
Dashboard /wp-admin | 2,222 ▲37 | 4.81 ▼1.08 | 109.66 ▲9.51 | 38.79 ▼1.56 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.97 ▼0.03 | 39.84 ▼1.29 | 35.66 ▲0.06 |
Add New Post /wp-admin/post-new.php | 1,546 ▲9 | 23.01 ▼0.11 | 645.28 ▲4.24 | 51.70 ▲6.92 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.16 ▼0.13 | 109.80 ▲12.09 | 46.57 ▲5.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/system-ticket-support/inc/functions/helper.php+170
Array and string offset access syntax with curly braces is deprecated
- Zombie tables detected upon uninstall: 13 tables
- wp_sts_user_attachment
- wp_sts_message
- wp_sts_mail_template
- wp_sts_note
- wp_sts_user_follow_ticket
- wp_sts_template_tags
- wp_sts_notification
- wp_sts_template
- wp_sts_theme
- wp_sts_ticket
- ...
- Zombie WordPress options were found after uninstall: 8 options
- sts_version
- sts_support_page_id
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/system-ticket-support/templates/category/status-valid.php
- > /wp-content/plugins/system-ticket-support/templates/login.php
- > /wp-content/plugins/system-ticket-support/templates/ticket-details/message-item.php
- 111× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/system-ticket-support/templates/category/category-item.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/system-ticket-support/templates/template/template-item.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/system-ticket-support/templates/ticket-details/ticket-avatar.php:1
- > PHP Notice
Undefined variable: customers in wp-content/plugins/system-ticket-support/templates/customers/customer-item.php on line 2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/system-ticket-support/templates/reports/message-item.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/system-ticket-support/templates/supporters/supporter-details.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wpautop() in wp-content/plugins/system-ticket-support/templates/ticket-details/message-content.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/system-ticket-support/templates/dashboards/ticket-item.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/system-ticket-support/templates/ticket-details/mark-process.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/system-ticket-support/templates/ticket-details/mark-follow.php:4
- > PHP Warning
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 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== system-ticket-support ===
)
system-ticket-support/system-ticket-support.php 92% from 13 tests
"System Ticket Support" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- 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
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected73,228 lines of code in 551 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 317 | 6,790 | 5,115 | 40,691 |
CSS | 37 | 1,557 | 286 | 14,660 |
PHP | 172 | 811 | 924 | 13,315 |
Sass | 23 | 815 | 8 | 4,556 |
Markdown | 2 | 1 | 0 | 6 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 101)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.30 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 101.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 267 | |
▷ Static methods | 23 | 8.61% |
▷ Public methods | 267 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
12 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/youtube.png | 5.22KB | 2.88KB | ▼ 44.83% |
assets/images/facebook.png | 5.54KB | 3.06KB | ▼ 44.64% |
assets/vendors/jquery-ui/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/vendors/jquery-ui/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
assets/vendors/jquery-ui/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |