Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.25ms] Passed 4 tests
This is a short check of server-side resources used by Printy6 - Print on demand
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.42 ▼4.62 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.20 ▼3.94 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 43.62 ▼0.84 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.10 ▼1.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.23 ▼3.25 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Printy6 - Print on demand
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲71 | 13.77 ▼1.06 | 1.90 ▼0.89 | 47.75 ▲0.37 |
Dashboard /wp-admin | 2,239 ▲36 | 5.84 ▲0.98 | 97.02 ▼16.93 | 80.87 ▲38.02 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.02 ▲0.00 | 36.52 ▲2.52 | 35.64 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 17.60 ▼0.09 | 685.21 ▲15.85 | 50.83 ▼10.56 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.14 ▼0.08 | 96.74 ▼14.37 | 77.59 ▲28.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- woocommerce_printy6_settings
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/printy6-print-on-demand/bootstrap.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/printy6-print-on-demand/views/requirements-error.php:12
- > PHP Warning
Use of undefined constant PT6WC_REQUIRED_PHP_VERSION - assumed 'PT6WC_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/printy6-print-on-demand/views/requirements-error.php on line 6
- > PHP Warning
Use of undefined constant PT6WC_REQUIRED_WP_VERSION - assumed 'PT6WC_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/printy6-print-on-demand/views/requirements-error.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WC_REST_Controller' not found in wp-content/plugins/printy6-print-on-demand/classes/pt6wc-rest-api-controller.php:6
- > PHP Fatal error
Uncaught Error: Class 'PT6WC_Module' not found in wp-content/plugins/printy6-print-on-demand/classes/pt6wc-base.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/printy6-print-on-demand/views/pt6wc-connect/page-connect.php:9
- > PHP Fatal error
Uncaught Error: Class 'PT6_Base' not found in wp-content/plugins/printy6-print-on-demand/views/pt6wc-dashboard/page-dashboard.php:18
- > PHP Warning
Use of undefined constant PT6WC_NAME - assumed 'PT6WC_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/printy6-print-on-demand/views/requirements-error.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Plugin Name: Please specify the plugin name on the first line (
=== printy6-print-on-demand ===
)
printy6-print-on-demand/bootstrap.php 77% from 13 tests
The principal PHP file in "Printy6 - Print on demand" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "3.0.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("printy6-print-on-demand.php" instead of "bootstrap.php")
- 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
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected1,257 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 193 | 415 | 873 |
SVG | 3 | 3 | 1 | 281 |
Markdown | 1 | 28 | 0 | 63 |
CSS | 2 | 7 | 0 | 38 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 16 | 21.05% |
▷ Public methods | 67 | 88.16% |
▷ Protected methods | 8 | 10.53% |
▷ Private methods | 1 | 1.32% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 8 | 38.10% |
▷ Class constants | 13 | 61.90% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/printy6-menu-icon.png | 0.87KB | 1.08KB | 0.00% |