99% advanced-product-author-for-woocommeerce

Code Review | Advanced Product Author For WooCommeerce

WordPress plugin Advanced Product Author For WooCommeerce scored 99% from 54 tests.

About plugin

  • Plugin page: advanced-product-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 5.9.2
  • First release: Apr 2, 2022
  • Latest release: Apr 4, 2022
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: sahilmultani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 23 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Server-side resources used by Advanced Product Author For WooCommeerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.91 ▼0.72
Dashboard /wp-admin3.41 ▲0.0033.59 ▼0.24
Posts /wp-admin/edit.php3.64 ▲0.0036.04 ▼3.01
Add New Post /wp-admin/post-new.php6.88 ▼0.0989.14 ▼1,226.81
Media Library /wp-admin/upload.php3.29 ▲0.0024.41 ▲1.04

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Product Author For WooCommeerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,807 ▲5316.20 ▲0.265.93 ▼0.723.04 ▼0.39
Dashboard /wp-admin2,904 ▲206.37 ▼0.09128.88 ▼12.88164.03 ▼0.32
Posts /wp-admin/edit.php2,694 ▼03.43 ▲0.0061.85 ▼0.31138.55 ▼5.62
Add New Post /wp-admin/post-new.php1,690 ▲2922.05 ▼0.27433.23 ▼9.15157.75 ▼3.22
Media Library /wp-admin/upload.php1,698 ▼05.73 ▲0.01144.65 ▼6.49182.72 ▼10.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt might help

advanced-product-author-for-woocommeerce/advanced-product-author-for-woocommerce.php 85% from 13 tests

The main file in "Advanced Product Author For WooCommeerce" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-product-author-for-woocommeerce.php" instead of "advanced-product-author-for-woocommerce.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin805 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP764388455
PO File47285271
JavaScript29248
CSS22831

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.57
Average class complexity10.20
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2288.00%
▷ Protected methods00.00%
▷ Private methods312.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
7 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-256x256.png12.55KB5.80KB▼ 53.75%
admin/images/help.png0.30KB0.32KB0.00%
admin/images/chosen-sprite.png0.53KB0.88KB0.00%
images/woo-icon.png0.99KB0.68KB▼ 31.14%
admin/images/chosen-sprite@2x.png0.72KB0.83KB0.00%