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.95MB] [CPU: ▼34.23ms] Passed 4 tests
An overview of server-side resources used by Support Dock
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.41 ▼2.45 |
Dashboard /wp-admin | 3.01 ▼0.34 | 28.05 ▼37.09 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 28.11 ▼21.00 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 31.44 ▼69.22 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 28.01 ▼9.61 |
Support Dock /wp-admin/admin.php?page=sdock_options | 3.01 | 23.56 |
Logs /wp-admin/admin.php?page=sdock_sent | 3.01 | 29.97 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_sdtickets |
wp_sdrecords |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Support Dock
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲171 | 14.08 ▼0.50 | 10.04 ▲8.04 | 44.13 ▼0.18 |
Dashboard /wp-admin | 2,235 ▲47 | 4.86 ▼1.01 | 110.45 ▼9.80 | 42.93 ▼4.00 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.03 ▲0.02 | 34.06 ▼4.05 | 37.23 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.24 ▲0.34 | 659.13 ▲4.63 | 52.23 ▼8.47 |
Media Library /wp-admin/upload.php | 1,420 ▲29 | 4.30 ▲0.09 | 97.31 ▼1.72 | 45.69 ▲0.04 |
Support Dock /wp-admin/admin.php?page=sdock_options | 806 | 2.05 | 25.65 | 29.90 |
Logs /wp-admin/admin.php?page=sdock_sent | 803 | 2.06 | 22.98 | 26.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=sdock_sent
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
SRP 50% 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
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/support-dock/sdock-options.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/support-dock/sdock-ticket.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/support-dock/sdock-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/support-dock/sdock-sent.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/support-dock/sdock-reply.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Screenshots: Add images for these screenshots: #1 (Give the admin a great support tool with the options to view, reply or close tickets at will.), #2 (User can generate new tickets and reply to your support feedback on any ticket submitted.), #3 (Sample email you receive with support ticket details.)
support-dock/sdock.php 92% from 13 tests
"Support Dock" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("support-dock.php" instead of "sdock.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,996 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 45 | 50 | 1,249 |
PHP | 7 | 184 | 59 | 744 |
JavaScript | 1 | 11 | 6 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 7 | 100.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.58KB | 0.78KB | 0.00% |