83% extended-setup-for-woocommerce

Code Review | Extended Setup for WooCommerce - Customize your eCommerce

WordPress plugin Extended Setup for WooCommerce - Customize your eCommerce scored83%from 54 tests.

About plugin

  • Plugin page: extended-setup-fo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: woocommercesetup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,137 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.73ms] Passed 4 tests

Server-side resources used by Extended Setup for WooCommerce - Customize your eCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.68 ▼5.03
Dashboard /wp-admin3.31 ▲0.0146.51 ▲0.55
Posts /wp-admin/edit.php3.36 ▲0.0145.30 ▼2.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.49 ▼7.57
Media Library /wp-admin/upload.php3.23 ▲0.0137.96 ▲5.91

Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extended Setup for WooCommerce - Customize your eCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.41 ▼0.803.93 ▲2.1140.21 ▼4.76
Dashboard /wp-admin2,215 ▲275.80 ▲0.9195.23 ▼18.7639.32 ▲1.91
Posts /wp-admin/edit.php2,104 ▲152.00 ▼0.0140.24 ▲1.3535.66 ▲3.33
Add New Post /wp-admin/post-new.php1,530 ▼423.22 ▲0.14701.23 ▲21.9958.98 ▲7.03
Media Library /wp-admin/upload.php1,400 ▲154.23 ▲0.0299.03 ▼2.3842.92 ▼3.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/extended-setup-for-woocommerce/includes/admin/woocommerce-admin.php
    • > /wp-content/plugins/extended-setup-for-woocommerce/woocommerce-setup.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Shop/Catalog Settings), #2 (Product details Settings)
The official readme.txt is a good inspiration

extended-setup-for-woocommerce/woocommerce-setup.php 77% from 13 tests

The main PHP script in "Extended Setup for WooCommerce - Customize your eCommerce" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("extended-setup-for-woocommerce.php" instead of "woocommerce-setup.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin537 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2136125514
JavaScript18423

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity40.00
▷ Minimum class complexity33.00
▷ Maximum class complexity47.00
Average method complexity3.35
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods18100.00%
▷ Public methods1477.78%
▷ Protected methods00.00%
▷ Private methods422.22%
Functions21
▷ Named functions00.00%
▷ Anonymous functions21100.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/pluginsmaker-logo.png8.54KB4.02KB▼ 52.95%