Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.69MB] [CPU: ▼13.05ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Custom Print
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.38 ▼0.64 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.18 ▲4.47 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.65 ▼0.06 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.78 | 34.44 ▼48.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.56 ▼2.72 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce Custom Print
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.74 ▼0.62 | 4.53 ▲2.68 | 37.92 ▼5.17 |
Dashboard /wp-admin | 2,209 ▲33 | 4.82 ▼0.06 | 99.01 ▼18.47 | 40.92 ▼23.57 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.07 | 34.39 ▼3.80 | 34.38 ▲0.38 |
Add New Post /wp-admin/post-new.php | 1,535 ▲16 | 23.18 ▲0.06 | 601.77 ▼85.04 | 55.66 ▼3.14 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.10 | 94.05 ▼22.87 | 42.42 ▼4.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-design-product/product-detail-page.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-design-product/custom-print.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-design-product/cart-n-order.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-design-product/meta_box.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== custom-design-product ===
)
custom-design-product/custom-print.php 92% from 13 tests
The main file in "Woocommerce Custom Print" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("custom-design-product.php" instead of "custom-print.php")
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
Everything looks great! No dangerous files found in this plugin324 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 42 | 136 | 324 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.08MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/Half_OFF.png | 15.74KB | 0.51KB | ▼ 96.77% |
img/Mirror_OFF.png | 15.67KB | 0.44KB | ▼ 97.18% |
img/half-drop.png | 1.69KB | 0.51KB | ▼ 69.83% |
img/Brick_OFF.png | 15.69KB | 0.59KB | ▼ 96.26% |
img/Center_OFF.png | 15.41KB | 0.34KB | ▼ 97.79% |