90% woo-bulk-copy

Code Review | WooCommerce Bulk Copy

WordPress plugin WooCommerce Bulk Copy scored90%from 54 tests.

About plugin

  • Plugin page: woo-bulk-copy
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.0
  • WordPress version: 6.3.1
  • First release: Jan 1, 2019
  • Latest release: Jan 2, 2019
  • Number of updates: 3
  • Update frequency: every 15.0 days
  • Top authors: moacirbrg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by WooCommerce Bulk Copy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.33 ▲0.62
Dashboard /wp-admin3.31 ▲0.0049.50 ▼4.43
Posts /wp-admin/edit.php3.36 ▲0.0051.78 ▲1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.67 ▼10.15
Media Library /wp-admin/upload.php3.23 ▲0.0036.92 ▲0.78

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Bulk Copy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.131.61 ▼0.0342.95 ▼0.90
Dashboard /wp-admin2,198 ▲215.63 ▲0.0281.26 ▼15.0240.60 ▼0.92
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0138.85 ▼2.7035.30 ▼2.36
Add New Post /wp-admin/post-new.php1,528 ▲223.24 ▼0.34603.43 ▼78.1261.91 ▲0.86
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.07101.76 ▼6.1741.92 ▼5.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: woocommerce, copy products, bulk update, bulk coyp

woo-bulk-copy/woo-bulk-copy.php 92% from 13 tests

The main PHP script in "WooCommerce Bulk Copy" version 0.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "4.9.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected706 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10128114600
PO File1293178
Markdown111028

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.75
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods49
▷ Static methods3469.39%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin