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
Install script ran successfully
Server metrics [RAM: ▲0.73MB] [CPU: ▼4.43ms] Passed 4 tests
This is a short check of server-side resources used by Shipping with ShipSmart for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.86 | 47.16 ▲5.90 |
Dashboard /wp-admin | 4.17 ▲0.87 | 53.18 ▲6.62 |
Posts /wp-admin/edit.php | 4.12 ▲0.77 | 40.92 ▼12.16 |
Add New Post /wp-admin/post-new.php | 6.32 ▲0.43 | 73.43 ▼17.06 |
Media Library /wp-admin/upload.php | 4.09 ▲0.86 | 41.56 ▲5.61 |
ShipSmart /wp-admin/admin.php?page=shipsmart | 4.00 | 33.73 |
Server storage [IO: ▲2.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 355 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Shipping with ShipSmart for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 15.92 ▲1.54 | 32.66 ▲30.65 | 39.94 ▼7.95 |
Dashboard /wp-admin | 2,234 ▲46 | 5.88 ▲0.09 | 114.94 ▼4.76 | 41.05 ▼3.54 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.80 ▲0.76 | 51.12 ▲14.45 | 35.52 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 23.63 ▲0.67 | 687.87 ▲19.64 | 65.28 ▲12.66 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 5.14 ▲0.94 | 105.21 ▲1.75 | 42.06 ▲0.35 |
ShipSmart /wp-admin/admin.php?page=shipsmart | 1,081 | 2.55 | 40.55 | 26.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
- 190× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/shipsmart/vendor/dusank/knapsack/tests/scenarios/CustomPassthroughFunctionTest.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function ShipSmart\\Providers\\ShipSmart\\add_filter() in wp-content/plugins/shipsmart/src/Providers/Config/SSFW_Shipping_Method.php:10
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Helper\\Table' not found in wp-content/plugins/shipsmart/vendor/dusank/knapsack/tests/performance/map_vs_array_map.php:230
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/shipsmart/vendor/dusank/knapsack/tests/scenarios/CallableFuctionNamesTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Definition\\DefinitionAggregateInterface' not found in wp-content/plugins/shipsmart/vendor/league/container/src/Definition/DefinitionAggregate.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/shipsmart/vendor/league/container/src/Exception/ContainerException.php:8
- > PHP Fatal error
Uncaught Error: Class 'PhpSpec\\ObjectBehavior' not found in wp-content/plugins/shipsmart/vendor/dusank/knapsack/tests/spec/Exceptions/NoMoreItemsSpec.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Cedaro\\WP\\Plugin\\PluginInterface' not found in wp-content/plugins/shipsmart/vendor/cedaro/wp-plugin/src/AbstractPlugin.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/shipsmart/vendor/cedaro/wp-plugin/tests/PluginTest.php:6
- > PHP Fatal error
Uncaught Error: Interface 'League\\Container\\Inflector\\InflectorAggregateInterface' not found in wp-content/plugins/shipsmart/vendor/league/container/src/Inflector/InflectorAggregate.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=shipsmart
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=shipsmart 190 The specified value "Atualizar pedidos" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=shipsmart
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=shipsmart 192 The specified value "Atualizar pedidos" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=shipsmart
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=shipsmart 194 The specified value "Atualizar pedidos" cannot be parsed, or is out of range.
- > GET request to /wp-admin/admin.php?page=shipsmart
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=shipsmart 196 The specified value "Atualizar pedidos" cannot be parsed, or is out of range.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Configuração Geral), #2 (Lista de Shipping Methods), #3 (Configurações da Ship Smart), #4 (Página do carrinho), #5 (Página de produto)
shipsmart/shipsmart.php 92% from 13 tests
"Shipping with ShipSmart for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin30,816 lines of code in 321 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 13 | 0 | 0 | 16,745 |
PHP | 237 | 2,246 | 4,265 | 9,793 |
Markdown | 13 | 378 | 0 | 1,785 |
JavaScript | 25 | 211 | 238 | 1,137 |
Sass | 15 | 167 | 40 | 843 |
YAML | 9 | 53 | 3 | 239 |
PO File | 2 | 48 | 78 | 147 |
XML | 5 | 8 | 2 | 125 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 3.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 26 | |
Traits | 12 | |
Classes | 183 | |
▷ Abstract classes | 14 | 7.65% |
▷ Concrete classes | 169 | 92.35% |
▷ Final classes | 0 | 0.00% |
Methods | 692 | |
▷ Static methods | 48 | 6.94% |
▷ Public methods | 621 | 89.74% |
▷ Protected methods | 62 | 8.96% |
▷ Private methods | 9 | 1.30% |
Functions | 274 | |
▷ Named functions | 105 | 38.32% |
▷ Anonymous functions | 169 | 61.68% |
Constants | 23 | |
▷ Global constants | 1 | 4.35% |
▷ Class constants | 22 | 95.65% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/sprite/refresh-icon.png | 14.26KB | 4.75KB | ▼ 66.67% |
dist/images/refresh-icon.6e7225bab3.png | 4.72KB | 4.75KB | 0.00% |