Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.70ms] Passed 4 tests
Analyzing server-side resources used by Printful Integration for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.71 ▼2.22 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.36 ▼1.04 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.88 ▼2.55 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.95 ▼20.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.07 ▼0.98 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Printful Integration for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.27 ▲0.00 | 1.75 ▲0.09 | 36.77 ▼6.08 |
Dashboard /wp-admin | 2,192 ▲15 | 5.58 ▼0.02 | 97.23 ▲0.45 | 41.42 ▼1.15 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.00 | 39.64 ▲0.02 | 34.90 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.41 ▲0.39 | 667.88 ▼10.78 | 56.69 ▲6.11 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.28 ▲0.07 | 95.37 ▼2.28 | 41.06 ▲0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/customizer-hidden-input.php
- > /wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/footer.php
- > /wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/header.php
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: tabs in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/header.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/setting-group.php:11
- > PHP Notice
Undefined variable: disabled in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/setting-submit.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/status-report.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/connect.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/reconnect.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/personalize-button.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/order-table.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/stats.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/printful-shipping-for-woocommerce/includes/templates/status-table.php on line 1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
printful-shipping-for-woocommerce/printful-shipping.php 77% from 13 tests
The principal PHP file in "Printful Integration for WooCommerce" v. 2.2.6 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "3.0.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("printful-shipping-for-woocommerce.php" instead of "printful-shipping.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,113 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 755 | 787 | 3,004 |
JavaScript | 6 | 140 | 87 | 586 |
CSS | 6 | 59 | 2 | 437 |
SVG | 1 | 0 | 0 | 86 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 20.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 172 | |
▷ Static methods | 53 | 30.81% |
▷ Public methods | 134 | 77.91% |
▷ Protected methods | 5 | 2.91% |
▷ Private methods | 33 | 19.19% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 52 | |
▷ Global constants | 1 | 1.92% |
▷ Class constants | 51 | 98.08% |
▷ Public constants | 47 | 92.16% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/printful-logo-footer.png | 6.18KB | 2.57KB | ▼ 58.46% |
assets/images/printful-menu-icon.png | 3.49KB | 1.91KB | ▼ 45.17% |