83% engagebay-woocommerce-addon

Code Review | EngageBay WooCommerce integration

WordPress plugin EngageBay WooCommerce integration scored83%from 54 tests.

About plugin

  • Plugin page: engagebay-woocomm...
  • Plugin version: 4.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.3
  • WordPress version: 6.3.1
  • First release: May 30, 2019
  • Latest release: Aug 20, 2023
  • Number of updates: 58
  • Update frequency: every 26.6 days
  • Top authors: engagebay (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /6,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by EngageBay WooCommerce integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.48 ▼7.53
Dashboard /wp-admin3.31 ▲0.0047.90 ▼0.95
Posts /wp-admin/edit.php3.36 ▲0.0043.42 ▼2.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.02 ▼2.39
Media Library /wp-admin/upload.php3.23 ▲0.0032.86 ▲1.13

Server storage [IO: ▲0.36MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

EngageBay WooCommerce integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.021.90 ▼0.0145.08 ▲2.75
Dashboard /wp-admin2,192 ▲125.57 ▲0.0495.72 ▼7.6451.59 ▲8.35
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0435.58 ▼0.8632.47 ▼5.64
Add New Post /wp-admin/post-new.php1,528 ▼123.11 ▼0.19657.72 ▼12.8650.32 ▼2.17
Media Library /wp-admin/upload.php1,403 ▲34.26 ▲0.11100.74 ▲1.2843.87 ▲0.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/engagebay-woocommerce-addon/engagebay-woocommerce.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (EngageBay login)
The official readme.txt might help

engagebay-woocommerce-addon/engagebay-woocommerce.php 77% from 13 tests

The main PHP file in "EngageBay WooCommerce integration" ver. 4.1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.7" instead of "2.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("engagebay-woocommerce-addon.php" instead of "engagebay-woocommerce.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin2,491 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP162987821,883
CSS23310551
JavaScript25057

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.69
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods104
▷ Static methods3028.85%
▷ Public methods104100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.19MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/engagebay.png13.12KB4.67KB▼ 64.38%
(invalid) assets/images/info.png177.68KB0.00KB▼ 100.00%