Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.01ms] Passed 4 tests
A check of server-side resources used by ClickToChat Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 47.37 ▲3.97 |
Dashboard /wp-admin | 3.33 ▲0.03 | 54.11 ▼0.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 58.53 ▼0.08 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.02 | 96.09 ▼12.37 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 38.59 ▼7.54 |
ClickToChat Widget /wp-admin/options-general.php?page=widget_settings | 3.22 | 30.20 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ClickToChat Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.24 ▼0.11 | 1.97 ▲0.09 | 42.42 ▼3.63 |
Dashboard /wp-admin | 2,213 ▲36 | 5.63 ▼0.04 | 92.44 ▼12.04 | 41.74 ▼4.43 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 1.98 ▲0.00 | 43.92 ▲5.52 | 41.51 ▲5.75 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 22.63 ▼0.70 | 663.10 ▼32.59 | 53.03 ▲2.58 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.18 ▲0.00 | 103.64 ▼7.32 | 44.41 ▼5.53 |
ClickToChat Widget /wp-admin/options-general.php?page=widget_settings | 855 | 2.04 | 26.24 | 28.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/clicktowhat-whatsapp-widget/templates/settings-page.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: token in wp-content/plugins/clicktowhat-whatsapp-widget/templates/settings-page.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/clicktowhat-whatsapp-widget/clickToChat.php:160
- > PHP Notice
Undefined variable: validposttypes in wp-content/plugins/clicktowhat-whatsapp-widget/templates/settings-page.php on line 33
- > PHP Notice
Undefined variable: validposttypes in wp-content/plugins/clicktowhat-whatsapp-widget/templates/settings-page.php on line 25
- > PHP Notice
Undefined variable: validposttypes in wp-content/plugins/clicktowhat-whatsapp-widget/templates/settings-page.php on line 29
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Contributors: The plugin contributors field is not present
clicktowhat-whatsapp-widget/clickToChat.php 92% from 13 tests
This is the main PHP file of "ClickToChat Widget" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("clicktowhat-whatsapp-widget.php" instead of "clickToChat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin114 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 75 | 111 |
JSON | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin