Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/easy-wp-tickets/easywptickets.php+16
include_once(includes/crm-admin-agents.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼1.89MB] [CPU: ▼190.87ms] Passed 4 tests
Analyzing server-side resources used by Easy WP Tickets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 9.34 ▼12.18 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.39 ▼42.11 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 4.64 ▼42.06 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 6.10 ▼642.45 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 5.16 ▼36.84 |
Server storage [IO: ▲0.18MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: 4 new tables, no new options
New tables |
---|
crm_subjects |
crm_tracing |
crm_tickets |
crm_config |
Browser metrics Passed 4 tests
A check of browser resources used by Easy WP Tickets
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,759 ▲163 | 16.11 ▲0.58 | 9.70 ▼1.08 | 50.49 ▲3.49 |
Dashboard /wp-admin | 3,006 ▲75 | 5.93 ▼0.18 | 159.16 ▲3.98 | 123.63 ▲16.20 |
Posts /wp-admin/edit.php | 2,803 ▲64 | 2.70 ▼0.01 | 81.68 ▲15.54 | 89.16 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,533 ▲35 | 18.36 ▼0.44 | 363.94 ▼14.95 | 110.23 ▲5.57 |
Media Library /wp-admin/upload.php | 1,868 ▲61 | 5.06 ▲0.03 | 143.54 ▼11.05 | 131.55 ▲3.58 |
Tickets /wp-admin/easywptickets.php?page=tickets | 26 | 0.90 | 0.10 | 13.31 |
Asuntos /wp-admin/easywptickets.php?page=subjects | 26 | 0.90 | 0.06 | 9.04 |
Configuración /wp-admin/easywptickets.php?page=config | 26 | 0.90 | 0.06 | 9.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/easy-wp-tickets/easywptickets.php+16
include_once(includes/crm-admin-agents.php): failed to open stream: No such file or directory
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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: mode in wp-content/plugins/easy-wp-tickets/custom/frontend-custom-agents.php on line 22
- > PHP Warning
include_once(): Failed opening 'includes/crm-admin-agents.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-wp-tickets/easywptickets.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_settings() in wp-content/plugins/easy-wp-tickets/includes/crm_motor_functions.php:16
- > PHP Warning
include_once(includes/crm-admin-agents.php): failed to open stream: No such file or directory in wp-content/plugins/easy-wp-tickets/easywptickets.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function showSupportTicketTable() in wp-content/plugins/easy-wp-tickets/custom/frontend-custom-agents.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_settings() in wp-content/plugins/easy-wp-tickets/includes/crm_motor_functions.php:16
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/easywptickets.php?page=tickets
- > Network (severe)
wp-admin/easywptickets.php?page=tickets - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/easywptickets.php?page=subjects
- > Network (severe)
wp-admin/easywptickets.php?page=subjects - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/easywptickets.php?page=config
- > Network (severe)
wp-admin/easywptickets.php?page=config - 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
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== easy-wp-tickets ===
)
easy-wp-tickets/easywptickets.php 92% from 13 tests
The primary PHP file in "Easy WP Tickets" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-wp-tickets.php" instead of "easywptickets.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,844 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 322 | 243 | 1,893 |
PO File | 2 | 178 | 264 | 389 |
CSS | 2 | 79 | 14 | 316 |
JavaScript | 3 | 4 | 0 | 246 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 55 | |
▷ Named functions | 55 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 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 |
img/icons/icon-notification.png | 1.53KB | 0.58KB | ▼ 62.09% |
img/icons/icon-close-lock.png | 0.28KB | 0.37KB | 0.00% |
img/icons/cromo-tickets-icon.png | 0.43KB | 0.39KB | ▼ 9.34% |
js/tinyeditor/images/icons.png | 15.88KB | 5.44KB | ▼ 65.72% |
img/icons/icon-open-ticket.png | 0.33KB | 0.25KB | ▼ 23.95% |