Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/ticket-press/includes/tp-install.php+26
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.23MB] [CPU: ▼1.93ms] Passed 4 tests
Analyzing server-side resources used by TicketPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.69 ▼1.07 |
Dashboard /wp-admin | 3.53 ▲0.23 | 50.10 ▼3.85 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 58.59 ▲5.05 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 92.43 ▼1.21 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 39.85 ▼1.57 |
Add New /wp-admin/post-new.php?post_type=tp-tickets | 3.67 | 60.28 |
Tickets /wp-admin/edit.php?post_type=tp-tickets | 3.50 | 49.48 |
Scope /wp-admin/edit-tags.php?taxonomy=tp-ticket-scope&post_type=tp-tickets | 3.45 | 44.73 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
tp_general |
widget_recent-posts |
tp_display |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TicketPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 14.76 ▲0.35 | 1.89 ▼0.14 | 50.30 ▲6.82 |
Dashboard /wp-admin | 2,225 ▲37 | 5.85 ▼0.05 | 106.29 ▼4.22 | 46.75 ▼9.28 |
Posts /wp-admin/edit.php | 2,132 ▲40 | 2.03 ▼0.02 | 40.79 ▼2.61 | 37.74 ▼6.29 |
Add New Post /wp-admin/post-new.php | 1,570 ▲51 | 23.11 ▲1.97 | 699.81 ▼19.57 | 51.44 ▲3.08 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.16 ▲0.05 | 114.16 ▼3.71 | 50.30 ▼2.24 |
Add New /wp-admin/post-new.php?post_type=tp-tickets | 2,661 | 7.79 | 204.98 | 75.03 |
Tickets /wp-admin/edit.php?post_type=tp-tickets | 1,143 | 2.01 | 37.84 | 32.43 |
Scope /wp-admin/edit-tags.php?taxonomy=tp-ticket-scope&post_type=tp-tickets | 1,305 | 2.14 | 32.23 | 31.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-posts
- tp_display
- can_compress_scripts
- tp_general
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
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)
Good news, no errors were detected
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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ticket-press/unistall.php
- > /wp-content/plugins/ticket-press/ticketpress.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function have_comments() in wp-content/plugins/ticket-press/templates/ticket-comments.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ticket-press/includes/functions.helpers.php:115
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ticket-press/templates/no-access.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ticket-press/templates/new-ticket.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ticket-press/includes/form_actions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ticket-press/templates/single-ticket.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_ticket_arguments() in wp-content/plugins/ticket-press/templates/my-tickets.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 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
8 plugin tags: ticket system, ticket press, wp support, support system, support...
ticket-press/ticketpress.php 77% from 13 tests
The principal PHP file in "TicketPress" v. 1.4.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("ticket-press.php" instead of "ticketpress.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,374 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 153 | 13 | 968 |
CSS | 3 | 61 | 12 | 406 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin