Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▲2.55ms] Passed 4 tests
This is a short check of server-side resources used by Product Customizer Light
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 47.76 ▲3.90 |
Dashboard /wp-admin | 3.42 ▲0.08 | 57.24 ▼5.57 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 56.93 ▲6.40 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 110.58 ▲8.11 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 42.48 ▲5.47 |
New Customizer /wp-admin/post-new.php?post_type=k2cl_customizer | 3.43 | 61.15 |
All Customizers /wp-admin/edit.php?post_type=k2cl_customizer | 3.37 | 39.39 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Product Customizer Light
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 14.61 ▲0.23 | 8.39 ▲6.63 | 44.00 ▲2.99 |
Dashboard /wp-admin | 2,262 ▲59 | 5.99 ▼0.07 | 119.13 ▲16.61 | 40.52 ▼2.56 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.77 ▲0.77 | 49.87 ▲9.65 | 37.93 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,560 ▲5 | 18.41 ▲0.11 | 630.02 ▼19.66 | 51.29 ▼6.06 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 5.30 ▲1.08 | 113.96 ▲6.00 | 47.81 ▼1.00 |
New Customizer /wp-admin/post-new.php?post_type=k2cl_customizer | 1,820 | 4.60 | 75.52 | 36.64 |
All Customizers /wp-admin/edit.php?post_type=k2cl_customizer | 1,100 | 2.75 | 44.04 | 30.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'K2CL_Customizer_Public' not found in wp-content/plugins/product-customizer-light/public/partials/form/add_to_cart.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/product-customizer-light/public/partials/vertical/options/image.php on line 1
- > PHP Notice
readfile(): read of 8192 bytes failed with errno=21 Is a directory in wp-content/plugins/product-customizer-light/admin/partials/customizer-admin-export-page.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'K2CL_Customizer_Public' not found in wp-content/plugins/product-customizer-light/public/partials/vertical/image.php:2
- > PHP Notice
Undefined index: file_name in wp-content/plugins/product-customizer-light/admin/partials/customizer-admin-export-page.php on line 2
- > PHP Notice
Undefined index: dir in wp-content/plugins/product-customizer-light/admin/partials/customizer-admin-export-page.php on line 3
- > PHP Notice
Undefined variable: group in wp-content/plugins/product-customizer-light/public/partials/vertical/options/image.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/product-customizer-light/public/partials/vertical/options.php:4
- > PHP Fatal error
Uncaught Error: Class 'K2CL_Customizer_Public' not found in wp-content/plugins/product-customizer-light/public/partials/customizer-template-VerticalLeftSidebar.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/product-customizer-light/public/partials/archive/customizer.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 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
3 plugin tags: customizer, visual designer, product customizer
product-customizer-light/k2cl_customizer.php 69% from 13 tests
The principal PHP file in "Product Customizer Light" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("product-customizer-light.php" instead of "k2cl_customizer.php")
- Description: Keep the plugin description shorter than 140 characters (currently 241 characters long)
- Domain Path: The domain path folder was not found ("/shop/product-customizer/")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
No dangerous file extensions were detected2,295 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 434 | 790 | 2,182 |
CSS | 6 | 13 | 0 | 84 |
JavaScript | 5 | 0 | 0 | 20 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 35.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 103 | |
▷ Static methods | 32 | 31.07% |
▷ Public methods | 93 | 90.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 9.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/empty_prod.png | 83.08KB | 0.26KB | ▼ 99.68% |
public/images/no_image.png | 0.64KB | 0.52KB | ▼ 19.30% |
public/images/blank.png | 0.90KB | 0.08KB | ▼ 91.13% |
public/partials/images/no_image.png | 0.64KB | 0.52KB | ▼ 19.30% |
public/partials/images/empty_prod.png | 83.08KB | 0.26KB | ▼ 99.68% |