Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.39MB] [CPU: ▼14.06ms] Passed 4 tests
Analyzing server-side resources used by Five9 Live Chat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 40.82 ▼1.95 |
Dashboard /wp-admin | 3.62 ▲0.31 | 50.02 ▼0.32 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 52.03 ▼0.82 |
Add New Post /wp-admin/post-new.php | 3.49 ▼2.40 | 38.50 ▼53.13 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 44.07 ▲7.76 |
Five9 Chat /wp-admin/options-general.php?page=five9 | 3.51 | 39.35 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Five9 Live Chat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.45 ▼1.31 | 8.53 ▲6.59 | 43.02 ▼3.30 |
Dashboard /wp-admin | 2,200 ▲20 | 5.65 ▲0.14 | 89.23 ▲0.46 | 39.67 ▼3.32 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.08 ▲0.08 | 41.58 ▼4.26 | 37.84 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,686 ▲158 | 21.33 ▼1.88 | 659.39 ▲27.08 | 47.28 ▼1.50 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.21 ▲0.06 | 103.02 ▼3.93 | 44.13 ▼6.56 |
Five9 Chat /wp-admin/options-general.php?page=five9 | 1,731 | 2.16 | 37.01 | 37.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/five9/five9.php:148
- > PHP Warning
Use of undefined constant FIVE9_PLUGIN_DIR - assumed 'FIVE9_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/five9/includes/admin/class-admin.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function Five9\\add_action() in wp-content/plugins/five9/includes/class-widget.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function Five9\\add_action() in wp-content/plugins/five9/includes/class-settings.php:19
- > PHP Warning
require_once(FIVE9_PLUGIN_DIRincludes/admin/class-admin-pages.php): failed to open stream: No such file or directory in wp-content/plugins/five9/includes/admin/class-admin.php on line 21
- > PHP Fatal error
require_once(): Failed opening required 'FIVE9_PLUGIN_DIRincludes/admin/class-admin-pages.php' (include_path='.:/usr/share/php') in wp-content/plugins/five9/includes/admin/class-admin.php on line 21
- > PHP Fatal error
Uncaught Error: Class 'Five9\\Settings' not found in wp-content/plugins/five9/includes/admin/class-admin-pages.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Five9\\add_action() in wp-content/plugins/five9/includes/class-forms.php:19
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
3 plugin tags: live chat, chat, five9
five9/five9.php 85% from 13 tests
The principal PHP file in "Five9 Live Chat" v. 1.1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
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
Everything looks great! No dangerous files found in this plugin1,797 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 210 | 95 | 1,457 |
JavaScript | 4 | 56 | 5 | 268 |
CSS | 2 | 13 | 2 | 72 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 22.71 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 54 | |
▷ Static methods | 22 | 40.74% |
▷ Public methods | 37 | 68.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 31.48% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin