icon-256x256
  • 78% product-quick-view-for-woocommerce

    Code Review | Product Quick View For WooCommerce

    WordPress plugin Product Quick View For WooCommerce scored 78% from 54 tests.

    About plugin

    • Plugin page: product-quick-vie...
    • Plugin version: 1.0.0
    • PHP compatiblity: 5.2.4+
    • PHP version: 7.4.16
    • WordPress compatibility: 3.3.4-5.2.2
    • WordPress version: 6.3.1
    • First release: Oct 29, 2018
    • Latest release: Jul 30, 2019
    • Number of updates: 8
    • Update frequency: every 35.0 days
    • Top authors: greatdane89 (100%)

    Code review

    54 tests

    User reviews

    1 review

    Install metrics

    10+ active / 836 total downloads

    Benchmarks

    Plugin footprint 83% from 16 tests

    Installer Passed 1 test

    🔺 Critical test (weight: 50) | Checking the installer triggered no errors
    This plugin's installer ran successfully

    Server metrics [RAM: ▲0.04MB] [CPU: ▼1.90ms] Passed 4 tests

    Analyzing server-side resources used by Product Quick View For WooCommerce
    This plugin has minimal impact on server resources
    PageMemory (MB)CPU Time (ms)
    Home /3.50 ▲0.0439.77 ▼0.96
    Dashboard /wp-admin3.34 ▲0.0447.58 ▼1.45
    Posts /wp-admin/edit.php3.39 ▲0.0448.19 ▼1.57
    Add New Post /wp-admin/post-new.php5.92 ▲0.0496.03 ▼1.06
    Media Library /wp-admin/upload.php3.27 ▲0.0435.08 ▼3.52

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

    How much does this plugin use your filesystem and database?
    This plugin installed successfully
    Filesystem: 25 new files
    Database: no new tables, 6 new options
    New WordPress options
    can_compress_scripts
    widget_recent-comments
    widget_theysaidso_widget
    theysaidso_admin_options
    widget_recent-posts
    db_upgraded

    Browser metrics Passed 4 tests

    This is an overview of browser requirements for Product Quick View For WooCommerce
    This plugin renders optimally with no browser resource issues detected
    PageNodesMemory (MB)Script (ms)Layout (ms)
    Home /2,825 ▲9013.28 ▼1.121.98 ▲0.2644.98 ▲2.43
    Dashboard /wp-admin2,209 ▲204.82 ▼0.1095.77 ▼24.6139.08 ▼9.32
    Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0638.36 ▼2.0534.33 ▼2.44
    Add New Post /wp-admin/post-new.php1,411 ▼10917.86 ▼5.47599.48 ▼91.1250.12 ▼10.55
    Media Library /wp-admin/upload.php1,385 ▼04.22 ▼0.04102.34 ▼2.3445.50 ▲1.02

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

    🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
    The following items require your attention
    • Zombie WordPress options detected upon uninstall: 6 options
      • widget_theysaidso_widget
      • theysaidso_admin_options
      • can_compress_scripts
      • widget_recent-comments
      • widget_recent-posts
      • db_upgraded

    Smoke tests 50% from 4 tests

    Server-side errors Passed 1 test

    🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
    The smoke test was a success, however most plugin functionality was not tested

    SRP 0% 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 items
    • 2× PHP files output non-empty strings when accessed directly via GET requests:
      • > /wp-content/plugins/product-quick-view-for-woocommerce/admin/partials/product-quick-view-for-woocommerce-admin-display.php
      • > /wp-content/plugins/product-quick-view-for-woocommerce/public/partials/product-quick-view-for-woocommerce-public-display.php
    • 1× PHP files trigger errors when accessed directly with GET requests:
      • > PHP Parse error
        syntax error, unexpected end of file in wp-content/plugins/product-quick-view-for-woocommerce/public/class-product-quick-view-for-woocommerce-public.php on line 899

    User-side errors Passed 1 test

    🔹 Test weight: 20 | This is a shallow check for browser errors
    Everything seems fine on the user side

    Optimizations

    Plugin configuration 96% from 29 tests

    readme.txt Passed 16 tests

    Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
    3 plugin tags: quick view, product quick view, woocommerce quick view

    product-quick-view-for-woocommerce/product-quick-view-for-woocommerce.php 92% from 13 tests

    "Product Quick View For WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
    The following require your attention:
    • Requires at least: Required version must match the one declared in readme.txt ("4.4.1" instead of "3.3.4")

    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 plugin3,321 lines of code in 19 files:
    LanguageFilesBlank linesComment linesLines of code
    JavaScript3931102,287
    PHP148299471,005
    CSS2281129

    PHP code Passed 2 tests

    An short overview of logical lines of code, cyclomatic complexity, and other code metrics
    Great job! No cyclomatic complexity issues were detected in this plugin
    Cyclomatic complexity
    Average complexity per logical line of code0.37
    Average class complexity11.88
    ▷ Minimum class complexity1.00
    ▷ Maximum class complexity46.00
    Average method complexity2.38
    ▷ Minimum method complexity1.00
    ▷ Maximum method complexity11.00
    Code structure
    Namespaces0
    Interfaces0
    Traits0
    Classes8
    ▷ Abstract classes00.00%
    ▷ Concrete classes8100.00%
    ▷ Final classes00.00%
    Methods56
    ▷ Static methods23.57%
    ▷ Public methods5191.07%
    ▷ Protected methods00.00%
    ▷ Private methods58.93%
    Functions6
    ▷ Named functions6100.00%
    ▷ Anonymous functions00.00%
    Constants1
    ▷ Global constants1100.00%
    ▷ Class constants00.00%
    ▷ Public constants00.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
    There were not PNG files found in your plugin