Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.13ms] Passed 4 tests
Analyzing server-side resources used by Casengo Live Chat Support
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.53 ▼1.77 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.47 ▼9.25 |
Posts /wp-admin/edit.php | 3.41 ▲0.04 | 48.96 ▼4.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.04 | 88.72 ▼16.41 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 40.66 ▼2.38 |
Settings /wp-admin/admin.php?page=the-casengo-chat-widget/casengo.php | 3.24 | 36.02 |
Our Friends /wp-admin/admin.php?page=the-casengo-chat-widget/friends.php | 3.24 | 35.13 |
Server storage [IO: ▲2.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Casengo Live Chat Support
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 14.39 ▲0.03 | 2.22 ▲0.59 | 41.69 ▼2.69 |
Dashboard /wp-admin | 2,218 ▲44 | 5.56 ▼0.15 | 86.61 ▼15.67 | 67.90 ▲26.09 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.02 ▲0.01 | 36.02 ▼4.73 | 32.70 ▼13.83 |
Add New Post /wp-admin/post-new.php | 1,562 ▲33 | 23.20 ▲0.27 | 736.88 ▲76.09 | 52.60 ▲1.23 |
Media Library /wp-admin/upload.php | 1,426 ▲29 | 4.24 ▲0.07 | 102.89 ▼14.41 | 75.08 ▲23.41 |
Settings /wp-admin/admin.php?page=the-casengo-chat-widget/casengo.php | 1,073 | 2.00 | 23.82 | 36.71 |
Our Friends /wp-admin/admin.php?page=the-casengo-chat-widget/friends.php | 837 | 1.99 | 24.11 | 28.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/the-casengo-chat-widget/friends.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-casengo-chat-widget/casengo.php:85
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #12, #8 in the-casengo-chat-widget/assets to your readme.txt
- Tags: You are using too many tags: 25 tag instead of maximum 10
the-casengo-chat-widget/casengo.php 92% from 13 tests
"Casengo Live Chat Support" version 2.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("the-casengo-chat-widget.php" instead of "casengo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin300 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 31 | 300 |
PHP code Passed 2 tests
This is a short overview 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.62 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
16 PNG files occupy 2.31MB with 1.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-8.png | 119.41KB | 32.40KB | ▼ 72.86% |
assets/screenshot-7.png | 138.87KB | 49.22KB | ▼ 64.56% |
assets/screenshot-2.png | 446.61KB | 136.92KB | ▼ 69.34% |
assets/screenshot-11.png | 138.60KB | 47.06KB | ▼ 66.04% |
images/Info.png | 57.73KB | 17.38KB | ▼ 69.89% |