93% vabe-button

Code Review | VABE / Button – Floating Chat Widget

WordPress plugin VABE / Button – Floating Chat Widget scored 93% from 54 tests.

About plugin

  • Plugin page: vabe-button
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.7.1
  • WordPress version: 5.8.1
  • First release: May 5, 2021
  • Latest release: May 5, 2021
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: vabeio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 643 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.46ms] Passed 4 tests

An overview of server-side resources used by VABE / Button – Floating Chat Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0235.94 ▲2.08
Dashboard /wp-admin3.08 ▲0.0347.59 ▲1.24
Posts /wp-admin/edit.php3.14 ▲0.0345.00 ▲2.19
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.93 ▼567.36
Media Library /wp-admin/upload.php3.03 ▲0.0233.28 ▲4.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by VABE / Button – Floating Chat Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,742 ▲14616.24 ▲0.5611.41 ▼0.0948.97 ▲0.18
Dashboard /wp-admin3,008 ▲746.17 ▲0.23145.15 ▲3.39109.13 ▼6.58
Posts /wp-admin/edit.php2,778 ▲392.72 ▲0.0066.44 ▲5.6585.75 ▼13.10
Add New Post /wp-admin/post-new.php1,889 ▲38919.22 ▲0.44380.02 ▲13.79110.44 ▼2.10
Media Library /wp-admin/upload.php1,851 ▲415.05 ▲0.03143.39 ▼1.28121.57 ▲3.49

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vabe-button/vabe_button.php:62

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

vabe-button/vabe_button.php 85% from 13 tests

"VABE / Button – Floating Chat Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("vabe-button.php" instead of "vabe_button.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin62 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131054
SVG1008

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.03
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%
Functions4
▷ Named functions4100.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
No PNG files were detected