Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.28ms] Passed 4 tests
Analyzing server-side resources used by osTicket Connector
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 37.91 ▼1.07 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.16 ▼0.33 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.90 ▲3.20 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.89 ▼2.01 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.16 ▼1.71 |
osTicket Connector /wp-admin/options-general.php?page=scand-osticket-settings | 3.33 | 32.36 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
osTicket Connector: 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,806 ▲71 | 13.69 ▼0.89 | 1.55 ▼0.21 | 38.77 ▲0.91 |
Dashboard /wp-admin | 2,209 ▲20 | 5.80 ▲0.91 | 98.97 ▼19.35 | 40.12 ▼1.61 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.09 ▲0.04 | 40.32 ▼0.77 | 36.65 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,524 ▲7 | 23.40 ▲5.72 | 654.99 ▲58.22 | 58.23 ▲9.41 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.16 ▲0.00 | 95.98 ▼4.19 | 42.64 ▲0.84 |
osTicket Connector /wp-admin/options-general.php?page=scand-osticket-settings | 1,128 | 2.08 | 26.10 | 30.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/scand-osticket-connector/class-http-api.php
- > /wp-content/plugins/scand-osticket-connector/scand-osticket-connector.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/scand-osticket-connector/admin-settings.php:2
- > 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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: support, rest api, connector, osticket, http...
scand-osticket-connector/scand-osticket-connector.php Passed 13 tests
"osTicket Connector" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
Create tickets in osTicket support system via the existing contact form.
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
Good job! No executable or dangerous file extensions detected647 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 68 | 44 | 540 |
PO File | 1 | 38 | 41 | 90 |
CSS | 1 | 2 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 55.56% |
▷ Protected methods | 2 | 7.41% |
▷ Private methods | 10 | 37.04% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 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
No PNG images were found in this plugin