89% bulk-woocommerce-tag-creator

Code Review | Bulk WooCommerce Tag Creator

WordPress plugin Bulk WooCommerce Tag Creator scored 89% from 54 tests.

About plugin

  • Plugin page: bulk-woocommerce-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Jul 11, 2019
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: pije76 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 531 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Bulk WooCommerce Tag Creator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.87 ▼6.39
Dashboard /wp-admin3.31 ▲0.0054.06 ▲4.64
Posts /wp-admin/edit.php3.36 ▲0.0048.74 ▼0.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.47 ▲8.79
Media Library /wp-admin/upload.php3.23 ▲0.0036.11 ▲3.98

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Bulk WooCommerce Tag Creator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼0.884.69 ▲2.6243.73 ▲6.69
Dashboard /wp-admin2,209 ▲214.93 ▼0.95112.35 ▼2.8245.80 ▼1.02
Posts /wp-admin/edit.php2,089 ▼32.06 ▲0.0741.49 ▼0.5135.19 ▼4.63
Add New Post /wp-admin/post-new.php1,544 ▲1118.36 ▼4.83625.71 ▼20.0367.05 ▲5.25
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0098.54 ▼6.7344.42 ▲0.49

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% 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: Screenshot #1 (Bulk WooCommerce Tag Creator Page) image not found
The official readme.txt is a good inspiration

bulk-woocommerce-tag-creator/bulk-wc-tag-creator.php 85% from 13 tests

"Bulk WooCommerce Tag Creator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("bulk-woocommerce-tag-creator.php" instead of "bulk-wc-tag-creator.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("1.3" instead of "3.0.0")

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
Good job! No executable or dangerous file extensions detected122 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16168122
JavaScript1010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods990.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/screenshot.png26.57KB10.80KB▼ 59.34%