Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.62ms] Passed 4 tests
An overview of server-side resources used by Social_Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.18 ▲0.34 |
Dashboard /wp-admin | 3.35 ▲0.04 | 56.56 ▲7.83 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 51.58 ▲6.74 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.91 ▼9.27 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.60 ▼0.28 |
Social Chat /wp-admin/options-general.php?page=letscms_social_chat | 3.21 | 32.35 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social_Chat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.38 ▲0.10 | 2.14 ▲0.56 | 38.34 ▼3.67 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.02 | 95.57 ▲8.93 | 42.16 ▼0.72 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.98 ▼0.01 | 35.05 ▼3.48 | 35.15 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.44 ▲0.51 | 642.32 ▼67.20 | 52.22 ▼1.30 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.20 ▲0.02 | 102.21 ▼5.75 | 45.11 ▲0.39 |
Social Chat /wp-admin/options-general.php?page=letscms_social_chat | 962 | 1.99 | 23.05 | 33.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+65
Undefined index: sc_facebook
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+66
Undefined index: sc_whatsapp
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+67
Undefined index: sc_email
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+68
Undefined index: sc_call
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+69
Undefined index: sc_greeting_message
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+70
Undefined index: sc_call_to_action
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+71
Undefined index: sc_button_color
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+72
Undefined index: sc_position
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+73
Undefined index: sc_order
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Notice in wp-content/plugins/social-chat/social_chat.php+263
Undefined index: submit
- > GET request to /wp-admin/options-general.php?page=letscms_social_chat
- > Warning in wp-content/plugins/social-chat/social_chat.php+161
Use of undefined constant submit_nonce - assumed 'submit_nonce' (this will throw an Error in a future version of PHP)
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/social-chat/social_chat.php:51
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in social-chat/assets to your readme.txt
social-chat/social_chat.php 92% from 13 tests
The entry point to "Social_Chat" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-chat.php" instead of "social_chat.php")
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
Success! There were no dangerous files found in this plugin247 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 24 | 247 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin