99% change-product-author-for-woocommerce

Code Review | Change Product Author for Woocommerce

WordPress plugin Change Product Author for Woocommerce scored 99% from 54 tests.

About plugin

  • Plugin page: change-product-au...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 5.9.2
  • First release: Nov 20, 2020
  • Latest release: Mar 5, 2021
  • Number of updates: 8
  • Update frequency: every 13.3 days
  • Top authors: devxart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 179 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼291.27ms] Passed 4 tests

Analyzing server-side resources used by Change Product Author for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.83 ▲6.19
Dashboard /wp-admin3.41 ▲0.0133.41 ▲0.80
Posts /wp-admin/edit.php3.64 ▲0.0138.98 ▲3.59
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.63 ▼1,162.84
Media Library /wp-admin/upload.php3.30 ▼0.0023.33 ▼6.62

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Change Product Author for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2116.13 ▲0.486.35 ▲0.503.31 ▲1.18
Dashboard /wp-admin2,892 ▲316.16 ▼0.01114.92 ▼20.39155.65 ▼6.39
Posts /wp-admin/edit.php2,691 ▲33.24 ▲0.0063.30 ▼3.00141.92 ▼2.90
Add New Post /wp-admin/post-new.php1,661 ▼3522.32 ▲1.21402.74 ▼8.82156.31 ▼0.96
Media Library /wp-admin/upload.php1,701 ▲65.49 ▼0.06147.78 ▲8.92180.03 ▼10.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: change product for woocommerce, woocommerce, change author

change-product-author-for-woocommerce/config.php 85% from 13 tests

"Change Product Author for Woocommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 209 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("change-product-author-for-woocommerce.php" instead of "config.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1388

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin