Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/woo-price-updater/classes/Woocommerce_Price_Updater_Plugin.php+32
Use of undefined constant WOOCOMMERCE_WOOCOMMERCE_PRICE_UPDATER_NAMESPACE - assumed 'WOOCOMMERCE_WOOCOMMERCE_PRICE_UPDATER_NAMESPACE' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.87MB] [CPU: ▼39.39ms] Passed 4 tests
A check of server-side resources used by WooCommerce Price Updater
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 42.45 ▼0.19 |
Dashboard /wp-admin | 3.09 ▼0.26 | 23.30 ▼45.70 |
Posts /wp-admin/edit.php | 3.09 ▼0.27 | 24.02 ▼27.60 |
Add New Post /wp-admin/post-new.php | 3.09 ▼2.80 | 26.47 ▼71.15 |
Media Library /wp-admin/upload.php | 3.09 ▼0.14 | 23.06 ▼13.10 |
Price Updater /wp-admin/edit.php?post_type=product&page=woo-price-updater | 3.07 | 26.53 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
WooCommerce Price Updater: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,457 ▼1,329 | 11.84 ▼2.43 | 1.99 ▼0.03 | 42.33 ▼0.93 |
Dashboard /wp-admin | 850 ▼1,320 | 1.36 ▼4.31 | 14.11 ▼87.71 | 18.40 ▼23.32 |
Posts /wp-admin/edit.php | 861 ▼1,242 | 1.51 ▼0.50 | 6.94 ▼31.86 | 19.77 ▼18.65 |
Add New Post /wp-admin/post-new.php | 587 ▼941 | 1.71 ▼21.44 | 18.52 ▼622.84 | 7.88 ▼63.12 |
Media Library /wp-admin/upload.php | 746 ▼651 | 1.71 ▼2.46 | 23.06 ▼82.24 | 23.37 ▼20.83 |
Price Updater /wp-admin/edit.php?post_type=product&page=woo-price-updater | 28 | 0.42 | 0.09 | 5.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/woo-price-updater/classes/Woocommerce_Price_Updater_Plugin.php+41
Use of undefined constant WOOCOMMERCE_WOOCOMMERCE_PRICE_UPDATER_NAMESPACE - assumed 'WOOCOMMERCE_WOOCOMMERCE_PRICE_UPDATER_NAMESPACE' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/woo-price-updater/woocommerce-price-updater.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WOOCOMMERCE_PRICE_UPDATER_ADMIN_URL - assumed 'WOOCOMMERCE_PRICE_UPDATER_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-price-updater/templates/admin-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/woo-price-updater/templates/admin-form.php:3
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=product&page=woo-price-updater
- > Network (severe)
wp-admin/edit.php?post_type=product&page=woo-price-updater - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (The plugin interface is one powerfull filter and update form located under `Products` > `Price Updater`) image missing
woo-price-updater/woocommerce-price-updater.php 92% from 13 tests
The primary PHP file in "WooCommerce Price Updater" version 0.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-price-updater.php" instead of "woocommerce-price-updater.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin781 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 72 | 198 | 479 |
CSS | 1 | 34 | 0 | 160 |
JavaScript | 1 | 32 | 48 | 119 |
SVG | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 7 | 38.89% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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