Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.92ms] Passed 4 tests
An overview of server-side resources used by Printus - Automatic Printing Plugin for WooCommerce - Print WooCommerce PDF Invoices, Orders, Packaging Slips & More
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.10 ▼6.48 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.97 ▼20.74 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.91 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 92.20 ▼1.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.46 ▲3.67 |
Server storage [IO: ▲14.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 569 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Printus - Automatic Printing Plugin for WooCommerce - Print WooCommerce PDF Invoices, Orders, Packaging Slips & More
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲52 | 14.57 ▲0.23 | 1.68 ▼0.13 | 37.88 ▼8.90 |
Dashboard /wp-admin | 2,211 ▲31 | 5.62 ▼0.00 | 94.59 ▲5.67 | 42.81 ▲5.49 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▼0.01 | 40.43 ▲3.89 | 37.64 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,534 ▼2 | 23.14 ▼0.09 | 632.34 ▼44.50 | 56.41 ▲5.20 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.26 ▲0.06 | 96.43 ▼4.84 | 40.70 ▼3.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- 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 shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/printus-cloud-printing-for-woocommerce/includes/Views/Prints/Templates/Cumulus.php
- 133× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\Header' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/phenx/php-font-lib/src/FontLib/WOFF/Header.php:16
- > PHP Fatal error
Uncaught Error: Class 'Printus\\Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/sabberworm/php-css-parser/src/Value/LineName.php:16
- > PHP Fatal error
Uncaught Error: Class 'Printus\\Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/dompdf/dompdf/src/FrameReflower/TableRow.php:22
- > PHP Fatal error
Uncaught Error: Class 'Printus\\Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/dompdf/dompdf/src/FrameReflower/Block.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Printus\\Masterminds\\HTML5\\Serializer\\RulesInterface' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/masterminds/html5/src/HTML5/Serializer/OutputRules.php:21
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/phenx/php-font-lib/src/FontLib/Table/Type/head.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Printus\\Masterminds\\HTML5\\Parser\\EventHandler' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Printus\\Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/sabberworm/php-css-parser/src/Property/CSSNamespace.php:17
- > PHP Fatal error
Uncaught Error: Class 'Printus\\Sabberworm\\CSS\\Value\\ValueList' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/sabberworm/php-css-parser/src/Value/RuleValueList.php:11
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/printus-cloud-printing-for-woocommerce/vendor-prefixed/phenx/php-font-lib/src/FontLib/Table/Type/os2.php:17
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: pdf, invoices, printing, print invoice, packing slips...
printus-cloud-printing-for-woocommerce/printus-cloud-printing-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Printus - Automatic Printing Plugin for WooCommerce - Print WooCommerce PDF Invoices, Orders, Packaging Slips & More" version 1.1.9 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.7" instead of "3.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin92,355 lines of code in 452 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 382 | 17,676 | 37,500 | 77,662 |
JavaScript | 33 | 2,451 | 2,136 | 10,630 |
HTML | 5 | 390 | 38 | 1,731 |
CSS | 21 | 277 | 245 | 1,422 |
JSON | 3 | 0 | 0 | 480 |
Markdown | 6 | 153 | 0 | 421 |
SVG | 2 | 0 | 0 | 9 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 37.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 56 | |
Interfaces | 11 | |
Traits | 1 | |
Classes | 291 | |
▷ Abstract classes | 15 | 5.15% |
▷ Concrete classes | 276 | 94.85% |
▷ Final classes | 0 | 0.00% |
Methods | 3,668 | |
▷ Static methods | 398 | 10.85% |
▷ Public methods | 2,757 | 75.16% |
▷ Protected methods | 432 | 11.78% |
▷ Private methods | 479 | 13.06% |
Functions | 146 | |
▷ Named functions | 109 | 74.66% |
▷ Anonymous functions | 37 | 25.34% |
Constants | 373 | |
▷ Global constants | 111 | 29.76% |
▷ Class constants | 262 | 70.24% |
▷ Public constants | 257 | 98.09% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
22 PNG files occupy 0.57MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/delivery-and-pickup-scheduling.png | 176.40KB | 69.68KB | ▼ 60.50% |
vendor-prefixed/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
vendor-prefixed/iconicwp/wordpress-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-icons_ffffff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor-prefixed/iconicwp/wordpress-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-icons_ef8c08_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/admin/img/printus.png | 148.50KB | 89.54KB | ▼ 39.70% |