Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
-
The plugin did not install without errors
- > Error in wp-content/plugins/affiliates-for-woocommerce/includes/install.php+119
Uncaught Error: Call to undefined function WC() in wp-content/plugins/affiliates-for-woocommerce/includes/install.php:119
Stack trace:
#0 wp-content/plugins/affiliates-for-woocommerce/includes/install.php(92): DDWCAF_Install::ddwcaf_add_pages()
#1 wp-includes/class-wp-hook.php(310): DDWCAF_Install::ddwcaf_on_plugin_activation()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.79ms] Passed 4 tests
An overview of server-side resources used by Affiliates for WooCommerce - Boost your Earnings with Affiliate Marketing Program
Normal server usage
| Page | Memory (MB) | CPU Time (ms) |
|---|---|---|
| Home / | 3.47 ▲0.00 | 38.15 ▼1.70 |
| Dashboard /wp-admin | 3.31 ▲0.00 | 44.41 ▼3.07 |
| Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.19 ▼3.62 |
| Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.48 ▼14.75 |
| Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 33.86 ▲1.70 |
Server storage [IO: ▲1.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 87 new files
Database: 4 new tables, 6 new options
| New tables |
|---|
| wp_ddwcaf_payouts |
| wp_ddwcaf_visits |
| wp_ddwcaf_commissionsmeta |
| wp_ddwcaf_commissions |
| New WordPress options |
|---|
| widget_recent-posts |
| can_compress_scripts |
| widget_recent-comments |
| db_upgraded |
| widget_theysaidso_widget |
| theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Affiliates for WooCommerce - Boost your Earnings with Affiliate Marketing Program
Normal browser usage
| Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
|---|---|---|---|---|
| Home / | 2,790 ▲28 | 14.34 ▼0.03 | 1.62 ▼0.08 | 41.75 ▼0.73 |
| Dashboard /wp-admin | 2,198 ▲20 | 5.63 ▼0.02 | 96.36 ▼15.71 | 38.76 ▼5.18 |
| Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.01 | 39.87 ▼3.89 | 36.04 ▲1.12 |
| Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.33 ▲0.19 | 716.18 ▲118.16 | 73.20 ▲20.12 |
| Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.00 | 96.40 ▼3.38 | 41.10 ▲0.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
-
The uninstall procedure failed, leaving 4 tables in the database
- wp_ddwcaf_commissions
- wp_ddwcaf_visits
- wp_ddwcaf_commissionsmeta
- wp_ddwcaf_payouts
-
Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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 50% 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
-
28× PHP files perform the task of outputting text when accessed with
GET requests (only 10 are shown):
- > /wp-content/plugins/affiliates-for-woocommerce/autoload/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/assets/css/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/templates/admin/configuration/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/helper/payout/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/templates/admin/visits/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/templates/shortcodes/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/includes/front/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/helper/visit/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/helper/error/index.php
- > /wp-content/plugins/affiliates-for-woocommerce/templates/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 15 tag instead of maximum 10
affiliates-for-woocommerce/functions.php 77% from 13 tests
The primary PHP file in "Affiliates for WooCommerce - Boost your Earnings with Affiliate Marketing Program" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 302 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.8" instead of "5.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("affiliates-for-woocommerce.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,404 lines of code in 53 files:
| Language | Files | Blank lines | Comment lines | Lines of code |
|---|---|---|---|---|
| PHP | 46 | 1,170 | 1,948 | 6,192 |
| Markdown | 1 | 32 | 0 | 120 |
| CSS | 4 | 0 | 0 | 90 |
| JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
| Cyclomatic complexity | |
|---|---|
| Average complexity per logical line of code | 0.38 |
| Average class complexity | 18.78 |
| ▷ Minimum class complexity | 1.00 |
| ▷ Maximum class complexity | 87.00 |
| Average method complexity | 3.32 |
| ▷ Minimum method complexity | 1.00 |
| ▷ Maximum method complexity | 23.00 |
| Code structure | ||
|---|---|---|
| Namespaces | 17 | |
| Interfaces | 0 | |
| Traits | 1 | |
| Classes | 31 | |
| ▷ Abstract classes | 0 | 0.00% |
| ▷ Concrete classes | 31 | 100.00% |
| ▷ Final classes | 1 | 3.23% |
| Methods | 227 | |
| ▷ Static methods | 3 | 1.32% |
| ▷ Public methods | 225 | 99.12% |
| ▷ Protected methods | 2 | 0.88% |
| ▷ Private methods | 0 | 0.00% |
| Functions | 9 | |
| ▷ Named functions | 3 | 33.33% |
| ▷ Anonymous functions | 6 | 66.67% |
| Constants | 3 | |
| ▷ Global constants | 3 | 100.00% |
| ▷ Class constants | 0 | 0.00% |
| ▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin