78% cleverreach-wc

Code Review | Official CleverReach® Plugin for WooCommerce

WordPress plugin Official CleverReach® Plugin for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: cleverreach-wc
  • Plugin version: 3.2.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2019
  • Latest release: Oct 23, 2023
  • Number of updates: 73
  • Update frequency: every 23.3 days
  • Top authors: cleverreach43 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /15,748 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Official CleverReach® Plugin for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.59 ▲1.45
Dashboard /wp-admin3.31 ▼0.0445.31 ▼10.68
Posts /wp-admin/edit.php3.36 ▲0.0045.95 ▼4.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.32 ▼16.79
Media Library /wp-admin/upload.php3.23 ▲0.0033.54 ▼0.83

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

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

Browser metrics Passed 4 tests

Official CleverReach® Plugin for WooCommerce: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.23 ▼0.121.77 ▲0.2144.91 ▲3.19
Dashboard /wp-admin2,198 ▲185.60 ▲0.0189.91 ▲4.8738.57 ▼3.79
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0139.80 ▲3.2636.19 ▲0.45
Add New Post /wp-admin/post-new.php1,526 ▼323.31 ▼0.19657.02 ▼22.5157.59 ▲2.39
Media Library /wp-admin/upload.php1,400 ▲64.30 ▲0.0892.35 ▼7.1744.08 ▼1.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cleverreach-wc/resources/views/wrapper-start.php
    • > /wp-content/plugins/cleverreach-wc/resources/views/wrapper-end.php
    • > /wp-content/plugins/cleverreach-wc/resources/views/close-frame.php
  • 478× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\IntegrationCore\\Infrastructure\\ORM\\Entity' not found in wp-content/plugins/cleverreach-wc/vendor/cleverreach/integration-core/src/BusinessLogic/Scheduler/Models/Schedule.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\IntegrationCore\\Infrastructure\\ORM\\Entity' not found in wp-content/plugins/cleverreach-wc/vendor/cleverreach/integration-core/src/BusinessLogic/SyncSettings/Entities/EnabledServicesChangeLog.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\Components\\Repositories\\Base_Repository' not found in wp-content/plugins/cleverreach-wc/Components/Repositories/class-stats-repository.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\IntegrationCore\\Infrastructure\\Utility\\Events\\Event' not found in wp-content/plugins/cleverreach-wc/vendor/cleverreach/integration-core/src/BusinessLogic/Receiver/Events/ReceiverSyncTaskCompletedEvent.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\IntegrationCore\\Infrastructure\\ORM\\Entity' not found in wp-content/plugins/cleverreach-wc/vendor/cleverreach/integration-core/src/BusinessLogic/Automation/AbandonedCart/DTO/AbandonedCartRecord.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\IntegrationCore\\Infrastructure\\Exceptions\\BaseException' not found in wp-content/plugins/cleverreach-wc/vendor/cleverreach/integration-core/src/Infrastructure/TaskExecution/Exceptions/SyncTaskFailedException.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\IntegrationCore\\Infrastructure\\Exceptions\\BaseException' not found in wp-content/plugins/cleverreach-wc/vendor/cleverreach/integration-core/src/BusinessLogic/Automation/AbandonedCart/Exceptions/FailedToCreateAbandonedCartException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\Components\\Util\\Step' not found in wp-content/plugins/cleverreach-wc/Migrations/V300/class-migrate-dynamic-content-data.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CleverReach\\WooCommerce\\IntegrationCore\\Infrastructure\\TaskExecution\\Task' not found in wp-content/plugins/cleverreach-wc/vendor/cleverreach/integration-core/src/BusinessLogic/DynamicContent/Tasks/RegisterDynamicContentTask.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'CleverReach\\WooCommerce\\IntegrationCore\\BusinessLogic\\Automation\\AbandonedCart\\Contracts\\AbandonedCartSettingsService' not found in wp-content/plugins/cleverreach-wc/vendor/cleverreach/integration-core/src/BusinessLogic/Automation/AbandonedCart/AbandonedCartSettingsService.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: newsletter, email marketing tool, newsletter marketing, follow up newsletter, integration...

cleverreach-wc/cleverreach-wc.php 85% from 13 tests

The main file in "Official CleverReach® Plugin for WooCommerce" v. 3.2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 150 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected46,744 lines of code in 709 files:
LanguageFilesBlank linesComment linesLines of code
PHP6677,59623,60830,816
CSS7224387,673
PO File121,9882,2464,717
SVG4022,209
JavaScript13204281,106
Markdown2430104
JSON300103
XML10016

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.53
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces264
Interfaces72
Traits0
Classes569
▷ Abstract classes508.79%
▷ Concrete classes51991.21%
▷ Final classes00.00%
Methods3,196
▷ Static methods2889.01%
▷ Public methods2,41375.50%
▷ Protected methods40112.55%
▷ Private methods38211.95%
Functions120
▷ Named functions10.83%
▷ Anonymous functions11999.17%
Constants385
▷ Global constants10.26%
▷ Class constants38499.74%
▷ Public constants384100.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
8 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/wp_cr_loader.png0.80KB0.39KB▼ 51.52%
resources/images/cr_logo_transparent_107px.png3.93KB2.26KB▼ 42.65%
resources/images/icon_ciao.png14.07KB4.11KB▼ 70.81%
resources/images/icon_hola.png14.32KB4.19KB▼ 70.71%
resources/images/icon_bonjour.png14.43KB4.23KB▼ 70.67%