Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲6.90MB] [CPU: ▲26.97ms] 75% from 4 tests
Analyzing server-side resources used by Jim Soft Swiss QR Invoice
Please fix the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 6.90MB on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.59 ▲7.12 | 71.56 ▲30.96 |
Dashboard /wp-admin | 10.61 ▲7.30 | 75.92 ▲23.49 |
Posts /wp-admin/edit.php | 10.61 ▲7.25 | 87.85 ▲39.42 |
Add New Post /wp-admin/post-new.php | 11.82 ▲5.94 | 116.49 ▲15.44 |
Media Library /wp-admin/upload.php | 10.61 ▲7.38 | 70.27 ▲37.97 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 130 new files
Database: no new tables, 27 new options
New WordPress options |
---|
jimsoft-qr-bill_creditor_city |
jimsoft-qr-bill_pdf_date_x |
jimsoft-qr-bill_pdf_color_primary |
jimsoft-qr-bill_pdf_font_size |
jimsoft-qr-bill_creditor_street |
jimsoft-qr-bill_pdf_address_x |
jimsoft-qr-bill_pdf_creditor_x |
db_upgraded |
jimsoft-qr-bill_pdf_table_cellpadding |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Jim Soft Swiss QR Invoice
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.35 | 1.59 ▲0.01 | 39.18 ▼3.68 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.07 | 85.53 ▼13.69 | 40.81 ▼3.12 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.05 | 39.10 ▲4.11 | 35.72 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.91 ▼0.58 | 678.20 ▲1.03 | 52.42 ▼6.79 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.17 ▼0.01 | 95.78 ▼3.64 | 43.32 ▼2.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 27 options in the database
- jimsoft-qr-bill_creditor_zip
- jimsoft-qr-bill_pdf_address_y
- jimsoft-qr-bill_pdf_order_details
- jimsoft-qr-bill_pdf_date_x
- jimsoft-qr-bill_creditor_company
- jimsoft-qr-bill_pdf_address
- jimsoft-qr-bill_pdf_date
- jimsoft-qr-bill_pdf_logo_w
- theysaidso_admin_options
- jimsoft-qr-bill_pdf_address_x
- ...
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 everything seems fine, this is not an exhaustive test
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jim-soft-swiss-qr-invoice/admin/partials/jimsoft-qr-bill-admin-display.php
- > /wp-content/plugins/jim-soft-swiss-qr-invoice/includes/tcpdf_min/tools/tcpdf_addfont.php
- 151× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Sprain\\SwissQrBill\\DataGroup\\QrCodeableInterface' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/src/DataGroup/Element/PaymentAmountInformation.php:8
- > PHP Fatal error
Uncaught Error: Class 'Sprain\\SwissQrBill\\PaymentPart\\Output\\AbstractOutput' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/src/PaymentPart/Output/HtmlOutput/HtmlOutput.php:18
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\OptionsResolver\\Exception\\InvalidArgumentException' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/vendor/symfony/options-resolver/Exception/UndefinedOptionsException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'DASPRiD\\Enum\\Exception\\ExceptionInterface' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/vendor/dasprid/enum/src/Exception/IllegalArgumentException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Sprain\\SwissQrBill\\DataGroup\\AddressInterface' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/src/DataGroup/Element/CombinedAddress.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Sprain\\SwissQrBill\\DataGroup\\QrCodeableInterface' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/src/DataGroup/Element/Header.php:8
- > PHP Fatal error
Uncaught Error: Class 'Endroid\\QrCode\\Exception\\QrCodeException' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/vendor/endroid/qr-code/src/Exception/InvalidWriterException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/vendor/symfony/property-info/Extractor/PhpStanExtractor.php:33
- > PHP Fatal error
Uncaught Error: Class 'Endroid\\QrCode\\Exception\\QrCodeException' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/vendor/endroid/qr-code/src/Exception/UnsupportedExtensionException.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/jim-soft-swiss-qr-invoice/includes/swiss-qr-bill/vendor/endroid/qr-code/tests/QrCodeTest.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: qr, invoice, woocommerce
jim-soft-swiss-qr-invoice/jimsoft-qr-bill.php 85% from 13 tests
"Jim Soft Swiss QR Invoice" version 1.2.6'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: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("jim-soft-swiss-qr-invoice.php" instead of "jimsoft-qr-bill.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin87,720 lines of code in 428 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 361 | 7,331 | 20,658 | 83,839 |
JSON | 22 | 1 | 0 | 2,015 |
Markdown | 26 | 314 | 0 | 877 |
PO File | 3 | 270 | 315 | 669 |
XML | 5 | 7 | 2 | 90 |
SVG | 4 | 0 | 4 | 86 |
JavaScript | 3 | 12 | 39 | 73 |
YAML | 3 | 13 | 0 | 71 |
CSS | 1 | 0 | 4 | 0 |
PHP code 0% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,382)
- Method cyclomatic complexity should be reduced to less than 100 (currently 504)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 31.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,382.00 |
Average method complexity | 5.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 504.00 |
Code structure | ||
---|---|---|
Namespaces | 71 | |
Interfaces | 36 | |
Traits | 0 | |
Classes | 282 | |
▷ Abstract classes | 10 | 3.55% |
▷ Concrete classes | 272 | 96.45% |
▷ Final classes | 153 | 56.25% |
Methods | 2,362 | |
▷ Static methods | 394 | 16.68% |
▷ Public methods | 1,768 | 74.85% |
▷ Protected methods | 304 | 12.87% |
▷ Private methods | 290 | 12.28% |
Functions | 182 | |
▷ Named functions | 153 | 84.07% |
▷ Anonymous functions | 29 | 15.93% |
Constants | 420 | |
▷ Global constants | 124 | 29.52% |
▷ Class constants | 296 | 70.48% |
▷ Public constants | 144 | 48.65% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/swiss-qr-bill/assets/marks_40x15mm.png | 2.63KB | 0.32KB | ▼ 87.97% |
includes/swiss-qr-bill/assets/marks_65x25mm.png | 3.34KB | 0.39KB | ▼ 88.28% |
includes/swiss-qr-bill/assets/swiss-cross.optimized.png | 0.12KB | 0.13KB | 0.00% |
includes/swiss-qr-bill/assets/marks_30x10mm.png | 2.35KB | 0.28KB | ▼ 88.19% |
includes/swiss-qr-bill/assets/marks_52x20mm.png | 3.01KB | 0.35KB | ▼ 88.41% |