Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼3.76ms] Passed 4 tests
Server-side resources used by Integration for Szamlazz.hu & WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.41 | 45.23 ▲4.22 |
Dashboard /wp-admin | 3.72 ▲0.37 | 48.23 ▼11.91 |
Posts /wp-admin/edit.php | 3.83 ▲0.48 | 53.65 ▲10.12 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 81.87 ▼16.03 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 38.05 ▲8.70 |
Server storage [IO: ▲3.47MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 236 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Integration for Szamlazz.hu & WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲38 | 14.22 ▼0.05 | 1.68 ▼0.07 | 40.01 ▼4.73 |
Dashboard /wp-admin | 2,208 ▲27 | 5.61 ▼0.09 | 91.62 ▼10.87 | 40.13 ▲1.98 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.01 ▲0.03 | 40.39 ▲2.34 | 37.73 ▲3.37 |
Add New Post /wp-admin/post-new.php | 1,536 ▼9 | 23.25 ▼1.94 | 587.91 ▼93.25 | 59.29 ▼2.11 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.26 ▲0.02 | 95.14 ▲0.57 | 42.79 ▲0.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/integration-for-szamlazzhu-woocommerce/uninstall.php+12
Trying to access array offset on value of type null
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php:25
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfReader/PdfReaderException.php:19
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Filter\\FilterException' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/Filter/LzwException.php:17
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/Filter/AsciiHex.php:17
- > PHP Fatal error
Uncaught Error: Class 'FPDF' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/iio/libmergepdf/tcpdi/fpdf_tpl.php:20
- > PHP Fatal error
Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/iio/libmergepdf/tcpdi/tcpdi.php:22
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php:19
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/PdfParserException.php:19
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/Type/PdfArray.php:21
- > PHP Fatal error
Uncaught Error: Interface 'iio\\libmergepdf\\Driver\\DriverInterface' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/iio/libmergepdf/src/Driver/DefaultDriver.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce, szamlazzhu, szamlazo, magyar, szamlazz
integration-for-szamlazzhu-woocommerce/index.php 77% from 13 tests
The main file in "Integration for Szamlazz.hu & WooCommerce" v. 5.8.7.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "7.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("integration-for-szamlazzhu-woocommerce.php" instead of "index.php")
Code Analysis 95% from 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
There were no executable files found in this plugin70,393 lines of code in 213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 165 | 4,658 | 16,372 | 61,439 |
JavaScript | 8 | 467 | 437 | 2,539 |
Sass | 6 | 461 | 12 | 2,156 |
PO File | 1 | 629 | 833 | 1,915 |
CSS | 4 | 44 | 6 | 1,660 |
JSON | 9 | 0 | 0 | 349 |
Markdown | 4 | 67 | 0 | 219 |
SVG | 15 | 0 | 7 | 115 |
YAML | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,379)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 75.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,379.00 |
Average method complexity | 7.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 5 | |
Traits | 2 | |
Classes | 112 | |
▷ Abstract classes | 2 | 1.79% |
▷ Concrete classes | 110 | 98.21% |
▷ Final classes | 8 | 7.27% |
Methods | 1,351 | |
▷ Static methods | 346 | 25.61% |
▷ Public methods | 998 | 73.87% |
▷ Protected methods | 330 | 24.43% |
▷ Private methods | 23 | 1.70% |
Functions | 29 | |
▷ Named functions | 7 | 24.14% |
▷ Anonymous functions | 22 | 75.86% |
Constants | 171 | |
▷ Global constants | 133 | 77.78% |
▷ Class constants | 38 | 22.22% |
▷ Public constants | 38 | 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
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/receipt-templates.png | 16.90KB | 7.67KB | ▼ 54.61% |
assets/images/vp-woo-pont-logos.png | 23.09KB | 6.67KB | ▼ 71.13% |
assets/images/vat-number-block-info.png | 76.22KB | 21.72KB | ▼ 71.50% |