90% woo-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: woo-change-produc...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4
  • WordPress version: 6.3.1
  • First release: Oct 22, 2015
  • Latest release: Dec 24, 2015
  • Number of updates: 9
  • Update frequency: every 7.1 days
  • Top authors: omurphy (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

300+ active /4,356 total downloads

Benchmarks

Plugin footprint 83% from 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.02MB] [CPU: ▼8.27ms] Passed 4 tests

Server-side resources used by Change Product Author for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.19 ▼8.29
Dashboard /wp-admin3.32 ▲0.0245.53 ▼0.76
Posts /wp-admin/edit.php3.38 ▲0.0246.54 ▲2.60
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.76 ▼23.01
Media Library /wp-admin/upload.php3.25 ▲0.0232.64 ▼1.00

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

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,819 ▲7313.24 ▼1.051.60 ▼0.0938.27 ▼5.26
Dashboard /wp-admin2,222 ▲335.85 ▲0.93100.61 ▼18.8239.39 ▼3.55
Posts /wp-admin/edit.php2,108 ▲162.00 ▲0.0242.95 ▼0.3137.60 ▲2.88
Add New Post /wp-admin/post-new.php1,551 ▲3118.38 ▼4.68607.64 ▼30.0257.57 ▼3.48
Media Library /wp-admin/upload.php1,404 ▲224.21 ▲0.0396.01 ▼4.5240.41 ▼3.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: author, woocommerce, product

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

The primary PHP file in "Change Product Author for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
78 characters long description:
Makes it easy to change the author assigned to a WooCommerce product post type

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
Everything looks great! No dangerous files found in this plugin79 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2207269
JavaScript12010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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
PNG images were not found in this plugin