Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.03ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Pakettikauppa
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.09 ▲0.94 |
Dashboard /wp-admin | 3.39 ▲0.09 | 42.92 ▼2.68 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 43.89 ▼1.28 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.08 ▼8.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 30.86 ▲0.03 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Pakettikauppa
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.16 ▼1.43 | 1.86 ▲0.03 | 42.08 ▼2.10 |
Dashboard /wp-admin | 2,210 ▲19 | 5.80 ▼0.23 | 96.35 ▼4.09 | 38.25 ▼1.96 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 35.16 ▼4.64 | 33.21 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.25 ▲5.05 | 651.01 ▲20.77 | 59.83 ▲12.27 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.29 ▲0.09 | 94.04 ▼18.47 | 43.32 ▲0.06 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 10× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/get-pickup-point-info.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/create-shipment.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/log-api-requests.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/find-city-by-postcode.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/list-additional-services.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/search-pickup-points.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/search-pickup-points-text.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/get-shipment-status.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/list-shipping-methods.php
- > /wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/estimate-price.php
- 26× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/estimate-price.php on line 10
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/list-additional-services.php on line 10
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/get-shipment-status.php on line 9
- > PHP Warning
require(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/find-city-by-postcode.php on line 5
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/get-pickup-point-info.php on line 5
- > PHP Warning
require(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/get-pickup-point-info.php on line 5
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/list-shipping-methods.php on line 10
- > PHP Warning
Declaration of Pakettikauppa\\SimpleXMLElement::addChild(string $qualifiedName, ?string $value = NULL, ?string $namespace = NULL): ?Pakettikauppa\\SimpleXMLElement should be compatible with SimpleXMLElement::addChild($name, $value = NULL, $ns = NULL) in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/src/Pakettikauppa/SimpleXMLElement.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/woo-pakettikauppa/templates/pakettikauppa/tracking-email-html.php:11
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-pakettikauppa/vendor/pakettikauppa/api-library/examples/log-api-requests.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
woo-pakettikauppa/wc-pakettikauppa.php 92% from 13 tests
The main file in "WooCommerce Pakettikauppa" v. 3.9.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-pakettikauppa.php" instead of "wc-pakettikauppa.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
Everything looks great! No dangerous files found in this plugin11,645 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 1,574 | 2,120 | 7,816 |
PO File | 4 | 907 | 1,097 | 2,339 |
CSS | 6 | 50 | 9 | 550 |
JavaScript | 5 | 78 | 10 | 494 |
JSON | 3 | 1 | 0 | 154 |
XML | 3 | 35 | 64 | 118 |
Markdown | 2 | 63 | 0 | 114 |
YAML | 3 | 3 | 18 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 39.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 262.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 536 | |
▷ Static methods | 29 | 5.41% |
▷ Public methods | 474 | 88.43% |
▷ Protected methods | 12 | 2.24% |
▷ Private methods | 50 | 9.33% |
Functions | 25 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 25 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ 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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.github/travis-ci-repo-active.png | 6.28KB | 3.72KB | ▼ 40.80% |
assets/img/pakettikauppa-logo-black.png | 5.70KB | 4.81KB | ▼ 15.66% |
.github/travis-ci-sync.png | 4.08KB | 2.59KB | ▼ 36.49% |
assets/img/pakettikauppa-logo.png | 20.62KB | 4.81KB | ▼ 76.70% |
.github/travis-ci-manual-trigger.png | 19.37KB | 9.48KB | ▼ 51.07% |