Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.65ms] Passed 4 tests
Server-side resources used by Output Desk Live Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.83 ▼2.53 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.57 ▼19.16 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.43 ▼4.59 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.52 ▼12.33 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 35.34 ▲0.90 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Output Desk Live Chat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.24 ▼0.12 | 1.85 ▲0.41 | 43.58 ▲0.13 |
Dashboard /wp-admin | 2,210 ▲33 | 5.56 ▼0.08 | 83.35 ▼2.66 | 72.25 ▲34.38 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▼0.15 | 35.81 ▼6.53 | 32.94 ▼6.88 |
Add New Post /wp-admin/post-new.php | 1,692 ▲154 | 22.22 ▼0.88 | 622.28 ▼26.26 | 47.21 ▼17.69 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.23 ▲0.08 | 92.80 ▼23.03 | 75.07 ▲29.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/output-desk-live-chat/outputdesk.php+61
Use of undefined constant WP_UNINSTALL_PLUGIN - assumed 'WP_UNINSTALL_PLUGIN' (this will throw an Error in a future version of PHP)
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/output-desk-live-chat/source.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/output-desk-live-chat/source.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/output-desk-live-chat/source.php on line 4
- > PHP Notice
Undefined variable: accountDetails in wp-content/plugins/output-desk-live-chat/source.php on line 3
- > PHP Warning
Use of undefined constant ODC_DASHBOARD_LINK - assumed 'ODC_DASHBOARD_LINK' (this will throw an Error in a future version of PHP) in wp-content/plugins/output-desk-live-chat/source.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/output-desk-live-chat/source.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/output-desk-live-chat/definitions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/output-desk-live-chat/definitions.php:6
- > PHP Notice
Undefined variable: messages in wp-content/plugins/output-desk-live-chat/login.php on line 2
- > PHP Notice
Undefined variable: accountDetails in wp-content/plugins/output-desk-live-chat/source.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function display() on null in wp-content/plugins/output-desk-live-chat/login.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (35 tag instead of maximum 10)
output-desk-live-chat/outputdesk.php 92% from 13 tests
The main PHP script in "Output Desk Live Chat" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("output-desk-live-chat.php" instead of "outputdesk.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
No dangerous file extensions were detected271 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 27 | 9 | 271 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 8 | 32.00% |
▷ Public methods | 22 | 88.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.59MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 79.49KB | 28.00KB | ▼ 64.78% |
assets/screenshot-5.png | 7.85KB | 4.08KB | ▼ 48.00% |
assets/icon-256x256.png | 23.54KB | 9.36KB | ▼ 60.26% |
assets/banner-1544x500.png | 259.98KB | 129.80KB | ▼ 50.07% |
icon.png | 4.92KB | 2.64KB | ▼ 46.28% |