83% coming-soon-products-for-woocommerce

Code Review | Coming Soon Products for WooCommerce | Coming Soon Badge | Coming soon Countdown

WordPress plugin Coming Soon Products for WooCommerce | Coming Soon Badge | Coming soon Countdown scored83%from 54 tests.

About plugin

  • Plugin page: coming-soon-produ...
  • Plugin version: 1.1.9
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2022
  • Latest release: Oct 10, 2023
  • Number of updates: 29
  • Update frequency: every 21.7 days
  • Top authors: grandplugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /3,866 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Coming Soon Products for WooCommerce | Coming Soon Badge | Coming soon Countdown
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.89 ▼4.99
Dashboard /wp-admin3.31 ▲0.0049.58 ▼7.15
Posts /wp-admin/edit.php3.36 ▲0.0052.19 ▲0.57
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.85 ▲7.90
Media Library /wp-admin/upload.php3.23 ▲0.0037.81 ▲1.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 77 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Coming Soon Products for WooCommerce | Coming Soon Badge | Coming soon Countdown: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.30 ▼0.002.44 ▲0.3740.79 ▼5.84
Dashboard /wp-admin2,198 ▲215.64 ▲0.0391.48 ▼1.8042.46 ▼3.67
Posts /wp-admin/edit.php2,103 ▼02.00 ▼0.0141.09 ▲5.6434.65 ▼2.39
Add New Post /wp-admin/post-new.php1,526 ▼1917.61 ▼5.61677.52 ▼17.7755.09 ▼6.27
Media Library /wp-admin/upload.php1,403 ▲34.21 ▼0.08101.46 ▼3.4546.36 ▲1.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/subscribe-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-backend.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-badge.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-quick-bulk-edits.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/email-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-frontend.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WCSAMM\\ComingSoon' not found in wp-content/plugins/coming-soon-products-for-woocommerce/includes/class-coming-soon-shortcode.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/general-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/badge-settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/coming-soon-products-for-woocommerce/templates/settings/countdown-settings.php:4

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

coming-soon-products-for-woocommerce/gpls-wcsamm-woo-coming-soon-products-for-woocommerce.php 85% from 13 tests

The principal PHP file in "Coming Soon Products for WooCommerce | Coming Soon Badge | Coming soon Countdown" v. 1.1.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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 ("coming-soon-products-for-woocommerce.php" instead of "gpls-wcsamm-woo-coming-soon-products-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,709 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP275541,2553,680
XML10010
CSS7057
JavaScript70167
JSON1005

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity28.43
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.18
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods177
▷ Static methods5832.77%
▷ Public methods13978.53%
▷ Protected methods73.95%
▷ Private methods3117.51%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.21MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/coming-soon-icon-1.png5.99KB3.07KB▼ 48.78%
assets/images/coming-soon-icon-10.png1.42KB1.56KB0.00%
core/assets/images/woo-cart-limiter.png17.63KB7.17KB▼ 59.36%
core/assets/dist/images/logo-icon-lg.png3.56KB2.72KB▼ 23.62%
assets/images/coming-soon-icon-2.png3.01KB2.44KB▼ 19.09%