84% wsify-widget

Code Review | Wsify widget

WordPress plugin Wsify widget scored84%from 54 tests.

About plugin

  • Plugin page: wsify-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2015
  • Latest release: Nov 26, 2015
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: GabbyKhrmon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /6,748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.21ms] Passed 4 tests

Server-side resources used by Wsify widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.35 ▼0.71
Dashboard /wp-admin3.31 ▲0.0048.57 ▼5.61
Posts /wp-admin/edit.php3.36 ▲0.0049.03 ▼6.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.39 ▼19.57
Media Library /wp-admin/upload.php3.23 ▲0.0036.76 ▲0.36

Server storage [IO: ▲2.26MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Wsify widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16914.06 ▼0.195.76 ▲3.8240.94 ▼5.49
Dashboard /wp-admin2,220 ▲324.90 ▼1.0097.84 ▼17.2071.23 ▲27.29
Posts /wp-admin/edit.php2,103 ▲142.01 ▲0.0135.32 ▼1.6432.74 ▼1.83
Add New Post /wp-admin/post-new.php1,524 ▲1017.81 ▲0.24759.20 ▲70.7055.56 ▼3.63
Media Library /wp-admin/upload.php1,396 ▲84.13 ▼0.05106.22 ▼10.5750.11 ▼11.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_meta() in wp-content/plugins/wsify-widget/widget-admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wsify-widget/wsify-widget.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #6, #7 in wsify-widget/assets to your readme.txt
The official readme.txt is a good inspiration

wsify-widget/wsify-widget.php Passed 13 tests

This is the main PHP file of "Wsify widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
81 characters long description:
Plugin for Whatsapp chat for users to give support to their customers on the fly.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected38,273 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
CSS364,6854,50134,299
PHP285561,970
JavaScript46202201,716
SVG100288

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.84
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/widget_logo.png15.45KB0.99KB▼ 93.57%
images/logo_wsify.png24.13KB5.32KB▼ 77.96%
images/cross.png0.40KB0.48KB0.00%
images/whatsapp.png25.48KB3.57KB▼ 85.97%