Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.82ms] Passed 4 tests
This is a short check of server-side resources used by Apaczka.pl WooCommerce 2.0
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.29 ▼9.29 |
Dashboard /wp-admin | 3.36 ▲0.02 | 47.89 ▼16.20 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.60 ▲1.95 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.36 ▼6.32 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.84 ▲0.52 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Apaczka.pl WooCommerce 2.0
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲59 | 14.27 ▲0.02 | 1.80 ▲0.14 | 39.01 ▼4.76 |
Dashboard /wp-admin | 2,194 ▲17 | 5.53 ▼0.11 | 90.68 ▼8.18 | 40.43 ▼6.95 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.96 ▼0.05 | 40.83 ▲0.67 | 35.96 ▼0.39 |
Add New Post /wp-admin/post-new.php | 1,531 ▲1 | 22.77 ▼0.33 | 652.75 ▲8.75 | 71.91 ▲7.59 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.21 ▼0.04 | 98.50 ▲0.34 | 43.01 ▲2.81 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/apaczka-pl/templates/html-order-metabox-calculate-result.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: calculate in wp-content/plugins/apaczka-pl/templates/html-order-metabox-calculate-result.php on line 15
- > PHP Notice
Undefined variable: package_send in wp-content/plugins/apaczka-pl/templates/html-order-metabox.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'Inspire_Labs\\Apaczka_Woocommerce\\Plugin\\Abstract_Ilabs_Plugin' not found in wp-content/plugins/apaczka-pl/src/Plugin.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Inspire_Labs\\Apaczka_Woocommerce\\Plugin\\Request_Filter_Interface' not found in wp-content/plugins/apaczka-pl/src/Plugin/Security_Request_Filter.php:5
- > PHP Notice
Undefined variable: package_send in wp-content/plugins/apaczka-pl/templates/html-order-metabox.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/apaczka-pl/templates/checkout/apaczka-review-order-after-shipping.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/apaczka-pl/templates/html-order-metabox.php:35
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/apaczka-pl/templates/html-order-metabox-calculate-result.php on line 15
- > PHP Fatal error
Trait 'Inspire_Labs\\Apaczka_Woocommerce\\Plugin\\Tools' not found in wp-content/plugins/apaczka-pl/src/Plugin/Abstract_Ilabs_Plugin.php on line 10
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #2, #4 in apaczka-pl/assets to your readme.txt
apaczka-pl/apaczka-pl.php 92% from 13 tests
The main file in "Apaczka.pl WooCommerce 2.0" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,346 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,383 | 1,104 | 6,088 |
JavaScript | 3 | 64 | 13 | 509 |
CSS | 2 | 96 | 4 | 457 |
PO File | 1 | 132 | 0 | 279 |
JSON | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 24.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 235.00 |
Average method complexity | 3.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 2 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 36 | 16.67% |
▷ Public methods | 169 | 78.24% |
▷ Protected methods | 8 | 3.70% |
▷ Private methods | 39 | 18.06% |
Functions | 17 | |
▷ Named functions | 3 | 17.65% |
▷ Anonymous functions | 14 | 82.35% |
Constants | 18 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 18 | 100.00% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/rhenus.png | 9.94KB | 4.46KB | ▼ 55.10% |
assets/img/pocztex.png | 5.80KB | 2.52KB | ▼ 56.59% |
assets/img/gls.png | 3.00KB | 1.62KB | ▼ 46.14% |
assets/img/orlen.png | 4.66KB | 2.18KB | ▼ 53.18% |
assets/img/fedex.png | 3.02KB | 1.54KB | ▼ 49.05% |