Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼2.37ms] Passed 4 tests
A check of server-side resources used by Wallmessage
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.77 ▲3.86 |
Dashboard /wp-admin | 3.76 ▲0.46 | 48.55 ▲2.06 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 47.24 ▲1.00 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 85.69 ▼16.41 |
Media Library /wp-admin/upload.php | 3.61 ▲0.39 | 39.92 ▲7.29 |
Send PM /wp-admin/admin.php?page=wallmessage-pm | 3.56 | 30.80 |
Configs /wp-admin/admin.php?page=wallmessage-configs | 3.58 | 33.65 |
Outbox /wp-admin/admin.php?page=wallmessage-outbox | 3.68 | 31.86 |
Wallmessage /wp-admin/admin.php?page=wallmessage | 3.56 | 32.74 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 40 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_kwm_wpwhatsapppm |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
wallmessage_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wallmessage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.35 ▼0.00 | 1.73 ▲0.07 | 41.34 ▲2.41 |
Dashboard /wp-admin | 2,253 ▲72 | 5.65 ▼0.05 | 80.70 ▼15.66 | 38.87 ▼8.38 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.05 ▲0.10 | 37.89 ▼0.34 | 30.90 ▼5.10 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 18.03 ▼4.94 | 593.47 ▼48.52 | 72.69 ▲11.96 |
Media Library /wp-admin/upload.php | 1,455 ▲55 | 4.23 ▲0.02 | 101.34 ▲4.07 | 44.73 ▲3.10 |
Send PM /wp-admin/admin.php?page=wallmessage-pm | 813 | 2.02 | 25.70 | 22.30 |
Configs /wp-admin/admin.php?page=wallmessage-configs | 709 | 1.51 | 6.20 | 21.26 |
Outbox /wp-admin/admin.php?page=wallmessage-outbox | 1,113 | 2.04 | 26.06 | 29.24 |
Wallmessage /wp-admin/admin.php?page=wallmessage | 813 | 2.05 | 24.74 | 20.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_kwm_wpwhatsapppm
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- wallmessage_settings
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wallmessage
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function WALLMESSAGE\\esc_html() in wp-content/plugins/wallmessage/inc/admin/kwm_send_pm.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wallmessage/inc/kwm_functions.php:5
- > PHP Fatal error
require_once(): Failed opening required 'WPWHATSAPPPM_TPLheader.php' (include_path='.:/usr/share/php') in wp-content/plugins/wallmessage/tpl/error.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function WALLMESSAGE\\sender\\esc_html() in wp-content/plugins/wallmessage/inc/class_kwm_send_wallmessage.php:8
- > PHP Warning
Use of undefined constant WPWHATSAPPPM_TPL - assumed 'WPWHATSAPPPM_TPL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wallmessage/tpl/outbox.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/wallmessage/tpl/send-pm.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function wallmessage\\esc_html() in wp-content/plugins/wallmessage/inc/class_kwm_config.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wallmessage/inc/class-kwm-woocommerce.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function get_tabs() on null in wp-content/plugins/wallmessage/tpl/left-menu.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function WALLMESSAGE\\esc_html() in wp-content/plugins/wallmessage/inc/class_kwm_Sender.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: wallmessage, whatsapp, send, notification, woocommerce...
wallmessage/wallmessage.php 92% from 13 tests
The entry point to "Wallmessage" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 411 characters long)
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
Everything looks great! No dangerous files found in this plugin4,343 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 508 | 435 | 2,105 |
JSON | 1 | 0 | 0 | 998 |
CSS | 1 | 199 | 6 | 923 |
PO File | 1 | 102 | 117 | 274 |
JavaScript | 2 | 9 | 2 | 30 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 25.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 6 | 7.69% |
▷ Public methods | 74 | 94.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.13% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 19 | |
▷ Global constants | 19 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/title_shape.png | 0.84KB | 0.82KB | ▼ 2.56% |