83% shop-page-customizer-for-woocommerce

Code Review | Shop Page Customizer for WooCommerce

WordPress plugin Shop Page Customizer for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: shop-page-customi...
  • Plugin version: 1.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 23, 2021
  • Latest release: Nov 20, 2023
  • Number of updates: 11
  • Update frequency: every 66.1 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,102 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.55 ▼1.71
Dashboard /wp-admin3.31 ▲0.0047.81 ▼1.36
Posts /wp-admin/edit.php3.36 ▲0.0044.15 ▼3.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.47 ▼4.59
Media Library /wp-admin/upload.php3.23 ▲0.0030.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.27 ▼0.511.86 ▲0.2843.41 ▼1.50
Dashboard /wp-admin2,189 ▲125.53 ▼0.1485.14 ▼17.2439.33 ▼5.44
Posts /wp-admin/edit.php2,103 ▼01.98 ▼0.0334.29 ▼1.1931.80 ▲1.07
Add New Post /wp-admin/post-new.php1,529 ▼023.07 ▼0.16588.60 ▼68.4549.87 ▲1.65
Media Library /wp-admin/upload.php1,400 ▲34.22 ▲0.0696.95 ▼5.3844.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP145313131,931
CSS24511200
SVG1009
JavaScript1115

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 code0.41
Average class complexity15.64
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods65
▷ Static methods23.08%
▷ Public methods6193.85%
▷ Protected methods00.00%
▷ Private methods46.15%
Functions12
▷ Named functions1191.67%
▷ Anonymous functions18.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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