88% adroll-for-woocommerce-stores-dev

Code Review | AdRoll for WooCommerce Stores

WordPress plugin AdRoll for WooCommerce Stores scored 88% from 54 tests.

About plugin

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active / 29,241 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼297.31ms] Passed 4 tests

This is a short check of server-side resources used by AdRoll for WooCommerce Stores
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1556.25 ▲6.01
Dashboard /wp-admin3.50 ▲0.1033.11 ▲1.28
Posts /wp-admin/edit.php3.73 ▲0.0936.50 ▲0.56
Add New Post /wp-admin/post-new.php6.97 ▼0.0091.97 ▼1,192.99
Media Library /wp-admin/upload.php3.38 ▲0.0925.26 ▲1.93

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AdRoll for WooCommerce Stores
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,855 ▲10215.75 ▲0.055.70 ▼0.312.49 ▲0.10
Dashboard /wp-admin2,940 ▲826.15 ▼0.04117.65 ▼14.76156.28 ▼5.93
Posts /wp-admin/edit.php2,739 ▲483.25 ▲0.0365.02 ▲2.36135.39 ▼10.13
Add New Post /wp-admin/post-new.php1,693 ▲3218.11 ▲1.18406.47 ▼23.24153.93 ▼2.54
Media Library /wp-admin/upload.php1,749 ▲515.45 ▼0.03151.03 ▲6.59188.75 ▲0.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/adroll-for-woocommerce-stores-dev/adroll-for-woocommerce.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adroll-for-woocommerce-stores-dev/welcome.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/adroll-for-woocommerce-stores-dev/configure.php:6
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adroll-for-woocommerce-stores-dev/status.php:4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adroll-for-woocommerce-stores-dev/notice.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/adroll-for-woocommerce-stores-dev/pixel.php:2

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: retargeting, nextroll, adroll, ads

adroll-for-woocommerce-stores-dev/adroll-for-woocommerce.php 92% from 13 tests

The main file in "AdRoll for WooCommerce Stores" v. 2.2.14 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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("adroll-for-woocommerce-stores-dev.php" instead of "adroll-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected436 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

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.34
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods12.63%
▷ Public methods1847.37%
▷ Protected methods00.00%
▷ Private methods2052.63%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected