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.00MB] [CPU: ▼3.20ms] Passed 4 tests
Server-side resources used by Shop Page Customizer for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.55 ▼1.71 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.81 ▼1.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.15 ▼3.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.47 ▼4.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 30.59 ▼3.45 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Shop Page Customizer for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.51 | 1.86 ▲0.28 | 43.41 ▼1.50 |
Dashboard /wp-admin | 2,189 ▲12 | 5.53 ▼0.14 | 85.14 ▼17.24 | 39.33 ▼5.44 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.98 ▼0.03 | 34.29 ▼1.19 | 31.80 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.07 ▼0.16 | 588.60 ▼68.45 | 49.87 ▲1.65 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.06 | 96.95 ▼5.38 | 44.46 ▼1.48 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 26× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include(): Failed opening 'WSPC_PLUGIN_DIR_PATHadmin/setting/product-loop-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shop-page-customizer-for-woocommerce/admin/options.php on line 2
- > PHP Warning
Use of undefined constant WSPC_PLUGIN_DIR_PATH - assumed 'WSPC_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shop-page-customizer-for-woocommerce/admin/options.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shop-page-customizer-for-woocommerce/customizer/customizer-library/style-builder.php:267
- > PHP Warning
include(): Failed opening 'WSPC_PLUGIN_DIR_PATHadmin/setting/design-elements-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shop-page-customizer-for-woocommerce/admin/options.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shop-page-customizer-for-woocommerce/front/shop-page-setting.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shop-page-customizer-for-woocommerce/admin/setting/product-loop-setting.php:3
- > PHP Warning
include(): Failed opening 'WSPC_PLUGIN_DIR_PATHadmin/setting/get-pro-version.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/shop-page-customizer-for-woocommerce/admin/options.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/shop-page-customizer-for-woocommerce/admin/product-loop-description-meta.php:8
- > PHP Warning
Use of undefined constant WSPC_PLUGIN_DIR_PATH - assumed 'WSPC_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/shop-page-customizer-for-woocommerce/admin/options.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shop-page-customizer-for-woocommerce/admin/setting/product-description-setting.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: shop page customizer, customizer, woocommerce shop, woocommerce
shop-page-customizer-for-woocommerce/shop-page-customizer-for-woo.php 77% from 13 tests
The primary PHP file in "Shop Page Customizer for WooCommerce" version 1.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("shop-page-customizer-for-woocommerce.php" instead of "shop-page-customizer-for-woo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,145 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 531 | 313 | 1,931 |
CSS | 2 | 45 | 11 | 200 |
SVG | 1 | 0 | 0 | 9 |
JavaScript | 1 | 1 | 1 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 2 | 3.08% |
▷ Public methods | 61 | 93.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.15% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin