89% change-woocommerce-product-author

Code Review | Change WooCommerce Authorship - Migrate WC Product Author Ownership

WordPress plugin Change WooCommerce Authorship - Migrate WC Product Author Ownership scored 89% from 54 tests.

About plugin

  • Plugin page: change-woocommerc...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Apr 24, 2019
  • Latest release: Aug 22, 2021
  • Number of updates: 10
  • Update frequency: every 85.1 days
  • Top authors: fahimmurshed (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 4,002 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
Installer ran successfully

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

A check of server-side resources used by Change WooCommerce Authorship - Migrate WC Product Author Ownership
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.17 ▼1.63
Dashboard /wp-admin3.31 ▲0.0145.57 ▼4.32
Posts /wp-admin/edit.php3.36 ▲0.0047.18 ▲3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.23 ▼4.44
Media Library /wp-admin/upload.php3.23 ▲0.0032.98 ▼1.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Change WooCommerce Authorship - Migrate WC Product Author Ownership
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼1.061.83 ▼0.1543.19 ▼4.99
Dashboard /wp-admin2,203 ▲155.81 ▲0.9096.62 ▼20.7538.70 ▼5.97
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0039.39 ▲2.7035.24 ▲2.41
Add New Post /wp-admin/post-new.php1,542 ▼018.37 ▲0.11595.57 ▼54.5850.75 ▼1.99
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0296.50 ▼4.6244.25 ▲0.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: change author, woocommerce product, woocommerce product author, woocommerce product ownership, change product author

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

Analyzing the main PHP file in "Change WooCommerce Authorship - Migrate WC Product Author Ownership" version 1.0.7
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("change-woocommerce-product-author.php" instead of "cwpa.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)

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
PHP13118

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.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 are no PNG files in this plugin