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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼3.12ms] Passed 4 tests
Analyzing server-side resources used by WP Support Ticket
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 49.15 ▲0.51 |
Dashboard /wp-admin | 3.66 ▲0.35 | 55.33 ▲2.33 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 59.35 ▲3.98 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 89.26 ▼19.28 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 43.43 ▲8.09 |
All Tickets /wp-admin/edit.php?post_type=ticket | 3.56 | 43.22 |
Add New /wp-admin/post-new.php?post_type=ticket | 3.55 | 49.59 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 79 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_support_reply_noti |
wp_support_attachment |
wp_support_reply |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Support Ticket
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲162 | 13.45 ▼0.91 | 10.63 ▲8.94 | 42.02 ▼5.12 |
Dashboard /wp-admin | 2,244 ▲67 | 5.64 ▲0.04 | 98.67 ▲4.52 | 42.88 ▼5.35 |
Posts /wp-admin/edit.php | 2,152 ▲52 | 2.00 ▼0.02 | 38.05 ▲0.75 | 35.35 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.34 ▼0.31 | 687.34 ▼20.43 | 39.60 ▼13.65 |
Media Library /wp-admin/upload.php | 1,449 ▲52 | 4.26 ▼0.01 | 114.39 ▼2.07 | 48.01 ▲0.77 |
All Tickets /wp-admin/edit.php?post_type=ticket | 1,165 | 1.93 | 32.68 | 31.36 |
Add New /wp-admin/post-new.php?post_type=ticket | 1,664 | 2.61 | 56.02 | 69.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_support_attachment
- wp_support_reply
- wp_support_reply_noti
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-support-ticket/view/admin/pro-add.php
- > /wp-content/plugins/wp-support-ticket/view/admin/recommended-add.php
- 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Form_Class' not found in wp-content/plugins/wp-support-ticket/view/admin/ticket-reply-form.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_ticket_author() on null in wp-content/plugins/wp-support-ticket/view/admin/ticket-author-form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/wp-support-ticket/support.php:30
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-support-ticket/view/frontend/ticket-create.php on line 1
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-support-ticket/support.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'Form_Class' not found in wp-content/plugins/wp-support-ticket/view/admin/ticket-status-form.php:3
- > PHP Fatal error
Uncaught Error: Class 'Form_Class' not found in wp-content/plugins/wp-support-ticket/view/frontend/reply-add-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-support-ticket/view/frontend/ticket-replies.php:20
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-support-ticket/view/admin/ticket-reply-view.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-support-ticket/view/admin/donate.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 your attention:
- Tags: Please delete some tags, you are using 22 tag instead of maximum 10
wp-support-ticket/support.php 92% from 13 tests
The main PHP script in "WP Support Ticket" version 3.4.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-support-ticket.php" instead of "support.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected3,990 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 276 | 158 | 1,575 |
CSS | 4 | 33 | 66 | 1,439 |
JavaScript | 6 | 155 | 602 | 906 |
PO File | 1 | 34 | 0 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 13 | 15.85% |
▷ Public methods | 82 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
33 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-bg_glass_100_fdf5ce_1x400.png | 0.34KB | 0.16KB | ▼ 54.02% |
assets/images/ui-icons_ef8c08_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/images/ui-bg_flat_15_cd0a0a_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
assets/images/ui-bg_highlight-hard_100_f2f5f7_1x100.png | 0.32KB | 0.14KB | ▼ 56.02% |
assets/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |