83% datacue-for-woocommerce

Code Review | DataCue: Grow Conversion with Recommendations & Personalization for WooCommerce

WordPress plugin DataCue: Grow Conversion with Recommendations & Personalization for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: datacue-for-wooco...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 7, 2019
  • Latest release: Dec 8, 2019
  • Number of updates: 6
  • Update frequency: every 0.5 days
  • Top authors: anndatacue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /535 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.17ms] Passed 4 tests

Analyzing server-side resources used by DataCue: Grow Conversion with Recommendations & Personalization for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2536.04 ▼6.93
Dashboard /wp-admin3.38 ▲0.0846.81 ▼2.75
Posts /wp-admin/edit.php3.49 ▲0.1447.71 ▲2.83
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.17 ▼13.81
Media Library /wp-admin/upload.php3.30 ▲0.0737.43 ▲7.13

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 99 new files
Database: 1 new table, 6 new options
New tables
wp_datacue_queue
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for DataCue: Grow Conversion with Recommendations & Personalization for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.171.65 ▼0.3644.74 ▲1.71
Dashboard /wp-admin2,206 ▲174.87 ▼0.05112.92 ▼7.1341.14 ▼1.83
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0140.66 ▲6.0435.65 ▲1.52
Add New Post /wp-admin/post-new.php1,533 ▲1922.96 ▲5.33665.74 ▲74.5352.65 ▼5.03
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0394.60 ▼13.8242.07 ▼9.88

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
  • 91× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      require_once(wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/examples/orders/deleteAll.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'DataCue\\WooCommerce\\Modules\\Base' not found in wp-content/plugins/datacue-for-woocommerce/src/Modules/Event.php:11
    • > PHP Warning
      require_once(wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/examples/categories/create.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'DataCue\\Modules\\Base' not found in wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/src/Modules/User.php:9
    • > PHP Warning
      require_once(wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/examples/client/clear.php on line 4
    • > PHP Warning
      require_once(wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/examples/users/deleteAll.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/datacue-for-woocommerce/src/Widgets/Products.php:11
    • > PHP Warning
      require_once(wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/examples/orders/cancel.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'DataCue\\WooCommerce\\Modules\\Base' not found in wp-content/plugins/datacue-for-woocommerce/src/Modules/Product.php:9
    • > PHP Warning
      require_once(wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/datacue-for-woocommerce/vendor/datacue/client/examples/overview/products.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

datacue-for-woocommerce/dc-woocommerce-plugin.php 85% from 13 tests

The principal PHP file in "DataCue: Grow Conversion with Recommendations & Personalization for WooCommerce" v. 1.1.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("datacue-for-woocommerce.php" instead of "dc-woocommerce-plugin.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,987 lines of code in 91 files:
LanguageFilesBlank linesComment linesLines of code
PHP858371,5373,711
JSON300110
Markdown235092
CSS111074

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity8.61
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.32
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces13
Interfaces0
Traits0
Classes41
▷ Abstract classes12.44%
▷ Concrete classes4097.56%
▷ Final classes00.00%
Methods213
▷ Static methods3215.02%
▷ Public methods17280.75%
▷ Protected methods73.29%
▷ Private methods3415.96%
Functions18
▷ Named functions15.56%
▷ Anonymous functions1794.44%
Constants23
▷ Global constants00.00%
▷ Class constants23100.00%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin