99% affiliates-woocommerce-advanced-integration

Code Review | Affiliates WooCommerce Advanced Integration

WordPress plugin Affiliates WooCommerce Advanced Integration scored 99% from 54 tests.

About plugin

  • Plugin page: affiliates-woocom...
  • Plugin version: 1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Aug 22, 2014
  • Latest release: Aug 10, 2021
  • Number of updates: 19
  • Update frequency: every 134.1 days
  • Top authors: mra13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 5,185 total downloads

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼141.25ms] Passed 4 tests

Server-side resources used by Affiliates WooCommerce Advanced Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.0335.96 ▼0.52
Dashboard /wp-admin3.09 ▲0.0345.19 ▼4.18
Posts /wp-admin/edit.php3.14 ▲0.0346.66 ▲2.58
Add New Post /wp-admin/post-new.php5.45 ▲0.0191.45 ▼562.70
Media Library /wp-admin/upload.php3.03 ▲0.0332.51 ▲2.42

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Affiliates WooCommerce Advanced Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.97 ▲0.409.60 ▼0.9250.87 ▲7.26
Dashboard /wp-admin2,973 ▲425.86 ▼0.09137.40 ▼10.54120.80 ▲2.77
Posts /wp-admin/edit.php2,736 ▼32.71 ▼0.0070.35 ▲1.70102.03 ▲6.52
Add New Post /wp-admin/post-new.php1,498 ▼37418.79 ▼0.51383.12 ▼1.16110.18 ▲0.83
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.03148.31 ▲0.76120.24 ▼0.54

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

affiliates-woocommerce-advanced-integration/aff-woocommerce-advanced-addon.php 92% from 13 tests

The main file in "Affiliates WooCommerce Advanced Integration" v. 1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("affiliates-woocommerce-advanced-integration.php" instead of "aff-woocommerce-advanced-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin149 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12536149

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected