Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.56ms] Passed 4 tests
Analyzing server-side resources used by TD Ticket System
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 48.93 ▲2.74 |
Dashboard /wp-admin | 3.52 ▲0.17 | 65.28 ▼3.66 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 55.68 ▲6.10 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 88.22 ▼14.25 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.45 ▲0.93 |
Templates /wp-admin/admin.php?page=tdtts10_2 | 3.42 | 40.67 |
Ticket System /wp-admin/admin.php?page=tdtts10 | 3.41 | 38.20 |
Settings /wp-admin/admin.php?page=tdtts10_1 | 3.41 | 32.40 |
Server storage [IO: ▲0.16MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 30 new files
Database: 4 new tables, 13 new options
New tables |
---|
wp_td_tts_messages |
wp_td_tts_departments |
wp_td_tts_responses |
wp_td_tts_settings |
New WordPress options |
---|
widget_theysaidso_widget |
td_tts_styles |
can_compress_scripts |
td_tts_contactForm |
td_tts_loginForm |
theysaidso_admin_options |
td_tts_successPage |
td_tts_db_version |
widget_recent-posts |
td_tts_responsenote |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for TD Ticket System
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲195 | 13.65 ▼0.72 | 12.10 ▲9.83 | 42.79 ▲2.31 |
Dashboard /wp-admin | 2,227 ▲47 | 5.76 ▲0.23 | 90.63 ▼0.61 | 79.01 ▲38.87 |
Posts /wp-admin/edit.php | 2,140 ▲37 | 2.22 ▲0.21 | 35.15 ▼2.63 | 40.08 ▲2.21 |
Add New Post /wp-admin/post-new.php | 1,571 ▲167 | 18.20 ▼0.20 | 644.39 ▲7.79 | 166.85 ▲119.45 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.51 ▲0.29 | 101.01 ▼48.92 | 73.44 ▲9.71 |
Templates /wp-admin/admin.php?page=tdtts10_2 | 939 | 1.91 | 26.70 | 30.09 |
Ticket System /wp-admin/admin.php?page=tdtts10 | 867 | 1.93 | 33.01 | 27.92 |
Settings /wp-admin/admin.php?page=tdtts10_1 | 1,009 | 1.92 | 28.45 | 31.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 4 tables
- wp_td_tts_messages
- wp_td_tts_responses
- wp_td_tts_settings
- wp_td_tts_departments
- This plugin did not uninstall successfully, leaving 13 options in the database
- td_tts_notification
- td_tts_db_version
- can_compress_scripts
- db_upgraded
- td_tts_responsenote
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- td_tts_contactForm
- td_tts_styles
- ...
Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/td-ticket-system/includes/default_responsenotification.php
- > /wp-content/plugins/td-ticket-system/includes/default_emailnotification.php
- > /wp-content/plugins/td-ticket-system/includes/default_form.php
- > /wp-content/plugins/td-ticket-system/includes/default_success.php
- > /wp-content/plugins/td-ticket-system/includes/default_login.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/td-ticket-system/td-ticketsystem.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tdtts10_1
- > Network (severe)
http://../wp-content/plugins/td-ticket-system/images/icon.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tdtts10_1
- > Network (severe)
wp-admin/%3C?%20echo%20TDPLUGINURL%20?%3Eincludes/smoothness/jquery-ui-1.10.4.custom.min.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== td-ticket-system ===
)
td-ticket-system/td-ticketsystem.php 92% from 13 tests
This is the main PHP file of "TD Ticket System" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("td-ticket-system.php" instead of "td-ticketsystem.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
Success! There were no dangerous files found in this plugin2,120 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 185 | 179 | 1,396 |
CSS | 3 | 23 | 35 | 658 |
JavaScript | 1 | 2 | 0 | 66 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.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 | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.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 | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
includes/smoothness/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
includes/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
includes/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
includes/smoothness/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |