Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.89ms] Passed 4 tests
Analyzing server-side resources used by Innozilla Per Product Shipping WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.79 ▼3.14 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.63 ▼0.94 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.31 ▲2.18 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 83.88 ▼11.04 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 33.92 ▼0.42 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_innozilla_per_product_shipping_rules_woo |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
IPPSW_PER_PRODUCT_SHIPPING_VERSION |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Innozilla Per Product Shipping WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 13.21 ▼1.41 | 1.83 ▼0.10 | 40.57 ▼6.90 |
Dashboard /wp-admin | 2,223 ▲38 | 4.85 ▼1.00 | 96.65 ▼5.91 | 39.69 ▼6.98 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.00 ▼0.03 | 39.22 ▼0.77 | 36.19 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,528 ▲8 | 23.09 ▼0.25 | 625.04 ▼55.83 | 61.09 ▼4.37 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.19 ▲0.06 | 98.19 ▼10.18 | 44.22 ▼2.31 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- IPPSW_PER_PRODUCT_SHIPPING_VERSION
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant IPPSW_PLUGIN_DIR - assumed 'IPPSW_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/innozilla-per-product-shipping-woocommerce/includes/init.php on line 10
- > PHP Warning
require_once(IPPSW_PLUGIN_DIR/includes/ippsw-admin.php): failed to open stream: No such file or directory in wp-content/plugins/innozilla-per-product-shipping-woocommerce/includes/init.php on line 10
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/innozilla-per-product-shipping-woocommerce/classes/Setup.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/innozilla-per-product-shipping-woocommerce/classes/Setup.php:7
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/innozilla-per-product-shipping-woocommerce/classes/Setup.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'IPPSW_Exception' not found in wp-content/plugins/innozilla-per-product-shipping-woocommerce/classes/exceptions/Missing_Dependencies_Exception.php:3
- > PHP Fatal error
require_once(): Failed opening required 'IPPSW_PLUGIN_DIR/includes/ippsw-admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/innozilla-per-product-shipping-woocommerce/includes/init.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/innozilla-per-product-shipping-woocommerce/woocommerce-innozilla-shipping-per-product.php:19
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/innozilla-per-product-shipping-woocommerce/classes/Setup.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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: shipping, per product shipping, variation, woocommerce
innozilla-per-product-shipping-woocommerce/woocommerce-innozilla-shipping-per-product.php 77% from 13 tests
The main PHP file in "Innozilla Per Product Shipping WooCommerce" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("innozilla-per-product-shipping-woocommerce.php" instead of "woocommerce-innozilla-shipping-per-product.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin822 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 162 | 189 | 680 |
CSS | 1 | 22 | 0 | 141 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 81.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 18.75% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected