Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼11.06ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Product Page Templates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.71 ▼7.02 |
Dashboard /wp-admin | 3.35 ▲0.01 | 50.07 ▼17.97 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.26 ▼8.20 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.33 ▼11.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.40 ▼0.37 |
WooCommerce Product Page Templates /wp-admin/admin.php?page=wcppt_welcome_page | 3.26 | 36.84 |
WooCommerce Product Page Templates /wp-admin/admin.php?page=wcppt_whats_new | 3.21 | 34.02 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
vgse_welcome_redirect |
widget_recent-posts |
widget_theysaidso_widget |
wcppt_welcome_redirect |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WooCommerce Product Page Templates: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.32 ▼0.64 | 1.70 ▼0.23 | 42.53 ▼4.82 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▲0.02 | 96.88 ▼20.82 | 37.72 ▼3.74 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 40.01 ▲1.21 | 35.54 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.80 ▼0.25 | 660.43 ▼9.39 | 50.63 ▼1.11 |
Media Library /wp-admin/upload.php | 1,385 ▼0 | 4.27 ▲0.09 | 95.92 ▼7.36 | 43.22 ▼2.52 |
WooCommerce Product Page Templates /wp-admin/admin.php?page=wcppt_welcome_page | 796 | 2.05 | 26.27 | 26.74 |
WooCommerce Product Page Templates /wp-admin/admin.php?page=wcppt_whats_new | 781 | 2.02 | 25.45 | 22.29 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- db_upgraded
- wcppt_welcome_redirect
- widget_recent-comments
- theysaidso_admin_options
- vgse_welcome_redirect
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wcppt_whats_new
- > Warning in wp-content/plugins/woo-product-page-templates/vendor/vg-plugin-sdk/index.php+146
include(/1.0.0.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=wcppt_whats_new
- > Warning in wp-content/plugins/woo-product-page-templates/vendor/vg-plugin-sdk/index.php+146
include(): Failed opening '/1.0.0.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=wcppt_whats_new
- > Notice in wp-content/plugins/woo-product-page-templates/vendor/vg-plugin-sdk/index.php+148
Undefined variable: items
- > GET request to /wp-admin/admin.php?page=wcppt_whats_new
- > Warning in wp-content/plugins/woo-product-page-templates/vendor/vg-plugin-sdk/index.php+164
include(): Filename cannot be empty
- > GET request to /wp-admin/admin.php?page=wcppt_whats_new
- > Warning in wp-content/plugins/woo-product-page-templates/vendor/vg-plugin-sdk/index.php+164
include(): Failed opening '' for inclusion (include_path='.:/usr/share/php')
SRP 50% 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
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/woo-product-page-templates/views/welcome-page-content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/woo-product-page-templates/vendor/vg-plugin-sdk/views/page-template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woo-product-page-templates/woocommerce-product-page-templates.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-product-page-templates/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
7 plugin tags: wp page templates, woocommerce templates, custom templates, woocommerce product templates, wordpress templates...
woo-product-page-templates/woocommerce-product-page-templates.php 92% from 13 tests
"WooCommerce Product Page Templates" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-product-page-templates.php" instead of "woocommerce-product-page-templates.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected325 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 90 | 53 | 277 |
CSS | 1 | 6 | 0 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/logo.png | 7.44KB | 3.88KB | ▼ 47.91% |