84% wc-mytarget

Code Review | Integrate myTarget for WooCommerce

WordPress plugin Integrate myTarget for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wc-mytarget
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 26, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 10
  • Update frequency: every 45.5 days
  • Top authors: icopydoc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /711 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
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼1.24ms] Passed 4 tests

An overview of server-side resources used by Integrate myTarget for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2537.26 ▼3.59
Dashboard /wp-admin3.60 ▲0.2947.23 ▼2.71
Posts /wp-admin/edit.php3.65 ▲0.2948.21 ▲1.10
Add New Post /wp-admin/post-new.php6.12 ▲0.2386.95 ▲0.23
Media Library /wp-admin/upload.php3.46 ▲0.2335.77 ▲1.48
myTarget settings /wp-admin/admin.php?page=imtfw-settings3.4333.44
Debug page /wp-admin/admin.php?page=imtfwdebug3.4334.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 11 new options
New WordPress options
imtfw_code_location
widget_recent-posts
imtfw_feed_id
theysaidso_admin_options
widget_recent-comments
imtfw_keeplogs
can_compress_scripts
imtfw_mytarget_id
imtfw_dynamic_remarketing
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Integrate myTarget for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5614.30 ▼0.041.65 ▼0.0229.01 ▼15.63
Dashboard /wp-admin2,217 ▲375.49 ▼0.1792.41 ▼7.2543.99 ▼1.32
Posts /wp-admin/edit.php2,128 ▲251.98 ▲0.0142.18 ▲1.2540.83 ▲2.60
Add New Post /wp-admin/post-new.php1,549 ▲2322.91 ▼0.26603.64 ▼39.8253.88 ▲4.30
Media Library /wp-admin/upload.php1,428 ▲284.14 ▼0.0596.24 ▼4.2145.66 ▲2.10
myTarget settings /wp-admin/admin.php?page=imtfw-settings1,2611.8227.3438.63
Debug page /wp-admin/admin.php?page=imtfwdebug9811.8229.4427.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=imtfwdebug
    • > Network (severe)
    wp-content/plugins/wc-mytarget/css/wc-mytarget.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image not found
Please take inspiration from this readme.txt

wc-mytarget/wc-mytarget.php Passed 13 tests

The entry point to "Integrate myTarget for WooCommerce" version 0.1.3 is a PHP file that has certain tags in its header comment area
85 characters long description:
This plugin helps setting up myTarget counter for dynamic remarketing for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,511 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP131603001,279
PO File1383855199
CSS10130
JavaScript12133

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity19.80
▷ Minimum class complexity10.00
▷ Maximum class complexity45.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes360.00%
Methods66
▷ Static methods69.09%
▷ Public methods3959.09%
▷ Protected methods46.06%
▷ Private methods2334.85%
Functions25
▷ Named functions1768.00%
▷ Anonymous functions832.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png80.24KB30.43KB▼ 62.08%