84% woo-csv-price

Code Review | Woocommerce CSV Price

WordPress plugin Woocommerce CSV Price scored84%from 54 tests.

About plugin

  • Plugin page: woo-csv-price
  • Plugin version: 0.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 13, 2018
  • Latest release: Aug 13, 2018
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: aryaalireza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /620 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.19ms] Passed 4 tests

A check of server-side resources used by Woocommerce CSV Price
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.50 ▲1.28
Dashboard /wp-admin3.31 ▲0.0145.32 ▼1.52
Posts /wp-admin/edit.php3.36 ▲0.0147.60 ▼3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0178.77 ▼31.73
Media Library /wp-admin/upload.php3.23 ▲0.0133.28 ▲0.18

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Woocommerce CSV Price
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.23 ▼1.061.88 ▲0.2639.15 ▼0.57
Dashboard /wp-admin2,212 ▲264.84 ▼0.10109.44 ▲2.1339.67 ▼2.07
Posts /wp-admin/edit.php2,101 ▲122.04 ▼0.0239.29 ▲1.2335.55 ▲2.64
Add New Post /wp-admin/post-new.php1,523 ▲917.38 ▼0.10665.72 ▼29.0068.40 ▲5.22
Media Library /wp-admin/upload.php1,394 ▲64.25 ▲0.0395.17 ▼11.7044.44 ▼2.50

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-csv-price/view/footer.php:5

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

Optimizations

Plugin configuration 97% 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
Attributes that require attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

woo-csv-price/woo-csv-price.php Passed 13 tests

The main PHP file in "Woocommerce CSV Price" ver. 0.4 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
This plugin update and edit woocommerce products price with CSV file as easily.

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 plugin550 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP111220328
CSS300134
PO File1263088

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png1.42KB0.92KB▼ 35.37%