Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 56.25 ▲6.01 |
Dashboard /wp-admin | 3.50 ▲0.10 | 33.11 ▲1.28 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 36.50 ▲0.56 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 91.97 ▼1,192.99 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 25.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,855 ▲102 | 15.75 ▲0.05 | 5.70 ▼0.31 | 2.49 ▲0.10 |
Dashboard /wp-admin | 2,940 ▲82 | 6.15 ▼0.04 | 117.65 ▼14.76 | 156.28 ▼5.93 |
Posts /wp-admin/edit.php | 2,739 ▲48 | 3.25 ▲0.03 | 65.02 ▲2.36 | 135.39 ▼10.13 |
Add New Post /wp-admin/post-new.php | 1,693 ▲32 | 18.11 ▲1.18 | 406.47 ▼23.24 | 153.93 ▼2.54 |
Media Library /wp-admin/upload.php | 1,749 ▲51 | 5.45 ▼0.03 | 151.03 ▲6.59 | 188.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
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 69 | 59 | 436 |
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 code | 0.34 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 18 | 47.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 52.63% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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