83% woo-checkout-on-popup-free

Code Review | WooCommerce Checkout On Popup (FREE)

WordPress plugin WooCommerce Checkout On Popup (FREE) scored 83% from 54 tests.

About plugin

  • Plugin page: woo-checkout-on-p...
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 28, 2018
  • Latest release: Dec 13, 2022
  • Number of updates: 38
  • Update frequency: every 44.6 days
  • Top authors: amitwpdeveloper (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

60+ active / 9,931 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.00ms] Passed 4 tests

A check of server-side resources used by WooCommerce Checkout On Popup (FREE)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0045.31 ▲4.45
Dashboard /wp-admin3.31 ▲0.0049.40 ▼5.20
Posts /wp-admin/edit.php3.36 ▲0.0052.39 ▼19.21
Add New Post /wp-admin/post-new.php5.89 ▲0.00101.93 ▲3.29
Media Library /wp-admin/upload.php3.23 ▲0.0037.39 ▼2.89

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
woocommerce_cart_redirect_after_add
widget_recent-posts
widget_recent-comments
woocommerce_enable_ajax_add_to_cart
woocommerce_enable_shipping_calc
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Checkout On Popup (FREE)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.26 ▲0.031.66 ▼3.2742.45 ▼2.00
Dashboard /wp-admin2,203 ▼35.80 ▲0.9397.69 ▼14.5936.29 ▼7.22
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0149.19 ▲9.1338.24 ▲2.46
Add New Post /wp-admin/post-new.php1,534 ▼023.01 ▼0.28636.12 ▲15.1951.53 ▼2.50
Media Library /wp-admin/upload.php1,388 ▲64.21 ▲0.0295.18 ▼5.8940.65 ▼1.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • woocommerce_enable_shipping_calc
    • widget_theysaidso_widget
    • woocommerce_enable_ajax_add_to_cart
    • woocommerce_cart_redirect_after_add
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-on-popup-free/includes/shop/wcp-class-style-script.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-on-popup-free/includes/class-wcp-front-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-on-popup-free/includes/class-wcp-main.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-on-popup-free/includes/shop/class-style-script_backup.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-checkout-on-popup-free/includes/admin/wcp-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/woo-checkout-on-popup-free/wcp-index.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-checkout-on-popup-free/includes/shop/wcp-class-cart.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-on-popup-free/includes/shop/wcp-class-checkout.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-on-popup-free/includes/shop/wcp-class-modal.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-checkout-on-popup-free/includes/admin/wcp-custom-woocommerce.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #6, #7 in woo-checkout-on-popup-free/assets to your readme.txt
  • Screenshots: Add an image for screenshot #1 (screenshot-1, Checkout screen.)
The official readme.txt is a good inspiration

woo-checkout-on-popup-free/wcp-index.php 77% from 13 tests

"WooCommerce Checkout On Popup (FREE)" version 1.1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "3.4.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-checkout-on-popup-free.php" instead of "wcp-index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,784 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP12197351,687
CSS471092
JavaScript2075

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.22
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods36
▷ Static methods38.33%
▷ Public methods36100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/images/mini_cart2.png0.98KB1.05KB0.00%
includes/assets/images/mini_cart.png0.83KB0.87KB0.00%