Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼12.00ms] Passed 4 tests
An overview of server-side resources used by osTicket WP Bridge
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.09 ▼0.09 |
Dashboard /wp-admin | 3.34 ▼0.00 | 48.54 ▼13.36 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.52 ▼18.87 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 86.45 ▼15.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 39.88 ▲4.47 |
osT-Settings /wp-admin/admin.php?page=ost-settings | 3.23 | 41.62 |
osT-Config /wp-admin/admin.php?page=ost-config | 3.25 | 33.19 |
Email Templates /wp-admin/admin.php?page=ost-emailtemp | 3.23 | 33.79 |
Support Tickets /wp-admin/admin.php?page=ost-tickets | 3.23 | 33.24 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ost_emailtemp |
New WordPress options |
---|
db_upgraded |
os_ticket_config |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for osTicket WP Bridge
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.26 ▼1.12 | 1.72 ▼0.14 | 43.10 ▼3.68 |
Dashboard /wp-admin | 2,240 ▲49 | 5.84 ▲0.97 | 104.25 ▼5.41 | 81.62 ▲38.69 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.04 ▲0.05 | 36.02 ▼1.48 | 34.77 ▲1.86 |
Add New Post /wp-admin/post-new.php | 1,549 ▲16 | 23.28 ▲0.04 | 754.60 ▲110.03 | 51.21 ▲6.17 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.24 ▲0.03 | 101.13 ▼5.61 | 52.52 ▲2.88 |
osT-Settings /wp-admin/admin.php?page=ost-settings | 800 | 2.02 | 26.60 | 40.74 |
osT-Config /wp-admin/admin.php?page=ost-config | 962 | 1.86 | 24.11 | 45.74 |
Email Templates /wp-admin/admin.php?page=ost-emailtemp | 782 | 2.02 | 26.84 | 28.06 |
Support Tickets /wp-admin/admin.php?page=ost-tickets | 800 | 2.01 | 23.75 | 24.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=ost-config
- > Notice in wp-content/plugins/osticket-wp-bridge/admin/header_nav.php+17
Undefined variable: active2
- > GET request to /wp-admin/admin.php?page=ost-config
- > Notice in wp-content/plugins/osticket-wp-bridge/admin/header_nav.php+18
Undefined variable: active3
- > GET request to /wp-admin/admin.php?page=ost-config
- > Notice in wp-content/plugins/osticket-wp-bridge/admin/header_nav.php+19
Undefined variable: active4
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
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/osticket-wp-bridge/includes/udscript.php
- > /wp-content/plugins/osticket-wp-bridge/templates/pagination.php
- > /wp-content/plugins/osticket-wp-bridge/includes/pagination.php
- > /wp-content/plugins/osticket-wp-bridge/templates/list_tickets.php
- 122× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: currentpage in wp-content/plugins/osticket-wp-bridge/templates/pagination.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/osticket-wp-bridge/templates/header.php:18
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/osticket-wp-bridge/admin/db-settings-17.php:12
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/osticket-wp-bridge/admin/ost-ticketview.php on line 6
- > PHP Warning
require_once(WP_PLUGIN_DIR/osticket-wp-bridge/includes/udscript.php): failed to open stream: No such file or directory in wp-content/plugins/osticket-wp-bridge/admin/ost-config.php on line 6
- > PHP Notice
Undefined index: adname in wp-content/plugins/osticket-wp-bridge/admin/ost-postreplymail.php on line 6
- > PHP Notice
Undefined variable: ticket_count_closed in wp-content/plugins/osticket-wp-bridge/templates/search.php on line 14
- > PHP Notice
Undefined variable: ost_wpdb in wp-content/plugins/osticket-wp-bridge/includes/versionData.php on line 2
- > PHP Notice
Undefined variable: currentpage in wp-content/plugins/osticket-wp-bridge/templates/pagination.php on line 10
- > PHP Notice
Undefined variable: currentpage in wp-content/plugins/osticket-wp-bridge/templates/pagination.php on line 18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: bridge, email, support, tickets, helpdesk...
osticket-wp-bridge/ost-bridge.php 92% from 13 tests
This is the main PHP file of "osTicket WP Bridge" version 1.9.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("osticket-wp-bridge.php" instead of "ost-bridge.php")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin3,669 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 160 | 219 | 2,293 |
CSS | 3 | 11 | 11 | 1,036 |
JavaScript | 5 | 48 | 58 | 340 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
11 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/refresh.png | 1.31KB | 0.49KB | ▼ 63.02% |
images/error.png | 0.71KB | 0.70KB | ▼ 1.92% |
images/new.png | 1.55KB | 0.92KB | ▼ 40.49% |
images/ok.png | 0.79KB | 0.81KB | 0.00% |
images/check_status_icon.png | 4.90KB | 2.37KB | ▼ 51.59% |