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.09MB] [CPU: ▼3.22ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Messenger Customer Chat Plugin (WPMCCP)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.51 ▼5.67 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.44 ▼5.55 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.29 ▲3.83 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.45 ▼4.72 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.20 ▲3.07 |
WPMCCP /wp-admin/options-general.php?page=wpmccp | 3.29 | 30.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wordpress Messenger Customer Chat Plugin (WPMCCP)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲59 | 13.27 ▼1.10 | 5.00 ▲2.85 | 41.74 ▼5.19 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.05 | 109.28 ▼7.02 | 43.98 ▲1.66 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.03 | 40.06 ▲2.04 | 33.93 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.66 ▲0.39 | 644.57 ▲7.41 | 60.13 ▲9.93 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.30 ▲0.11 | 96.96 ▼12.35 | 42.41 ▼3.88 |
WPMCCP /wp-admin/options-general.php?page=wpmccp | 1,077 | 2.05 | 28.65 | 38.04 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 0% 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)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wpmccp
- > Notice in wp-content/plugins/wp-messenger-customer-chat/admin/partials/tabs/wpmccp-required_tab.php+8
Trying to access array offset on value of type bool
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-messenger-customer-chat/public/partials/wpmccp-display.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/tabs/wpmccp-options_tab.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/tabs/wpmccp-required_tab.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/tabs/wpmccp-misc_tab.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/wpmccp-admin-display.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/sidebar/wpmccp-right_sidebar.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wpmccp
- > Network (severe)
https://dorelljames.com/wp-content/uploads/2017/11/messenger-whitelist-domain.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=wpmccp
- > Network (severe)
https://dorelljames.com/wp-content/uploads/2017/11/findfbid.jpg - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/options-general.php?page=wpmccp
- > Network (severe)
https://dorelljames.com/wp-content/uploads/2017/11/Screen-Shot-2017-11-30-at-11.26.41-AM.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: wordpress messenger, messenger plugin, wordpress messenger plugin, messenger chat, messenger customer chat plugin
wp-messenger-customer-chat/wpmccp.php 85% from 13 tests
This is the main PHP file of "Wordpress Messenger Customer Chat Plugin (WPMCCP)" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-messenger-customer-chat.php" instead of "wpmccp.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin880 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 357 | 586 | 880 |
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.47 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin