Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/key4ce-osticket-bridge/ost-bridge.php+174
extract() expects parameter 1 to be array, bool given
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.77ms] Passed 4 tests
A check of server-side resources used by Key4ce osTicket Bridge
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.30 ▼2.37 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.46 ▼1.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.20 ▲0.78 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.22 ▼6.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.08 ▼1.05 |
Server storage [IO: ▲3.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 148 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Key4ce osTicket Bridge
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.22 | 1.73 ▲0.02 | 44.05 ▲2.39 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.09 | 83.82 ▼4.84 | 40.52 ▼0.60 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 41.54 ▲4.66 | 37.71 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.89 ▼0.20 | 644.73 ▼57.99 | 52.90 ▼2.28 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.21 ▲0.06 | 96.25 ▼12.09 | 44.99 ▲0.03 |
Uninstaller [IO: ▲3.50MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsThis plugin did not uninstall successfully, leaving 6 options in the database
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/key4ce-osticket-bridge/ost-bridge.php+174
extract() expects parameter 1 to be array, bool given
- This plugin has failed uninstalling correctly, leaving 148 files (3.50MB) in the plugin directory
- (new file) admin/ost-config.php
- (new file) admin/ost-departments.php
- (new file) admin/ost-kb.php
- (new file) admin/adminticketmail.php
- (new file) admin/admin_create_ticket.php
- (new file) admin/ost-emailtemp.php
- (new file) admin/index.php
- (new file) admin/header_nav.php
- (new file) admin/header_nav_ticket.php
- (new file) admin/db-settings.php
- ...
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/key4ce-osticket-bridge/includes/udscript.php
- > /wp-content/plugins/key4ce-osticket-bridge/templates/pagination.php
- > /wp-content/plugins/key4ce-osticket-bridge/includes/pagination.php
- > /wp-content/plugins/key4ce-osticket-bridge/lib/attachment/download.php
- 91× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: currentpage in wp-content/plugins/key4ce-osticket-bridge/templates/pagination.php on line 16
- > PHP Notice
Undefined variable: currentpage in wp-content/plugins/key4ce-osticket-bridge/templates/pagination.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/key4ce-osticket-bridge/templates/message.php:6
- > 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/key4ce-osticket-bridge/admin/ost-emailtemp.php on line 7
- > PHP Notice
Undefined variable: keyost_usercloseticket in wp-content/plugins/key4ce-osticket-bridge/templates/list_tickets.php on line 126
- > PHP Notice
Undefined variable: currentpage in wp-content/plugins/key4ce-osticket-bridge/includes/pagination.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/key4ce-osticket-bridge/templates/contact_nav_bar.php:2
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/key4ce-osticket-bridge/templates/kb_nav_bar.php' (include_path='.:/usr/share/php') in wp-content/plugins/key4ce-osticket-bridge/templates/knowledgebase.php on line 4
- > PHP Warning
require_once(WP_PLUGIN_DIR/key4ce-osticket-bridge/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/key4ce-osticket-bridge/admin/ost-ticketview.php on line 2
- > 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/key4ce-osticket-bridge/admin/ost-licensekey.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Shows the Client ticket list.), #2 (Shows how the client views the ticket.), #3 (Shows how the Wordpress admin views the ticket list.), #4 (Shows how the Wordpress admin views the), #5 (Shows the [addoscontact] shortcode forms), #6 (HTML Email template example (with signature).)
key4ce-osticket-bridge/ost-bridge.php 92% from 13 tests
Analyzing the main PHP file in "Key4ce osTicket Bridge" version 1.4.0
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("key4ce-osticket-bridge.php" instead of "ost-bridge.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected37,280 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 27 | 5,998 | 10,349 | 26,470 |
PHP | 43 | 145 | 147 | 4,681 |
CSS | 23 | 94 | 175 | 4,247 |
PO File | 5 | 1,007 | 804 | 1,594 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 64 | |
▷ Named functions | 63 | 98.44% |
▷ Anonymous functions | 1 | 1.56% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
28 PNG files occupy 0.57MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 67.99KB | 33.01KB | ▼ 51.44% |
images/status.png | 1.58KB | 0.97KB | ▼ 38.58% |
icons/search.png | 0.38KB | 0.40KB | 0.00% |
icons/down.png | 2.94KB | 0.23KB | ▼ 92.16% |
screenshot-2.png | 128.21KB | 54.17KB | ▼ 57.75% |