Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼11.31ms] Passed 4 tests
Server-side resources used by Customize Woo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.05 ▼0.05 |
Dashboard /wp-admin | 3.41 ▲0.06 | 48.17 ▼18.88 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.76 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 86.15 ▼24.83 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.73 ▲4.38 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options |
---|
customizewoo_settings |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Customize Woo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.32 ▼0.34 | 1.76 ▲0.01 | 40.23 ▼2.99 |
Dashboard /wp-admin | 2,210 ▲30 | 5.50 ▼0.17 | 86.66 ▼7.89 | 41.01 ▲1.29 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.96 ▼0.06 | 37.97 ▼0.29 | 36.24 ▲2.52 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.48 ▲0.39 | 602.14 ▼81.25 | 58.55 ▲9.59 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.21 ▲0.10 | 100.87 ▼5.33 | 46.43 ▼4.06 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/customize-woo/php/admin/views/footer.php
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-shop.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-authentication.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-misc.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-checkout.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-product.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/customize-woo/php/admin/views/settings-cart.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/customize-woo/php/admin/views/header.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/customize-woo/php/admin/views/header.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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
5 plugin tags: woocommerce, customize woo, wc customize, customizer, woocommerce filters
customize-woo/customize-woo.php 85% from 13 tests
The entry point to "Customize Woo" version 1.2.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path should use only dashes and lowercase characters ("i18n")
- Domain Path: Please prefix the domain path with a forward slash character ("/i18n")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,052 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 374 | 713 | 1,373 |
CSS | 1 | 12 | 37 | 567 |
JavaScript | 1 | 37 | 50 | 107 |
JSON | 1 | 0 | 0 | 5 |
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.36 |
Average class complexity | 19.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 20 | 29.85% |
▷ Public methods | 62 | 92.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.46% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/lrg-icon.png | 10.93KB | 4.93KB | ▼ 54.90% |
assets/admin/images/close.png | 0.43KB | 0.33KB | ▼ 24.43% |
assets/admin/images/toggle.png | 0.97KB | 0.11KB | ▼ 89.07% |