Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼149.15ms] Passed 4 tests
An overview of server-side resources used by yTicket for WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.11 | 39.11 ▲12.25 |
Dashboard /wp-admin | 3.10 ▲0.05 | 54.65 ▲8.13 |
Posts /wp-admin/edit.php | 3.15 ▲0.05 | 55.13 ▲3.87 |
Add New Post /wp-admin/post-new.php | 4.69 ▼0.75 | 60.26 ▼604.52 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 35.22 ▼4.06 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
yTicket for WP: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,725 ▲129 | 16.22 ▲0.27 | 12.45 ▲2.37 | 51.10 ▼10.42 |
Dashboard /wp-admin | 2,979 ▲48 | 6.07 ▲0.06 | 158.01 ▼22.78 | 141.04 ▲21.54 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.70 ▼0.00 | 69.51 ▼15.13 | 101.75 ▲8.64 |
Add New Post /wp-admin/post-new.php | 1,696 ▲13 | 16.03 ▼2.67 | 434.61 ▼13.36 | 116.49 ▼0.88 |
Media Library /wp-admin/upload.php | 1,767 ▼40 | 4.99 ▼0.05 | 150.27 ▼40.25 | 146.65 ▲22.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/yticket-for-wp/help/help-en-US.php
- > /wp-content/plugins/yticket-for-wp/functions/yt_check.php
- > /wp-content/plugins/yticket-for-wp/functions/yt_save.php
- > /wp-content/plugins/yticket-for-wp/help/help-it-IT.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yticket-for-wp/admin.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/yticket-for-wp/functions.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/yticket-for-wp/functions.php:71
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: help desk, ticket, trouble ticketing system, yticket
yticket-for-wp/index.php 85% from 13 tests
The principal PHP file in "yTicket for WP" v. 1.5.7 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("yticket-for-wp.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 141 characters long)
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
There were no executable files found in this plugin5,357 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 4,525 | 26 | 4,658 |
PHP | 11 | 78 | 79 | 417 |
JavaScript | 3 | 177 | 87 | 282 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 70 | |
▷ Global constants | 70 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 compressed PNG files occupy 0.02MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
img/yTicketicon.png | 0.71KB | 0.74KB | 0.00% |
img/block.png | 1.26KB | 0.78KB | ▼ 37.97% |