Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.02ms] Passed 4 tests
This is a short check of server-side resources used by I Chat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.28 ▼1.03 |
Dashboard /wp-admin | 3.37 ▲0.07 | 49.08 ▲0.50 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 49.74 ▼6.73 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 87.22 ▼8.83 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 47.21 ▲8.32 |
I Chat /wp-admin/options-general.php?page=i-chat-plugin | 3.26 | 32.33 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_chat_user |
wp_chat_messages |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by I Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.39 ▲0.03 | 2.63 ▲0.61 | 46.85 ▲1.74 |
Dashboard /wp-admin | 2,204 ▲27 | 5.61 ▲0.03 | 84.04 ▼3.64 | 41.25 ▼5.81 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▲0.02 | 33.21 ▼6.98 | 36.29 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.95 ▼0.11 | 628.00 ▼4.11 | 54.15 ▼12.96 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.17 ▼0.01 | 98.81 ▲1.19 | 44.73 ▼0.54 |
I Chat /wp-admin/options-general.php?page=i-chat-plugin | 790 | 2.04 | 23.98 | 28.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- The uninstall procedure failed, leaving 2 tables in the database
- wp_chat_messages
- wp_chat_user
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/i-chat/i-functions.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/i-chat/i-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i-chat/includes/i-chat-settings.php:4
- > PHP Warning
require_once(ABSPATH/wp-config.php): failed to open stream: No such file or directory in wp-content/plugins/i-chat/i-functions.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-config.php' (include_path='.:/usr/share/php') in wp-content/plugins/i-chat/i-functions.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/i-chat/i-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i-chat/includes/i-chat-settings.php:4
- > PHP Warning
require_once(ABSPATH/wp-config.php): failed to open stream: No such file or directory in wp-content/plugins/i-chat/i-functions.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in i-chat/assets to your readme.txt
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== i-chat ===
)
i-chat/i-chat.php Passed 13 tests
The primary PHP file in "I Chat" version 1.0.0 is used by WordPress to initiate all plugin functionality
54 characters long description:
A cool chatting plugin, To chat with your web vistors.
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 plugin954 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 35 | 564 |
JavaScript | 2 | 29 | 27 | 251 |
CSS | 3 | 27 | 3 | 139 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 3.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 | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close.png | 2.19KB | 1.77KB | ▼ 19.16% |
img/chat-send.png | 1.22KB | 0.50KB | ▼ 58.95% |
img/chat-trigger.png | 15.20KB | 6.03KB | ▼ 60.35% |