89% remarkety-for-woocommerce

Code Review | Remarkety - eCommerce Marketing Automation Platform for WooCommerce

WordPress plugin Remarkety - eCommerce Marketing Automation Platform for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: remarkety-for-woo...
  • Plugin version: 1.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-5.7.2
  • WordPress version: 6.3.1
  • First release: May 22, 2015
  • Latest release: Nov 6, 2022
  • Number of updates: 96
  • Update frequency: every 32.6 days
  • Top authors: remarkety (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /12,012 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼8.54ms] Passed 4 tests

Analyzing server-side resources used by Remarkety - eCommerce Marketing Automation Platform for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3644.72 ▲1.01
Dashboard /wp-admin3.67 ▲0.3256.26 ▼10.84
Posts /wp-admin/edit.php3.78 ▲0.4256.66 ▲6.13
Add New Post /wp-admin/post-new.php6.25 ▲0.3589.02 ▼27.37
Media Library /wp-admin/upload.php3.59 ▲0.3640.29 ▲3.05
Remarkety WC API /wp-admin/options-general.php?page=remarkety_for_woocommerce3.5655.09

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: 2 new tables, 8 new options
New tables
wp_remarkety_carts_guests
wp_remarkety_carts
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
rm_db_version
widget_recent-posts
remarkety_api_key

Browser metrics Passed 4 tests

An overview of browser requirements for Remarkety - eCommerce Marketing Automation Platform for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.40 ▲0.031.95 ▲0.0845.12 ▼2.41
Dashboard /wp-admin2,201 ▲275.62 ▲0.0091.59 ▲0.8341.07 ▼6.41
Posts /wp-admin/edit.php2,106 ▲62.04 ▲0.0438.87 ▲1.7336.62 ▲2.10
Add New Post /wp-admin/post-new.php1,545 ▼023.30 ▲0.29685.18 ▼41.8456.11 ▼8.17
Media Library /wp-admin/upload.php1,409 ▲94.27 ▲0.02113.32 ▲0.7248.15 ▲2.00
Remarkety WC API /wp-admin/options-general.php?page=remarkety_for_woocommerce9401.7129.3232.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • remarkety_api_key
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #7 (Track results), #8 (Product recommendation in emails), #9 (Easy customer segmentation)
  • Tags: There are too many tags (17 tag instead of maximum 10)
You can look at the official readme.txt

remarkety-for-woocommerce/remarkety-for-woocommerce.php 92% from 13 tests

The primary PHP file in "Remarkety - eCommerce Marketing Automation Platform for WooCommerce" version 1.4.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "2.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,278 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4296941,836
Markdown11370235
CSS2163111
JavaScript215396

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity98.33
▷ Minimum class complexity2.00
▷ Maximum class complexity277.00
Average method complexity4.84
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods78
▷ Static methods911.54%
▷ Public methods6076.92%
▷ Protected methods00.00%
▷ Private methods1823.08%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants16
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/yop-arrow.png1.13KB0.23KB▼ 79.74%
assets/images/remarkety_logo_152x50.png4.58KB3.10KB▼ 32.24%