Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.75ms] Passed 4 tests
A check of server-side resources used by Messenger LiveChat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 34.22 ▼5.94 |
Dashboard /wp-admin | 3.34 ▼0.01 | 43.37 ▼16.82 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 43.46 ▼0.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.27 ▼4.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.71 ▼0.02 |
Facebook Messenger /wp-admin/options-general.php?page=fbmsg | 3.25 | 32.70 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Messenger LiveChat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲192 | 14.43 ▲0.14 | 42.27 ▲39.79 | 38.25 ▼3.59 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼0.22 | 102.42 ▼15.38 | 38.61 ▼4.35 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.07 | 36.64 ▼0.34 | 35.33 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,517 ▼12 | 17.68 ▼0.75 | 651.70 ▲1.87 | 54.70 ▼2.93 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.28 ▲0.05 | 95.35 ▼0.03 | 40.65 ▼2.46 |
Facebook Messenger /wp-admin/options-general.php?page=fbmsg | 896 | 2.05 | 21.51 | 32.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
Even though everything seems fine, this is not 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 fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fb-messenger-livechat/fbmsg.php on line 11
- > PHP Warning
require(ABSPATHwp-includes/version.php): failed to open stream: No such file or directory in wp-content/plugins/fb-messenger-livechat/fbmsg.php on line 11
- > PHP Fatal error
require(): Failed opening required 'ABSPATHwp-includes/version.php' (include_path='.:/usr/share/php') in wp-content/plugins/fb-messenger-livechat/fbmsg.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/fb-messenger-livechat/fbmsg-setting.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (24 tag instead of maximum 10)
fb-messenger-livechat/fbmsg.php 92% from 13 tests
The main file in "Messenger LiveChat" v. 1.4.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("fb-messenger-livechat.php" instead of "fbmsg.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
Everything looks great! No dangerous files found in this plugin551 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 37 | 26 | 349 |
CSS | 1 | 24 | 7 | 128 |
JavaScript | 1 | 12 | 0 | 74 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected