Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.06ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce Deutsche Post Internetmarke
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 41.82 ▼2.42 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.16 ▼6.49 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.16 ▼0.71 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.46 ▼10.63 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 37.35 ▲0.06 |
Server storage [IO: ▲5.77MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 638 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_wcdpi_shipment_item |
wp_wcdpi_product_additional |
wp_wcdpi_product_sales |
wp_wcdpi_product_basic |
wp_wcdpi_shipment |
wp_wcdpi_shipment_attachment |
wp_wcdpi_page_format |
New WordPress options |
---|
widget_recent-posts |
internetmarke_db_version |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Deutsche Post Internetmarke
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.60 ▼1.01 | 1.75 ▼0.13 | 42.21 ▼3.73 |
Dashboard /wp-admin | 2,206 ▲21 | 4.83 ▼1.07 | 109.25 ▲6.64 | 43.57 ▲2.44 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.02 | 39.38 ▼1.02 | 34.43 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.03 ▲0.06 | 630.73 ▼23.26 | 62.21 ▲8.81 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.26 ▲0.02 | 101.16 ▼4.15 | 41.45 ▼4.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 7 tables in the database
- wp_wcdpi_product_additional
- wp_wcdpi_page_format
- wp_wcdpi_shipment
- wp_wcdpi_product_basic
- wp_wcdpi_shipment_attachment
- wp_wcdpi_shipment_item
- wp_wcdpi_product_sales
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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 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 fix the following items
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/tutorial/tuto2.php
- > /wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/tutorial/tuto7.php
- > /wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/tutorial/tuto4.php
- > /wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/tutorial/tuto6.php
- > /wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/tutorial/tuto1.php
- > /wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/tutorial/makefont.php
- > /wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/tutorial/tuto3.php
- > /wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/tutorial/tuto5.php
- 201× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DeutschePost\\Internetmarke\\Connectors\\Abstracts\\cURL\\Request' not found in wp-content/plugins/woo-dp-internetmarke/includes/Connectors/ForkLane/Request/UpdateProductList.php:10
- > PHP Notice
Undefined variable: migrationMode in wp-content/plugins/woo-dp-internetmarke/migrations/20190409123000_207_update_features.php on line 3
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdf/makefont/ttfparser.php on line 382
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/woo-dp-internetmarke/vendor/setasign/fpdi/src/PdfParser/Type/PdfBoolean.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Formatter\\JsonFormatter' not found in wp-content/plugins/woo-dp-internetmarke/vendor/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woo-dp-internetmarke/vendor/wsdltophp/wssecurity/tests/TestCase.php:7
- > PHP Fatal error
Uncaught Error: Class 'DeutschePost\\Internetmarke\\Connectors\\Abstracts\\SOAP\\Response' not found in wp-content/plugins/woo-dp-internetmarke/includes/Connectors/ProdWS/Response/RegisterNotification.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/woo-dp-internetmarke/vendor/psr/log/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'DeutschePost\\Internetmarke\\Connectors\\Abstracts\\SOAP\\Request' not found in wp-content/plugins/woo-dp-internetmarke/includes/Connectors/ProdWS/Request/GetProductChangeInformation.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/woo-dp-internetmarke/vendor/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php:21
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% 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:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: Screenshot #1 (New shipment wizard.) image not found
woo-dp-internetmarke/woo-dp-internetmarke.php Passed 13 tests
The main file in "WooCommerce Deutsche Post Internetmarke" v. 3.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
WordPress and WooCommerce integration for the Deutsche Post Internetmarke service.
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
Success! There were no dangerous files found in this plugin43,624 lines of code in 550 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 444 | 8,455 | 14,972 | 36,325 |
HTML | 59 | 72 | 0 | 3,240 |
JavaScript | 14 | 153 | 66 | 1,525 |
CSS | 11 | 126 | 37 | 1,187 |
Markdown | 9 | 195 | 0 | 674 |
JSON | 8 | 1 | 0 | 615 |
YAML | 3 | 6 | 0 | 26 |
XML | 1 | 2 | 0 | 25 |
Dockerfile | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 58 | |
Interfaces | 21 | |
Traits | 6 | |
Classes | 351 | |
▷ Abstract classes | 34 | 9.69% |
▷ Concrete classes | 317 | 90.31% |
▷ Final classes | 2 | 0.63% |
Methods | 2,445 | |
▷ Static methods | 108 | 4.42% |
▷ Public methods | 1,970 | 80.57% |
▷ Protected methods | 380 | 15.54% |
▷ Private methods | 95 | 3.89% |
Functions | 70 | |
▷ Named functions | 46 | 65.71% |
▷ Anonymous functions | 24 | 34.29% |
Constants | 198 | |
▷ Global constants | 19 | 9.60% |
▷ Class constants | 179 | 90.40% |
▷ Public constants | 179 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
32 compressed PNG files occupy 0.81MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/packet_plus_previews/13145.png | 17.71KB | 19.12KB | 0.00% |
assets/images/packet_plus_previews/13160.png | 22.02KB | 23.23KB | 0.00% |
assets/images/packet_plus_previews/13135.png | 46.25KB | 49.88KB | 0.00% |
assets/images/packet_plus_previews/13137.png | 47.91KB | 51.48KB | 0.00% |
assets/images/packet_plus_previews/13170.png | 8.96KB | 9.35KB | 0.00% |