84% auto-woocommerce-affiliate-account-creation

Code Review | Auto WooCommerce Affiliate Account Creation

WordPress plugin Auto WooCommerce Affiliate Account Creation scored84%from 54 tests.

About plugin

  • Plugin page: auto-woocommerce-...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0
  • WordPress version: 6.3.1
  • First release: Jan 26, 2015
  • Latest release: Aug 28, 2022
  • Number of updates: 7
  • Update frequency: every 395.9 days
  • Top authors: affmngr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /12,356 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.76ms] Passed 4 tests

A check of server-side resources used by Auto WooCommerce Affiliate Account Creation
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0234.78 ▼2.42
Dashboard /wp-admin3.32 ▲0.0245.29 ▼8.43
Posts /wp-admin/edit.php3.37 ▲0.0145.41 ▼3.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.96 ▼20.72
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▲0.76

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Auto WooCommerce Affiliate Account Creation: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.181.60 ▼0.0041.05 ▼1.47
Dashboard /wp-admin2,206 ▲184.86 ▼0.04112.33 ▲9.1242.71 ▲0.49
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0539.55 ▼1.3236.18 ▼1.56
Add New Post /wp-admin/post-new.php1,525 ▼923.33 ▲0.35598.36 ▼62.5959.23 ▲9.41
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0298.69 ▲2.1041.04 ▼2.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-woocommerce-affiliate-account-creation/wpam-auto-wc-affiliate-creation.php:12

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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: affiliate, integration, affiliates manager, users, affiliates...

auto-woocommerce-affiliate-account-creation/wpam-auto-wc-affiliate-creation.php 92% from 13 tests

The main file in "Auto WooCommerce Affiliate Account Creation" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("auto-woocommerce-affiliate-account-creation.php" instead of "wpam-auto-wc-affiliate-creation.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17947

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin