Benchmarks
Plugin footprint 83% 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.48MB] [CPU: ▼0.82ms] Passed 4 tests
An overview of server-side resources used by TalkJS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.47 | 46.82 ▲3.66 |
Dashboard /wp-admin | 3.82 ▲0.45 | 58.41 ▼3.20 |
Posts /wp-admin/edit.php | 3.94 ▲0.55 | 52.76 ▲1.76 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.50 | 94.86 ▼5.49 |
Media Library /wp-admin/upload.php | 3.75 ▲0.49 | 42.45 ▲8.12 |
TalkJS Settings /wp-admin/options-general.php?page=talkjs-settings | 3.72 | 37.82 |
Welcome to TalkJS! /wp-admin/options-general.php?page=talkjs-onboarding | 3.71 | 44.44 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: no files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_talkjs |
can_compress_scripts |
talkjs_onboarding |
db_upgraded |
talkjs_inbox_page |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
TalkJS: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 14.15 ▼0.50 | 2.01 ▲0.16 | 46.50 ▲1.73 |
Dashboard /wp-admin | 2,237 ▲46 | 5.79 ▲0.92 | 114.63 ▲12.27 | 41.02 ▲1.13 |
Posts /wp-admin/edit.php | 2,124 ▲38 | 2.47 ▲0.42 | 41.98 ▲6.15 | 32.04 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.41 ▲0.79 | 686.51 ▲64.30 | 56.80 ▲2.47 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.96 ▲0.75 | 104.03 ▲5.90 | 41.90 ▲0.14 |
TalkJS Settings /wp-admin/options-general.php?page=talkjs-settings | 978 | 2.58 | 37.66 | 29.90 |
Welcome to TalkJS! /wp-admin/options-general.php?page=talkjs-onboarding | 904 | 2.45 | 31.80 | 32.88 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- talkjs_onboarding
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_talkjs
- theysaidso_admin_options
- talkjs_inbox_page
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 43× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TalkJS\\Traits\\HasProperties' not found in wp-content/plugins/talkjs/classes/traits/ImplementsTalkSession.php:10
- > PHP Fatal error
Uncaught Error: Class 'TalkJS\\Contracts\\StaticInstance' not found in wp-content/plugins/talkjs/classes/contracts/05-ShortcodeInstance.php:5
- > PHP Fatal error
Uncaught Error: Class 'TalkJS\\Contracts\\ShortcodeInstance' not found in wp-content/plugins/talkjs/classes/chat/Shortcode.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/talkjs/tests/test-urls.php:14
- > PHP Fatal error
Uncaught Error: Class 'TalkJs\\Contracts\\AssetLoaderInstance' not found in wp-content/plugins/talkjs/classes/admin/Assets.php:9
- > PHP Fatal error
Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/talkjs/tests/test-inbox.php:14
- > PHP Fatal error
Uncaught Error: Class 'BaseTest' not found in wp-content/plugins/talkjs/tests/test-inbox-page-generator.php:12
- > PHP Fatal error
Uncaught Error: Class 'TalkJS\\Traits\\HasProperties' not found in wp-content/plugins/talkjs/classes/admin/ui/FieldBuilder.php:7
- > PHP Fatal error
Uncaught Error: Class 'TalkJS\\Facades\\Facade' not found in wp-content/plugins/talkjs/classes/facades/Chat.php:5
- > PHP Fatal error
Uncaught Error: Class 'TalkJS\\Facades\\Facade' not found in wp-content/plugins/talkjs/classes/facades/Notification.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 17 tag instead of maximum 10
talkjs/talkjs.php Passed 13 tests
Analyzing the main PHP file in "TalkJS" version 0.1.15
77 characters long description:
This plugin lets you add TalkJS' messaging platform to your WordPress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,739 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 3,472 |
PHP | 62 | 1,329 | 1,537 | 2,581 |
Markdown | 3 | 200 | 0 | 697 |
JavaScript | 4 | 192 | 152 | 384 |
Bourne Shell | 2 | 44 | 21 | 175 |
CSS | 2 | 6 | 1 | 150 |
Sass | 3 | 29 | 0 | 129 |
PO File | 1 | 31 | 31 | 126 |
XML | 2 | 4 | 2 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 60 | |
▷ Abstract classes | 5 | 8.33% |
▷ Concrete classes | 55 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 256 | |
▷ Static methods | 67 | 26.17% |
▷ Public methods | 218 | 85.16% |
▷ Protected methods | 29 | 11.33% |
▷ Private methods | 9 | 3.52% |
Functions | 19 | |
▷ Named functions | 7 | 36.84% |
▷ Anonymous functions | 12 | 63.16% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 5.73KB | 2.77KB | ▼ 51.73% |
assets/icon-128x128.png | 2.59KB | 1.66KB | ▼ 35.90% |
assets/screenshot-1.png | 82.09KB | 33.20KB | ▼ 59.56% |