Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▼2.12ms] Passed 4 tests
This is a short check of server-side resources used by Freshdesk (official)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.78 | 43.04 ▲6.31 |
Dashboard /wp-admin | 3.60 ▲0.30 | 42.98 ▼4.11 |
Posts /wp-admin/edit.php | 3.79 ▲0.42 | 47.85 ▼3.51 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 81.27 ▼7.17 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 53.59 ▲17.66 |
Add Client /wp-admin/admin.php?page=wo_add_client | 3.56 | 33.84 |
Settings /wp-admin/admin.php?page=wo_settings | 3.56 | 34.19 |
Basic Settings /wp-admin/admin.php?page=freshdesk-menu-handle | 3.56 | 32.53 |
Edit Clients /wp-admin/admin.php?page=wo_edit_client | 3.56 | 32.86 |
SSO Integration /wp-admin/admin.php?page=wo_manage_clients | 3.58 | 35.18 |
Server storage [IO: ▲1.29MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 124 new files
Database: 6 new tables, 8 new options
New tables |
---|
wp_oauth_jwt |
wp_oauth_public_keys |
wp_oauth_refresh_tokens |
wp_oauth_scopes |
wp_oauth_authorization_codes |
wp_oauth_access_tokens |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
wo_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
wpoauth_version |
Browser metrics Passed 4 tests
A check of browser resources used by Freshdesk (official)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲91 | 13.42 ▼1.13 | 1.54 ▼0.10 | 45.73 ▲5.79 |
Dashboard /wp-admin | 2,238 ▲50 | 5.20 ▲0.17 | 103.98 ▲2.21 | 40.67 ▼2.79 |
Posts /wp-admin/edit.php | 2,124 ▲53 | 2.34 ▲0.29 | 34.01 ▼0.74 | 40.33 ▲3.61 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 23.36 ▲0.25 | 658.09 ▼59.30 | 60.33 ▲3.56 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.42 ▲0.21 | 99.02 ▼4.78 | 45.93 ▼1.10 |
Add Client /wp-admin/admin.php?page=wo_add_client | 921 | 2.23 | 26.59 | 42.86 |
Settings /wp-admin/admin.php?page=wo_settings | 1,075 | 2.37 | 33.07 | 51.65 |
Basic Settings /wp-admin/admin.php?page=freshdesk-menu-handle | 868 | 1.88 | 27.00 | 27.56 |
Edit Clients /wp-admin/admin.php?page=wo_edit_client | 778 | 1.92 | 24.80 | 19.40 |
SSO Integration /wp-admin/admin.php?page=wo_manage_clients | 938 | 2.10 | 25.98 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
- Zombie tables were found after uninstall: 6 tables
- wp_oauth_scopes
- wp_oauth_refresh_tokens
- wp_oauth_authorization_codes
- wp_oauth_jwt
- wp_oauth_access_tokens
- wp_oauth_public_keys
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- wo_options
- db_upgraded
- wpoauth_version
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/freshdesk-support/oauth/wp-oauth-server.php
- > /wp-content/plugins/freshdesk-support/oauth/library/class-wo-table.php
- > /wp-content/plugins/freshdesk-support/oauth/includes/admin/tabs/support.php
- > /wp-content/plugins/freshdesk-support/oauth/includes/functions.php
- > /wp-content/plugins/freshdesk-support/oauth/includes/admin/tabs/license.php
- > /wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/Server.php
- > /wp-content/plugins/freshdesk-support/oauth/wp-oauth-main.php
- > /wp-content/plugins/freshdesk-support/oauth/library/class-wo-api.php
- 57× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPOAuth2\\ResponseType\\AccessToken' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/ResponseType/JwtAccessToken.php:13
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\Storage\\AuthorizationCodeInterface' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/Storage/Mongo.php:19
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\Storage\\JwtAccessTokenInterface' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/Storage/JwtAccessToken.php:12
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\TokenType\\TokenTypeInterface' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/TokenType/Bearer.php:11
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\Storage\\AuthorizationCodeInterface' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/Storage/Redis.php:18
- > PHP Fatal error
Uncaught Error: Class 'WPOAuth2\\Controller\\ResourceController' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/OpenID/Controller/UserInfoController.php:17
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\GrantType\\GrantTypeInterface' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/GrantType/RefreshToken.php:14
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\ResponseType\\ResponseTypeInterface' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/ResponseType/AuthorizationCodeInterface.php:9
- > PHP Fatal error
Uncaught Error: Class 'WPOAuth2\\ResponseType\\AccessToken' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/ResponseType/CryptoToken.php:16
- > PHP Fatal error
Uncaught Error: Interface 'WPOAuth2\\Controller\\TokenControllerInterface' not found in wp-content/plugins/freshdesk-support/oauth/library/WPOAuth2/Controller/TokenController.php:17
- > PHP Fatal error
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/admin.php?page=freshdesk-menu-handle
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'checked')" "TypeError: Cannot read properties of null (reading 'checked')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/freshdesk-support/public/js/freshdesk_plugin_js.js?ver=6.3.1:63:53)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=freshdesk-menu-handle
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading 'checked')
Optimizations
Plugin configuration 93% 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
6 plugin tags: customer support software, freshdesk, knowledge base, freshdesk ticket, helpdesk...
freshdesk-support/fresh-desk.php 85% from 13 tests
This is the main PHP file of "Freshdesk (official)" version 2.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("freshdesk-support.php" instead of "fresh-desk.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected9,108 lines of code in 107 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 97 | 2,135 | 3,505 | 7,987 |
CSS | 3 | 103 | 164 | 779 |
JavaScript | 5 | 39 | 46 | 213 |
PO File | 1 | 40 | 43 | 128 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 33 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 45 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 584 | |
▷ Static methods | 6 | 1.03% |
▷ Public methods | 512 | 87.67% |
▷ Protected methods | 56 | 9.59% |
▷ Private methods | 16 | 2.74% |
Functions | 70 | |
▷ Named functions | 67 | 95.71% |
▷ Anonymous functions | 3 | 4.29% |
Constants | 20 | |
▷ Global constants | 9 | 45.00% |
▷ Class constants | 11 | 55.00% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.66MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
oauth/assets/images/openid-config-json.png | 104.42KB | 32.10KB | ▼ 69.26% |
public/assets/screenshot-2.png | 303.53KB | 87.43KB | ▼ 71.20% |
public/images/fd-menulogog.png | 1.34KB | 0.71KB | ▼ 46.95% |
public/assets/screenshot-1.png | 254.82KB | 50.86KB | ▼ 80.04% |
public/images/fd-menulogow.png | 1.31KB | 0.71KB | ▼ 45.72% |