Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▲12.42ms] Passed 4 tests
A check of server-side resources used by Nirweb support
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 47.01 ▲4.78 |
Dashboard /wp-admin | 3.53 ▲0.22 | 66.60 ▲13.53 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 76.82 ▲28.36 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 106.53 ▲16.59 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 52.08 ▲14.76 |
All tickets /wp-admin/admin.php?page=nirweb_ticket_manage_tickets&tab=all_ticket | 3.62 | 56.30 |
Tickets0 /wp-admin/admin.php?page=nirweb_ticket_manage_tickets | 3.61 | 56.54 |
Create ticket /wp-admin/admin.php?page=nirweb_ticket_send_ticket | 3.60 | 59.57 |
Departments /wp-admin/admin.php?page=nirweb_ticket_department_ticket | 3.44 | 52.41 |
Settings /wp-admin/admin.php?page=nirweb_ticket_settings | 3.57 | 66.37 |
List of uploaded files /wp-admin/admin.php?page=nirweb_ticket_uploads_file | 3.43 | 52.00 |
Canned replies /wp-admin/edit.php?post_type=pre_answer_wpyticket | 3.49 | 56.26 |
FAQ /wp-admin/admin.php?page=nirweb_ticket_FAQ_ticket | 3.49 | 57.25 |
Server storage [IO: ▲2.62MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 90 new files
Database: 7 new tables, 6 new options
New tables |
---|
wp_nirweb_ticket_ticket_user_upload |
wp_nirweb_ticket_ticket_faq |
wp_nirweb_ticket_ticket_department |
wp_nirweb_ticket_ticket_status |
wp_nirweb_ticket_ticket_priority |
wp_nirweb_ticket_ticket |
wp_nirweb_ticket_ticket_answered |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Nirweb support
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲148 | 13.85 ▼0.57 | 6.08 ▲4.26 | 41.94 ▼2.40 |
Dashboard /wp-admin | 2,266 ▲60 | 5.23 ▲0.40 | 115.74 ▲4.19 | 42.24 ▼0.04 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.34 ▲0.33 | 39.95 ▲2.84 | 34.36 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,574 ▲32 | 23.26 ▲5.17 | 614.78 ▲18.26 | 54.00 ▲4.44 |
Media Library /wp-admin/upload.php | 1,451 ▲66 | 4.52 ▲0.27 | 98.41 ▼2.28 | 43.76 ▲0.29 |
All tickets /wp-admin/admin.php?page=nirweb_ticket_manage_tickets&tab=all_ticket | 1,100 | 1.88 | 28.04 | 30.92 |
Tickets0 /wp-admin/admin.php?page=nirweb_ticket_manage_tickets | 1,100 | 1.87 | 27.70 | 32.11 |
Create ticket /wp-admin/admin.php?page=nirweb_ticket_send_ticket | 1,805 | 6.98 | 144.87 | 58.13 |
Departments /wp-admin/admin.php?page=nirweb_ticket_department_ticket | 920 | 1.87 | 27.52 | 23.87 |
Settings /wp-admin/admin.php?page=nirweb_ticket_settings | 11,244 | 12.52 | 375.74 | 133.54 |
List of uploaded files /wp-admin/admin.php?page=nirweb_ticket_uploads_file | 886 | 1.88 | 28.18 | 29.64 |
Canned replies /wp-admin/edit.php?post_type=pre_answer_wpyticket | 1,110 | 2.28 | 33.63 | 29.62 |
FAQ /wp-admin/admin.php?page=nirweb_ticket_FAQ_ticket | 1,560 | 6.81 | 123.95 | 39.62 |
Uninstaller [IO: ✅] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 tables in the database
- wp_nirweb_ticket_ticket_faq
- wp_nirweb_ticket_ticket_answered
- wp_nirweb_ticket_ticket
- wp_nirweb_ticket_ticket_department
- wp_nirweb_ticket_ticket_user_upload
- wp_nirweb_ticket_ticket_priority
- wp_nirweb_ticket_ticket_status
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 62× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/nirweb-support/core/settings/box_3_p.php:4
- > PHP Warning
Use of undefined constant NIRWEB_SUPPORT_INC_ADMIN_FUNCTIONS_TICKET - assumed 'NIRWEB_SUPPORT_INC_ADMIN_FUNCTIONS_TICKET' (this will throw an Error in a future version of PHP) in wp-content/plugins/nirweb-support/inc/admin/themes/department.php on line 1
- > PHP Warning
Use of undefined constant NIRWEB_SUPPORT_INC_USER_FUNCTIONS_TICKET - assumed 'NIRWEB_SUPPORT_INC_USER_FUNCTIONS_TICKET' (this will throw an Error in a future version of PHP) in wp-content/plugins/nirweb-support/inc/user/themes/home.php on line 2
- > PHP Fatal error
require(): Failed opening required 'NIRWEB_SUPPORT_INC_ADMIN_FUNCTIONS_TICKETfunc_list_tickets.php' (include_path='.:/usr/share/php') in wp-content/plugins/nirweb-support/inc/admin/themes/process_ticket.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/nirweb-support/core/settings/css.php:4
- > PHP Warning
require(NIRWEB_SUPPORT_INC_ADMIN_FUNCTIONS_TICKETfunc_upload_file.php): failed to open stream: No such file or directory in wp-content/plugins/nirweb-support/inc/admin/themes/file_uploads.php on line 2
- > PHP Warning
Use of undefined constant NIRWEB_SUPPORT_INC_ADMIN_FUNCTIONS_TICKET - assumed 'NIRWEB_SUPPORT_INC_ADMIN_FUNCTIONS_TICKET' (this will throw an Error in a future version of PHP) in wp-content/plugins/nirweb-support/inc/user/themes/new_ticket.php on line 3
- > PHP Warning
require(NIRWEB_SUPPORT_INC_USER_FUNCTIONS_TICKETfunc_u_list_ticket.php): failed to open stream: No such file or directory in wp-content/plugins/nirweb-support/inc/user/themes/home.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/nirweb-support/core/settings/file.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/nirweb-support/core/settings/box_e.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: support, support ticket, ticket system, helpdesk
nirweb-support/nirweb-support.php Passed 13 tests
The primary PHP file in "Nirweb support" version 3.0.2.1 is used by WordPress to initiate all plugin functionality
101 characters long description:
NirWeb support is a great help desk and support plugin for WordPress with full support of WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin12,229 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 520 | 77 | 5,442 |
PHP | 51 | 514 | 80 | 4,943 |
PO File | 2 | 578 | 840 | 1,202 |
JavaScript | 5 | 95 | 33 | 603 |
SVG | 1 | 0 | 0 | 39 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 109 | |
▷ Named functions | 64 | 58.72% |
▷ Anonymous functions | 45 | 41.28% |
Constants | 15 | |
▷ Global constants | 15 | 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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 2.39KB | 2.39KB | 0.00% |
assets/images/defualt-logo.png | 1.87KB | 1.43KB | ▼ 23.76% |
assets/images/delete.png | 1.45KB | 1.45KB | 0.00% |
assets/images/upload.png | 1.48KB | 0.91KB | ▼ 38.44% |
assets/images/attachfile.png | 1.84KB | 1.82KB | ▼ 0.96% |