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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼7.63ms] Passed 4 tests
A check of server-side resources used by WP Chat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 42.70 ▲3.68 |
Dashboard /wp-admin | 3.41 ▲0.06 | 43.26 ▼17.26 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.65 ▼0.68 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 81.83 ▼12.48 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.14 ▼0.09 |
WP Chat /wp-admin/options-general.php?page=wpfm_settings | 3.34 | 30.22 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wpfm_settings |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Chat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲177 | 13.62 ▼0.66 | 5.62 ▲3.88 | 40.76 ▼0.31 |
Dashboard /wp-admin | 2,209 ▲18 | 5.85 ▲0.94 | 98.95 ▼13.19 | 38.45 ▼5.85 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.04 ▲0.02 | 36.60 ▼8.16 | 35.07 ▼5.27 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.38 ▲0.18 | 656.82 ▼24.90 | 64.99 ▲10.61 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.27 ▲0.09 | 95.04 ▼4.33 | 40.66 ▼3.18 |
WP Chat /wp-admin/options-general.php?page=wpfm_settings | 827 | 2.06 | 25.84 | 24.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- wpfm_settings
- can_compress_scripts
- widget_recent-comments
Smoke tests 25% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpfm_settings
- > Notice in wp-content/plugins/wp-facebook-messenger-chat/views/wpfm-settings/page-settings-fields.php+22
Uninitialized string offset: 0
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-facebook-messenger-chat/views/wpfm-settings/page-settings-fields.php
- > /wp-content/plugins/wp-facebook-messenger-chat/bootstrap.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WPFM_Module' not found in wp-content/plugins/wp-facebook-messenger-chat/classes/wpfm-handler.php:7
- > PHP Warning
Use of undefined constant WPFM_REQUIRED_PHP_VERSION - assumed 'WPFM_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-facebook-messenger-chat/views/requirements-error.php on line 6
- > PHP Warning
Use of undefined constant WPFM_REQUIRED_WP_VERSION - assumed 'WPFM_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-facebook-messenger-chat/views/requirements-error.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WPFM_Module' not found in wp-content/plugins/wp-facebook-messenger-chat/classes/wp-facebook-messenger-chat.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-facebook-messenger-chat/views/wpfm-settings/page-settings-fields.php on line 10
- > PHP Warning
Use of undefined constant WPFM_NAME - assumed 'WPFM_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-facebook-messenger-chat/views/requirements-error.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-facebook-messenger-chat/views/requirements-error.php:12
- > PHP Fatal error
Uncaught Error: Class 'WPFM_Module' not found in wp-content/plugins/wp-facebook-messenger-chat/classes/wpfm-settings.php:8
- > PHP Notice
Undefined variable: field in wp-content/plugins/wp-facebook-messenger-chat/views/wpfm-settings/page-settings-fields.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-facebook-messenger-chat/views/wpfm-settings/page-settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Contributors: Contributors not specified
- Screenshots: Screenshot #2 (The plugin working.) image not found
wp-facebook-messenger-chat/bootstrap.php 85% from 13 tests
The main file in "WP Chat" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-facebook-messenger-chat.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin582 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 147 | 417 | 579 |
JavaScript | 1 | 1 | 3 | 3 |
CSS | 1 | 1 | 0 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 13 | 24.07% |
▷ Public methods | 40 | 74.07% |
▷ Protected methods | 14 | 25.93% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blank.png | 0.27KB | 0.10KB | ▼ 61.68% |