68% wallmessage

Code Review | Wallmessage

WordPress plugin Wallmessage scored68%from 54 tests.

About plugin

  • Plugin page: wallmessage
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Jun 27, 2022
  • Latest release: Jul 8, 2022
  • Number of updates: 6
  • Update frequency: every 3.7 days
  • Top authors: wallmessageapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /220 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.77 ▲3.86
Dashboard /wp-admin3.76 ▲0.4648.55 ▲2.06
Posts /wp-admin/edit.php3.81 ▲0.4547.24 ▲1.00
Add New Post /wp-admin/post-new.php6.28 ▲0.3985.69 ▼16.41
Media Library /wp-admin/upload.php3.61 ▲0.3939.92 ▲7.29
Send PM /wp-admin/admin.php?page=wallmessage-pm3.5630.80
Configs /wp-admin/admin.php?page=wallmessage-configs3.5833.65
Outbox /wp-admin/admin.php?page=wallmessage-outbox3.6831.86
Wallmessage /wp-admin/admin.php?page=wallmessage3.5632.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.35 ▼0.001.73 ▲0.0741.34 ▲2.41
Dashboard /wp-admin2,253 ▲725.65 ▼0.0580.70 ▼15.6638.87 ▼8.38
Posts /wp-admin/edit.php2,159 ▲592.05 ▲0.1037.89 ▼0.3430.90 ▼5.10
Add New Post /wp-admin/post-new.php1,570 ▲4218.03 ▼4.94593.47 ▼48.5272.69 ▲11.96
Media Library /wp-admin/upload.php1,455 ▲554.23 ▲0.02101.34 ▲4.0744.73 ▲3.10
Send PM /wp-admin/admin.php?page=wallmessage-pm8132.0225.7022.30
Configs /wp-admin/admin.php?page=wallmessage-configs7091.516.2021.26
Outbox /wp-admin/admin.php?page=wallmessage-outbox1,1132.0426.0629.24
Wallmessage /wp-admin/admin.php?page=wallmessage8132.0524.7420.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP195084352,105
JSON100998
CSS11996923
PO File1102117274
JavaScript29230
SVG10013

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 code0.44
Average class complexity25.33
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods78
▷ Static methods67.69%
▷ Public methods7494.87%
▷ Protected methods00.00%
▷ Private methods45.13%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/title_shape.png0.84KB0.82KB▼ 2.56%