84% rontar-dynamic-retargeting-for-woocommerce

Code Review | Rontar Dynamic Retargeting for WooCommerce

WordPress plugin Rontar Dynamic Retargeting for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: rontar-dynamic-re...
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 9, 2018
  • Latest release: Nov 5, 2018
  • Number of updates: 14
  • Update frequency: every 1.9 days
  • Top authors: slavav (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /831 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Rontar Dynamic Retargeting for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0057.37 ▲11.11
Dashboard /wp-admin3.31 ▼0.0449.48 ▼18.14
Posts /wp-admin/edit.php3.36 ▲0.0048.50 ▲2.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.89 ▼10.94
Media Library /wp-admin/upload.php3.23 ▲0.0030.77 ▼7.70

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rontar Dynamic Retargeting for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▲0.022.20 ▲0.0241.74 ▲0.34
Dashboard /wp-admin2,195 ▲155.52 ▼0.2284.11 ▼3.1538.21 ▼6.03
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0033.35 ▼7.0032.98 ▼7.40
Add New Post /wp-admin/post-new.php1,560 ▲2918.16 ▼5.04633.38 ▼66.5065.23 ▲4.99
Media Library /wp-admin/upload.php1,397 ▼04.22 ▼0.0895.45 ▼16.9743.89 ▼3.95

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 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/rontar-dynamic-retargeting-for-woocommerce/admin/Class_Rontar_Integration.php:3

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 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
6 plugin tags: sales, remarketing, advertising, ads, retargeting...

rontar-dynamic-retargeting-for-woocommerce/main.php 85% from 13 tests

The main file in "Rontar Dynamic Retargeting for WooCommerce" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rontar-dynamic-retargeting-for-woocommerce.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin502 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6123222502

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes480.00%
Methods54
▷ Static methods35.56%
▷ Public methods2648.15%
▷ Protected methods23.70%
▷ Private methods2648.15%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin