90% wc-change-product-author

Code Review | Change Product Author For WooCommerce

WordPress plugin Change Product Author For WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wc-change-product...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Dec 15, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 10
  • Update frequency: every 83.5 days
  • Top authors: DeveloperWil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.29ms] Passed 4 tests

An overview of server-side resources used by Change Product Author For WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.91 ▼1.71
Dashboard /wp-admin3.31 ▲0.0150.58 ▼3.15
Posts /wp-admin/edit.php3.36 ▲0.0044.87 ▼13.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.24 ▼14.94
Media Library /wp-admin/upload.php3.23 ▲0.0036.22 ▼0.12

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Change Product Author For WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.021.90 ▲0.0344.32 ▼0.30
Dashboard /wp-admin2,192 ▲185.54 ▼0.0980.98 ▼9.4540.37 ▼7.56
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0634.55 ▼6.9333.93 ▼7.58
Add New Post /wp-admin/post-new.php1,545 ▲1123.18 ▼0.06662.41 ▼11.7761.25 ▲2.11
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0297.50 ▼9.5444.24 ▲0.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Edit product to change the author), #2 (Products view now shows the product author), #3 (Quick edit products to change multiple product authors)
You can take inspiration from this readme.txt

wc-change-product-author/wc-change-product-author.php Passed 13 tests

The main PHP file in "Change Product Author For WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
101 characters long description:
Quickly change or transfer your WooCommerce product author to another users in the WordPress website.

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
There were no executable files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16258

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.96KB10.43KB▼ 62.71%
screenshot-2.png47.01KB17.64KB▼ 62.48%
screenshot-3.png23.90KB10.11KB▼ 57.70%