Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▲1.59ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce ProductPrint
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.05 ▼0.21 |
Dashboard /wp-admin | 3.46 ▲0.16 | 54.90 ▲4.44 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 52.74 ▲8.91 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 87.68 ▼0.27 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.78 ▲2.39 |
ProductPrint /wp-admin/options-general.php?page=productprint_options_handle | 3.36 | 36.90 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce ProductPrint
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲213 | 14.79 ▲0.59 | 1.88 ▼0.58 | 40.78 ▼2.59 |
Dashboard /wp-admin | 2,351 ▲163 | 6.56 ▲0.64 | 116.15 ▼3.66 | 41.09 ▼3.96 |
Posts /wp-admin/edit.php | 2,254 ▲165 | 3.49 ▲1.46 | 46.20 ▲9.30 | 33.16 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.42 ▲5.97 | 614.93 ▼73.18 | 35.14 ▼18.49 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.16 ▼0.01 | 83.52 ▼21.89 | 44.52 ▼0.02 |
ProductPrint /wp-admin/options-general.php?page=productprint_options_handle | 1,692 | 3.29 | 43.76 | 56.92 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 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 Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 27 tag instead of maximum 10
productprint/productprint.php Passed 13 tests
"WooCommerce ProductPrint" version 2.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
WooCommerce extension to create printer-friendly product pages with tailored headers and footers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,312 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 211 | 77 | 685 |
PO File | 3 | 184 | 212 | 458 |
CSS | 1 | 49 | 12 | 112 |
JavaScript | 1 | 4 | 8 | 57 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 5.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
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/default-printer-icon.png | 0.67KB | 0.44KB | ▼ 35.36% |
assets/icon.png | 10.46KB | 4.79KB | ▼ 54.22% |