Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.54ms] Passed 4 tests
Server-side resources used by Chatbox Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 37.51 ▼5.04 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.62 ▼4.18 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.57 ▼0.14 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.32 ▼8.80 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.57 ▲0.27 |
Chatbox Manager /wp-admin/admin.php?page=chatbox_manager_panel | 3.23 | 34.18 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Chatbox Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲93 | 14.68 ▲0.46 | 1.55 ▼0.17 | 36.42 ▼8.82 |
Dashboard /wp-admin | 2,240 ▲65 | 5.57 ▼0.14 | 93.91 ▼19.53 | 83.04 ▲39.16 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.11 ▲0.15 | 41.02 ▲2.42 | 35.04 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,586 ▲49 | 23.24 ▼2.10 | 699.04 ▲23.66 | 162.26 ▲89.76 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.25 ▲0.09 | 95.10 ▲0.35 | 71.45 ▲28.18 |
Chatbox Manager /wp-admin/admin.php?page=chatbox_manager_panel | 896 | 2.12 | 32.30 | 61.64 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The following issues need your attention
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wa-chatbox-manager/init.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wa-chatbox-manager/core/functions/functions.php:132
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wa-chatbox-manager/core/shortcode/button.php:142
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wa-chatbox-manager/core/admin/panel.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (Option panel), #2 (Example of WhatsApp button), #3 (Available layouts (free and premium)), #4 (Popup chatbox (Premium))
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wa-chatbox-manager/init.php 85% from 13 tests
The main PHP file in "Chatbox Manager" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("wa-chatbox-manager.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,243 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 1,290 | 231 | 1,657 |
CSS | 5 | 184 | 40 | 1,097 |
JavaScript | 50 | 167 | 83 | 275 |
PO File | 1 | 132 | 211 | 200 |
SVG | 1 | 0 | 0 | 14 |
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.27 |
Average class complexity | 49.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 5.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.08% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.43MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/assets/images/tip-logo.png | 9.73KB | 4.36KB | ▼ 55.18% |
screenshot-3.png | 55.92KB | 19.20KB | ▼ 65.67% |
screenshot-1.png | 29.88KB | 12.68KB | ▼ 57.57% |
screenshot-4.png | 36.46KB | 14.68KB | ▼ 59.74% |
core/assets/images/subparent.png | 0.94KB | 0.11KB | ▼ 88.00% |