Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.84MB] [CPU: ▼0.92ms] Passed 4 tests
Analyzing server-side resources used by Shiptimize for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.87 | 46.85 ▲3.48 |
Dashboard /wp-admin | 4.15 ▲0.84 | 53.02 ▼2.53 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 60.71 ▲3.09 |
Add New Post /wp-admin/post-new.php | 6.73 ▲0.84 | 90.09 ▼7.73 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 51.53 ▲15.17 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 87 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_shiptimize_marketplace_order |
wp_shiptimize |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
shiptimize_db_version |
widget_recent-posts |
shiptimize_app_version |
Browser metrics Passed 4 tests
Shiptimize 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,830 ▲44 | 14.35 ▼0.01 | 1.79 ▼0.44 | 40.73 ▼1.53 |
Dashboard /wp-admin | 2,198 ▲18 | 5.54 ▼0.07 | 90.92 ▼3.17 | 40.11 ▲0.23 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▲0.07 | 39.30 ▼2.51 | 37.30 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,532 ▼5 | 23.24 ▲4.98 | 673.58 ▲43.31 | 55.40 ▼10.82 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▼0.07 | 98.23 ▼14.47 | 41.22 ▼4.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_shiptimize_marketplace_order
- wp_shiptimize
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- shiptimize_db_version
- shiptimize_app_version
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/shiptimize-for-woocommerce/index.php
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(SHIPTIMIZE_PLUGIN_PATH/includes/admin/class-shiptimize-order-ui.php): failed to open stream: No such file or directory in wp-content/plugins/shiptimize-for-woocommerce/includes/plugins/class-shiptimize-dokan.php on line 3
- > PHP Warning
include_once(): Failed opening 'SHIPTIMIZE_PLUGIN_PATH/includes/core/class-shiptimize-api-v3.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'ShiptimizeOptionsUI' not found in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui-default.php:4
- > PHP Warning
include_once(SHIPTIMIZE_PLUGIN_PATH/includes/core/class-shiptimize-api-v3.php): failed to open stream: No such file or directory in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui.php on line 3
- > PHP Warning
Use of undefined constant SHIPTIMIZE_PLUGIN_PATH - assumed 'SHIPTIMIZE_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui-default.php on line 2
- > PHP Warning
include_once(): Failed opening 'SHIPTIMIZE_PLUGIN_PATH/includes/admin/class-shiptimize-options-ui.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-options-ui-default.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shiptimize-for-woocommerce/includes/plugins/class-shiptimize-wcfm.php on line 2
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-includes/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shiptimize-for-woocommerce/includes/plugins/class-shiptimize-wcfm.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'SHIPTIMIZE_PLUGIN_PATH/includes/class-woo-shiptimize-order.php' (include_path='.:/usr/share/php') in wp-content/plugins/shiptimize-for-woocommerce/includes/admin/class-shiptimize-order-ui.php on line 3
- > PHP Warning
Use of undefined constant SHIPTIMIZE_PLUGIN_PATH - assumed 'SHIPTIMIZE_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shiptimize-for-woocommerce/includes/plugins/class-shiptimize-dokan.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in shiptimize-for-woocommerce/assets to your readme.txt
shiptimize-for-woocommerce/shiptimize.php 85% from 13 tests
Analyzing the main PHP file in "Shiptimize for WooCommerce" version 3.1.71
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.9" instead of "3.0.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("shiptimize-for-woocommerce.php" instead of "shiptimize.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected8,103 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 1,554 | 2,059 | 6,516 |
CSS | 3 | 205 | 45 | 1,035 |
SVG | 8 | 0 | 5 | 279 |
JavaScript | 7 | 35 | 30 | 183 |
PO File | 3 | 12 | 16 | 90 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 62.21 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 4 | 28.57% |
▷ Concrete classes | 10 | 71.43% |
▷ Final classes | 0 | 0.00% |
Methods | 357 | |
▷ Static methods | 47 | 13.17% |
▷ Public methods | 320 | 89.64% |
▷ Protected methods | 20 | 5.60% |
▷ Private methods | 17 | 4.76% |
Functions | 10 | |
▷ Named functions | 3 | 30.00% |
▷ Anonymous functions | 7 | 70.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
29 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/markers/30_2.png | 3.33KB | 1.93KB | ▼ 42.07% |
assets/images/markers/60.png | 3.41KB | 1.92KB | ▼ 43.73% |
assets/images/markers/45.png | 4.77KB | 2.28KB | ▼ 52.25% |
assets/images/markers/54.png | 4.84KB | 2.54KB | ▼ 47.39% |
assets/images/markers/selected.png | 15.54KB | 0.79KB | ▼ 94.91% |