78% woo-dynamic-re-marketing

Code Review | Woo Dynamic Remarketing

WordPress plugin Woo Dynamic Remarketing scored78%from 54 tests.

About plugin

  • Plugin page: woo-dynamic-re-ma...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: Mar 10, 2017
  • Number of updates: 30
  • Update frequency: every 15.6 days
  • Top authors: sinapsmarketing (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,933 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.66ms] Passed 4 tests

An overview of server-side resources used by Woo Dynamic Remarketing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.21 ▼5.04
Dashboard /wp-admin3.33 ▲0.0246.44 ▼0.39
Posts /wp-admin/edit.php3.38 ▲0.0242.44 ▼5.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0278.33 ▼6.67
Media Library /wp-admin/upload.php3.25 ▲0.0233.76 ▼0.94
Dynamic Remarketing /wp-admin/options-general.php?page=remarketing_dinamic3.2229.07

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Woo Dynamic Remarketing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲9614.58 ▲0.224.32 ▲2.3844.74 ▲2.36
Dashboard /wp-admin2,199 ▲225.62 ▼0.0596.01 ▲12.0443.38 ▲3.03
Posts /wp-admin/edit.php2,101 ▲41.99 ▲0.0334.36 ▼6.3434.11 ▼5.96
Add New Post /wp-admin/post-new.php1,531 ▲322.98 ▲0.02668.94 ▲4.1154.27 ▼5.18
Media Library /wp-admin/upload.php1,404 ▲14.23 ▼0.0596.04 ▼8.0941.39 ▼1.65
Dynamic Remarketing /wp-admin/options-general.php?page=remarketing_dinamic8282.1724.2528.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-dynamic-re-marketing/feed.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/woo-dynamic-re-marketing/options.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_front_page() in wp-content/plugins/woo-dynamic-re-marketing/remarketing-dinamic.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: remarketing, adwords, dynamic

woo-dynamic-re-marketing/options.php 92% from 13 tests

The main PHP script in "Woo Dynamic Remarketing" version 2.2 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-dynamic-re-marketing.php" instead of "options.php")

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
Good job! No executable or dangerous file extensions detected233 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36346197
Markdown124036

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
sinaps-logo-15-s.png21.56KB3.05KB▼ 85.87%