Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wdesk/shortcode/recover.php+3
session_start(): A session had already been started - ignoring
Server metrics [RAM: ▼1.78MB] [CPU: ▼56.77ms] Passed 4 tests
An overview of server-side resources used by wdesk
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.26 | 6.84 ▼34.48 |
Dashboard /wp-admin | 2.23 ▼1.08 | 7.37 ▼45.68 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 7.41 ▼42.69 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 6.51 ▼104.21 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 7.44 ▼27.35 |
Tags /wp-admin/admin.php?page=wdesk_tags | 2.23 | 6.81 |
Departments /wp-admin/admin.php?page=wdesk_departments | 2.23 | 8.19 |
Tickets /wp-admin/admin.php?page=wdesk_tickets | 2.23 | 7.21 |
Reports /wp-admin/admin.php?page=wdesk_reports | 2.23 | 6.75 |
Settings /wp-admin/admin.php?page=wdesk_settings | 2.23 | 6.93 |
Server storage [IO: ▲0.12MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 37 new files
Database: 8 new tables, 12 new options
New tables |
---|
wdesk_blocklist_email_providers |
wdesk_departments_agents |
wdesk_tags |
wdesk_tickets |
wdesk_users |
wdesk_tickets_threads |
wdesk_departments |
wdesk_blocklist_emails |
New WordPress options |
---|
widget_recent-posts |
wdesk_max_subject |
db_upgraded |
wdesk_sender |
wdesk_name |
widget_theysaidso_widget |
wdesk_max_thread |
can_compress_scripts |
theysaidso_admin_options |
wdesk_url |
... |
Browser metrics Passed 4 tests
wdesk: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.34 ▼0.01 | 1.62 ▼0.15 | 42.90 ▲0.53 |
Dashboard /wp-admin | 2,233 ▲53 | 5.59 ▼0.08 | 87.43 ▼1.88 | 41.26 ▼1.43 |
Posts /wp-admin/edit.php | 2,135 ▲38 | 2.01 ▲0.03 | 37.83 ▼0.16 | 35.91 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 21.93 ▼1.14 | 667.72 ▼10.73 | 55.00 ▲0.66 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.22 ▲0.03 | 98.08 ▼5.03 | 45.51 ▲3.03 |
Tags /wp-admin/admin.php?page=wdesk_tags | 847 | 2.03 | 27.71 | 29.98 |
Departments /wp-admin/admin.php?page=wdesk_departments | 849 | 2.03 | 23.90 | 26.85 |
Tickets /wp-admin/admin.php?page=wdesk_tickets | 858 | 2.01 | 23.98 | 28.23 |
Reports /wp-admin/admin.php?page=wdesk_reports | 839 | 2.02 | 22.82 | 27.23 |
Settings /wp-admin/admin.php?page=wdesk_settings | 1,090 | 2.00 | 21.60 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wdesk/shortcode/recover.php+3
session_start(): A session had already been started - ignoring
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wdesk_tickets
- wdesk_departments
- Zombie WordPress options were found after uninstall: 12 options
- widget_recent-posts
- wdesk_sender
- wdesk_max_subject
- wdesk_date_format
- wdesk_max_thread
- can_compress_scripts
- wdesk_url
- theysaidso_admin_options
- db_upgraded
- wdesk_name
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wdesk_settings
- > Notice in wp-content/plugins/wdesk/shortcode/guest.php+3
session_start(): A session had already been started - ignoring
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wdesk_reports
- > User deprecated in wp-includes/functions.php+5737
Function WP_User->id was called with an argument that is deprecated since version 2.1.0! Use WP_User->ID instead.
SRP 0% 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
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wdesk/shortcode/sign-in.php
- > /wp-content/plugins/wdesk/shortcode/components/scripts/masks.php
- > /wp-content/plugins/wdesk/shortcode/access.php
- > /wp-content/plugins/wdesk/shortcode/log-in.php
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(WDESK_LOCALadmin/tickets/html.php): failed to open stream: No such file or directory in wp-content/plugins/wdesk/admin/tickets/tickets.php on line 2
- > PHP Warning
require_once(WDESK_LOCALadmin/reports/html.php): failed to open stream: No such file or directory in wp-content/plugins/wdesk/admin/reports/reports.php on line 2
- > PHP Warning
Use of undefined constant WDESK_LOCAL - assumed 'WDESK_LOCAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wdesk/script/script.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WDESK_LOCALadmin/departments/html.php' (include_path='.:/usr/share/php') in wp-content/plugins/wdesk/admin/departments/departments.php on line 2
- > PHP Warning
Use of undefined constant WDESK_LOCAL - assumed 'WDESK_LOCAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wdesk/admin/settings/settings.php on line 2
- > PHP Warning
Use of undefined constant WDESK_LOCAL - assumed 'WDESK_LOCAL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wdesk/shortcode/shortcode.php on line 2
- > PHP Warning
require_once(WDESK_LOCALadmin/departments/html.php): failed to open stream: No such file or directory in wp-content/plugins/wdesk/admin/departments/departments.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WDESK_LOCALadmin/tags/html.php' (include_path='.:/usr/share/php') in wp-content/plugins/wdesk/admin/tags/tags.php on line 2
- > PHP Warning
require_once(WDESK_LOCALadmin/settings/html.php): failed to open stream: No such file or directory in wp-content/plugins/wdesk/admin/settings/settings.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'WDESK_LOCALscript/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wdesk/script/script.php on line 2
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: helpdesk, support
wdesk/index.php 92% from 13 tests
The main PHP script in "wdesk" version 0.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wdesk.php" instead of "index.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
Good job! No executable or dangerous file extensions detected2,323 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 85 | 103 | 1,991 |
PO File | 1 | 115 | 161 | 249 |
Markdown | 1 | 16 | 0 | 83 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 40 | |
▷ Named functions | 40 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin