Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.26MB] [CPU: ▼0.18ms] Passed 4 tests
A check of server-side resources used by Sherpa Delivery for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 41.35 ▼0.54 |
Dashboard /wp-admin | 3.56 ▲0.26 | 46.72 ▼2.23 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 47.17 ▼1.58 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.26 | 90.35 ▲6.20 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 36.58 ▲3.63 |
Server storage [IO: ▲2.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 86 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_sherpa_entity_options |
New WordPress options |
---|
my_plugin_db_version |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sherpa Delivery for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.58 ▼1.00 | 1.69 ▼0.38 | 38.15 ▼8.90 |
Dashboard /wp-admin | 2,213 ▲25 | 4.86 ▼1.02 | 99.89 ▼2.15 | 38.15 ▼1.61 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▼0.00 | 40.17 ▲1.23 | 35.12 ▼5.63 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.22 ▲5.40 | 624.39 ▼34.99 | 66.57 ▲10.94 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▲0.04 | 102.91 ▼4.99 | 43.27 ▼2.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-admin/includes/plugin.php+1242
Constant WP_UNINSTALL_PLUGIN already defined
- This plugin does not fully uninstall, leaving 7 options in the database
- my_plugin_db_version
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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)
Even though everything seems fine, this is not 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sherpa-on-demand/includes/Sherpa/Api/Endpoints/Deliveries.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sherpa_Configurations' not found in wp-content/plugins/sherpa-on-demand/templates/adminhtml/services.php:51
- > PHP Fatal error
Uncaught Error: Class 'Sherpa_Configurations' not found in wp-content/plugins/sherpa-on-demand/templates/frontend/cart/shipping-sherpa.php:3
- > PHP Fatal error
Uncaught Error: Class 'Sherpa_Configurations' not found in wp-content/plugins/sherpa-on-demand/templates/adminhtml/html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sherpa-on-demand/sherpa.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/sherpa-on-demand/includes/Sherpa/Sherpa.php:12
- > PHP Fatal error
Uncaught Error: Class 'Sherpa_Abstract' not found in wp-content/plugins/sherpa-on-demand/includes/Sherpa/Rate.php:14
- > PHP Fatal error
Uncaught Error: Class 'Sherpa_Abstract' not found in wp-content/plugins/sherpa-on-demand/includes/Sherpa/Quote.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sherpa-on-demand/templates/adminhtml/shipping-services.php:4
- > PHP Fatal error
Uncaught Error: Class 'Sherpa_Varien_Io_Abstract' not found in wp-content/plugins/sherpa-on-demand/includes/Sherpa/Varien/Io/File.php:35
- > PHP Fatal error
Uncaught Error: Class 'Sherpa_Api_Abstract' not found in wp-content/plugins/sherpa-on-demand/includes/Sherpa/Api/Request.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 23 tag instead of maximum 10
sherpa-on-demand/sherpa.php 85% from 13 tests
The main file in "Sherpa Delivery for WooCommerce" v. 3.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sherpa-on-demand.php" instead of "sherpa.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
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
Good job! No executable or dangerous file extensions detected14,686 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 1,802 | 115 | 6,416 |
PHP | 34 | 1,296 | 1,392 | 5,958 |
JavaScript | 7 | 130 | 130 | 1,416 |
SVG | 1 | 0 | 0 | 655 |
Sass | 1 | 48 | 3 | 241 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 33.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 231.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 3 | 13.04% |
▷ Concrete classes | 20 | 86.96% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 12 | 5.69% |
▷ Public methods | 174 | 82.46% |
▷ Protected methods | 25 | 11.85% |
▷ Private methods | 12 | 5.69% |
Functions | 12 | |
▷ Named functions | 5 | 41.67% |
▷ Anonymous functions | 7 | 58.33% |
Constants | 56 | |
▷ Global constants | 15 | 26.79% |
▷ Class constants | 41 | 73.21% |
▷ Public constants | 41 | 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
17 PNG files occupy 0.21MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sherpa_van.png | 192.52KB | 60.98KB | ▼ 68.33% |
assets/images/help.png | 1.58KB | 0.78KB | ▼ 50.34% |
assets/css/images/icon-cal.png | 0.36KB | 0.34KB | ▼ 6.25% |
assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.29KB | 0.15KB | ▼ 49.83% |