84% bulk-product-price-change

Code Review | Update Bulk Product Prices

WordPress plugin Update Bulk Product Prices scored84%from 54 tests.

About plugin

  • Plugin page: bulk-product-pric...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.2
  • WordPress version: 6.3.1
  • First release: Aug 9, 2019
  • Latest release: Aug 9, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: shanijangee007 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /649 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.05MB] [CPU: ▼5.63ms] Passed 4 tests

This is a short check of server-side resources used by Update Bulk Product Prices
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.95 ▼4.41
Dashboard /wp-admin3.36 ▲0.0253.12 ▼12.13
Posts /wp-admin/edit.php3.41 ▲0.0655.05 ▼1.36
Add New Post /wp-admin/post-new.php5.96 ▲0.0894.19 ▼4.60
Media Library /wp-admin/upload.php3.29 ▲0.0641.74 ▲8.13
Bulk Update Product Prices /wp-admin/options-general.php?page=bulk_update_product_prices_home_page3.2534.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Update Bulk Product Prices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.67 ▲0.411.53 ▼0.2440.71 ▼3.18
Dashboard /wp-admin2,203 ▲235.68 ▲0.1190.50 ▲0.3441.37 ▼3.38
Posts /wp-admin/edit.php2,108 ▲52.02 ▲0.0539.62 ▼2.2035.35 ▼6.92
Add New Post /wp-admin/post-new.php1,542 ▲518.13 ▼0.08612.71 ▼55.4665.58 ▲0.19
Media Library /wp-admin/upload.php1,411 ▲114.28 ▲0.06111.56 ▲5.8146.32 ▲1.24
Bulk Update Product Prices /wp-admin/options-general.php?page=bulk_update_product_prices_home_page9232.0126.4741.52

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-product-price-change/admin/admin.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: change prices, product prices, bulk price, update prices

bulk-product-price-change/index.php 92% from 13 tests

Analyzing the main PHP file in "Update Bulk Product Prices" version 1.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bulk-product-price-change.php" instead of "index.php")

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
There were no executable files found in this plugin469 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP27789321
CSS10192
JavaScript2142156

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected