Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.54MB] [CPU: ▲24.74ms] 75% from 4 tests
This is a short check of server-side resources used by StoreCustomizer - A plugin to Customize all WooCommerce Pages
Please take the time to fix the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.54MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.20 ▲5.74 | 77.10 ▲31.78 |
Dashboard /wp-admin | 9.22 ▲5.88 | 75.91 ▲18.36 |
Posts /wp-admin/edit.php | 9.22 ▲5.87 | 84.62 ▲37.09 |
Add New Post /wp-admin/post-new.php | 10.55 ▲4.67 | 117.23 ▲14.79 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 69.91 ▲34.04 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.22 | 66.01 |
Server storage [IO: ▲5.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 231 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
fs_active_plugins |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
fs_accounts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for StoreCustomizer - A plugin to Customize all WooCommerce Pages
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.69 ▲0.34 | 1.92 ▲0.34 | 31.53 ▼12.36 |
Dashboard /wp-admin | 2,218 ▲43 | 5.56 ▼0.11 | 84.95 ▼14.78 | 42.03 ▼1.14 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.10 ▲0.09 | 40.21 ▲3.50 | 37.98 ▲6.07 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 22.84 ▼0.50 | 684.45 ▲25.96 | 50.73 ▼8.01 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.23 ▲0.03 | 100.59 ▲4.90 | 46.76 ▲6.17 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,085 | 1.66 | 24.07 | 29.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/woocustomizer/freemius/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- theysaidso_admin_options
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-comments
- fs_accounts
- db_upgraded
- can_compress_scripts
- fs_debug_mode
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 take a closer look at the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocustomizer/includes/customizer/styles.php:1520
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocustomizer/includes/customizer/customizer-library/extensions/style-builder.php:267
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/woocustomizer/woocustomizer.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocustomizer/includes/customizer/customizer-options.php:2739
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woocustomizer/includes/inc/woocommerce.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocustomizer/includes/customizer/customizer-library/extensions/interface.php:152
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: online store, customize woocommerce, ecommerce, woocommerce, woocommerce addons
woocustomizer/woocustomizer.php 92% from 13 tests
The main PHP script in "StoreCustomizer - A plugin to Customize all WooCommerce Pages" version 2.5.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 173 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected50,892 lines of code in 166 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 130 | 8,751 | 18,423 | 39,979 |
PO File | 5 | 2,701 | 3,416 | 7,248 |
CSS | 18 | 59 | 37 | 1,814 |
JavaScript | 11 | 139 | 148 | 1,552 |
Markdown | 1 | 92 | 0 | 283 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 87.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,309 | |
▷ Static methods | 203 | 15.51% |
▷ Public methods | 914 | 69.82% |
▷ Protected methods | 17 | 1.30% |
▷ Private methods | 378 | 28.88% |
Functions | 194 | |
▷ Named functions | 193 | 99.48% |
▷ Anonymous functions | 1 | 0.52% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/upload-icon.png | 2.60KB | 1.19KB | ▼ 54.12% |
assets/images/woocustomizer-logo.png | 9.93KB | 4.53KB | ▼ 54.34% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/woocustomizer.png | 16.95KB | 17.88KB | 0.00% |
assets/images/close-icon.png | 1.30KB | 0.44KB | ▼ 66.09% |