Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.19ms] Passed 4 tests
Analyzing server-side resources used by Emo Bulk Update Prices for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.08 ▲1.91 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.51 ▼13.19 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 42.27 ▼8.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.76 ▼17.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.44 ▲1.54 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Emo Bulk Update Prices for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.19 ▼1.59 | 1.93 ▲0.12 | 42.68 ▲2.29 |
Dashboard /wp-admin | 2,214 ▲32 | 5.83 ▲0.94 | 109.58 ▼3.70 | 39.57 ▼0.21 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.14 ▲0.10 | 34.42 ▼3.90 | 36.63 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,555 ▲13 | 18.60 ▲0.57 | 643.42 ▼14.85 | 66.10 ▲14.32 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.22 ▲0.02 | 98.47 ▼1.60 | 41.82 ▼3.33 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following items
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'EMO_BUPW\\EMO_BUPW_Form_Error' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/EMO_BUPW_Form_File_Error.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/templates/group-discount.php:1
- > PHP Fatal error
Uncaught Error: Interface 'EMO_BUPW\\Repository\\WOO_Product\\EMO_BUPW_Product_Interface' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Repository/WOO_Product/EMO_BUPW_Variation.php:6
- > PHP Fatal error
Uncaught Error: Class 'EMO_BUPW\\Repository\\File_Handlers\\EMO_BUPW_File_Handler' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Repository/File_Handlers/EMO_BUPW_Csv_Handler.php:15
- > PHP Fatal error
Uncaught Error: Interface 'EMO_BUPW\\Form_Handlers\\EMO_BUPW_Form_Submit' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Form_Handlers/EMO_BUPW_Form_Products_Price_List.php:12
- > PHP Fatal error
Uncaught Error: Class 'EMO_BUPW\\Repository\\EMO_BUPW_DB' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Repository/EMO_BUPW_DB_Get_All_Products_ID.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/templates/group-price-update.php:14
- > PHP Fatal error
Uncaught Error: Interface 'EMO_BUPW\\Repository\\WOO_Product\\EMO_BUPW_Product_Interface' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Repository/WOO_Product/EMO_BUPW_Product.php:5
- > PHP Fatal error
Uncaught Error: Interface 'EMO_BUPW\\Form_Handlers\\EMO_BUPW_Form_Field_Setter' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Form_Handlers/EMO_BUPW_Form_Update_Price.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/functions/functions-admin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: woocommerce, woocommerce add-on, bulk update prices, update price
emo-bulk-update-prices-for-woocommerce/emo-bulk-update-prices-for-woocommerce.php Passed 13 tests
The principal PHP file in "Emo Bulk Update Prices for WooCommerce" v. 1.2.0 is loaded by WordPress automatically on each request
140 characters long description:
A powerful system in bulk update WooCommerce products prices that additionally, is able to set discount in bulk way on WooCommerce products.
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
Success! There were no dangerous files found in this plugin2,078 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 392 | 773 | 2,063 |
CSS | 1 | 2 | 0 | 10 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 6.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 33 | 26.83% |
▷ Public methods | 102 | 82.93% |
▷ Protected methods | 2 | 1.63% |
▷ Private methods | 19 | 15.45% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-icon.png | 1.87KB | 0.89KB | ▼ 52.58% |