84% supbine

Code Review | Supbine live chat & widget for Wordpress

WordPress plugin Supbine live chat & widget for Wordpress scored84%from 54 tests.

About plugin

  • Plugin page: supbine
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.7
  • WordPress version: 6.3.1
  • First release: Mar 26, 2017
  • Latest release: Mar 26, 2017
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: supbine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /647 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.97ms] Passed 4 tests

Analyzing server-side resources used by Supbine live chat & widget for Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.29 ▼1.40
Dashboard /wp-admin3.33 ▼0.0245.51 ▼16.15
Posts /wp-admin/edit.php3.38 ▲0.0250.63 ▼0.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.15 ▼9.46
Media Library /wp-admin/upload.php3.25 ▲0.0234.07 ▼0.55

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Supbine live chat & widget for Wordpress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.18 ▼1.611.66 ▼0.1537.12 ▼5.93
Dashboard /wp-admin2,226 ▲415.86 ▲0.9699.30 ▼10.1079.30 ▲35.64
Posts /wp-admin/edit.php2,109 ▲202.03 ▲0.0242.30 ▲8.1237.80 ▼0.41
Add New Post /wp-admin/post-new.php1,532 ▲1317.76 ▼5.61682.67 ▲14.2356.70 ▲2.76
Media Library /wp-admin/upload.php1,402 ▲174.22 ▼0.0295.48 ▼1.1270.16 ▲25.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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • 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 shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/supbine/supbine.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget on your website - not active), #2 (Widget on your website - email ticket), #3 (Widget on your website - live chat), #4 (Supbine Dashboard - overview), #5 (Supbine Dashboard - visitors), #6 (Supbine Dashboard - active chat)
The official readme.txt is a good inspiration

supbine/supbine.php Passed 13 tests

The entry point to "Supbine live chat & widget for Wordpress" version 1.0 is a PHP file that has certain tags in its header comment area
41 characters long description:
Supbine Widget integration for Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin151 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2258126
CSS13025

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 compressed PNG files occupy 0.28MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sidebar-logo.png0.42KB0.35KB▼ 15.22%
screenshot-6.png47.66KB51.59KB0.00%
screenshot-3.png20.75KB22.66KB0.00%
screenshot-4.png116.74KB127.82KB0.00%
screenshot-5.png60.49KB65.78KB0.00%