Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.43MB] [CPU: ▼4.34ms] Passed 4 tests
Server-side resources used by Zendesk Support for Wordpress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 37.92 ▼2.57 |
Dashboard /wp-admin | 3.80 ▲0.49 | 47.61 ▼3.91 |
Posts /wp-admin/edit.php | 3.84 ▲0.49 | 49.24 ▲6.38 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 83.79 ▼17.24 |
Media Library /wp-admin/upload.php | 3.65 ▲0.43 | 37.28 ▲6.45 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
zendesk-settings |
widget_recent-posts |
widget_theysaidso_widget |
zendesk-settings-remote-auth |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Zendesk Support for Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲173 | 14.41 ▼0.12 | 1.63 ▼0.35 | 41.44 ▼1.69 |
Dashboard /wp-admin | 2,340 ▲160 | 5.79 ▲0.22 | 87.43 ▼3.18 | 84.13 ▲47.25 |
Posts /wp-admin/edit.php | 2,208 ▲105 | 2.11 ▲0.11 | 43.77 ▲1.13 | 36.69 ▼3.63 |
Add New Post /wp-admin/post-new.php | 1,612 ▲75 | 18.44 ▲0.47 | 641.88 ▲43.70 | 53.26 ▼24.41 |
Media Library /wp-admin/upload.php | 1,502 ▲105 | 4.28 ▲0.08 | 109.69 ▲14.59 | 74.86 ▲32.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(wp-content/plugins/zendesk/dev/wp-settings.php): failed to open stream: No such file or directory in wp-content/plugins/zendesk/dev/wp-config.php on line 89
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/zendesk/dev/wp-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/zendesk/dev/wp-config.php on line 89
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zendesk/zendesk-support.php:22
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: These screenshots do not have images: #1 (An overview of some of the features available in the settings page), #2 (Remote authentication, super easy to set up), #3 (Turn a comment into a ticket with ease), #4 (The comment to ticket interface), #5 (The Web Widget at its simplest, a Contact Form that creates a ticket in your Zendesk when filled out), #6 (If you have a Zendesk Help Center, the Web Widget can help deflect tickets by showing your self-service content when users search for help), #7 (The Zendesk dropbox in action)
zendesk/zendesk-support.php 92% from 13 tests
This is the main PHP file of "Zendesk Support for Wordpress" version 1.8.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("zendesk.php" instead of "zendesk-support.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,117 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 593 | 1,396 | 2,410 |
CSS | 2 | 71 | 40 | 366 |
JavaScript | 3 | 77 | 100 | 282 |
Markdown | 1 | 15 | 0 | 34 |
make | 1 | 8 | 6 | 21 |
Dockerfile | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 26.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 24 | 18.05% |
▷ Public methods | 112 | 84.21% |
▷ Protected methods | 1 | 0.75% |
▷ Private methods | 20 | 15.04% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 21 | |
▷ Global constants | 20 | 95.24% |
▷ Class constants | 1 | 4.76% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 0.70MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 83.76KB | 26.00KB | ▼ 68.96% |
screenshot-6.png | 174.55KB | 47.08KB | ▼ 73.03% |
screenshot-2.png | 83.34KB | 31.28KB | ▼ 62.46% |
images/zendesk-190.png | 6.72KB | 3.26KB | ▼ 51.56% |
images/colorbox/border.png | 0.16KB | 0.16KB | 0.00% |