83% quick-view-and-buy-now-for-woocommerce

Code Review | Direct Checkout - Quick View - Buy Now For WooCommerce

WordPress plugin Direct Checkout - Quick View - Buy Now For WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: quick-view-and-bu...
  • Plugin version: 1.5.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.2
  • WordPress version: 6.3.1
  • First release: May 8, 2021
  • Latest release: May 23, 2023
  • Number of updates: 32
  • Update frequency: every 23.4 days
  • Top authors: grandplugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /13,350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Direct Checkout - Quick View - Buy Now For WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.68 ▼5.41
Dashboard /wp-admin3.31 ▼0.0453.22 ▼8.14
Posts /wp-admin/edit.php3.36 ▲0.0045.73 ▲2.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.05 ▲0.40
Media Library /wp-admin/upload.php3.23 ▲0.0032.10 ▼0.56

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Direct Checkout - Quick View - Buy Now For WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.84 ▲0.091.62 ▼0.1937.74 ▼7.89
Dashboard /wp-admin2,206 ▲155.91 ▲1.08109.14 ▼8.9043.00 ▼8.65
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.01 ▲1.8035.89 ▲1.00
Add New Post /wp-admin/post-new.php1,533 ▲1923.04 ▲5.38586.23 ▼75.9563.53 ▼0.26
Media Library /wp-admin/upload.php1,382 ▼94.22 ▼0.0793.91 ▼6.1041.01 ▼4.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_ARCW\\Quantity\\QuantityBase' not found in wp-content/plugins/quick-view-and-buy-now-for-woocommerce/includes/quantity/QuantityInput1.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_ARCW\\Quantity\\QuantityBase' not found in wp-content/plugins/quick-view-and-buy-now-for-woocommerce/includes/quantity/QuantityInput2.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: The official readme.txt might help

quick-view-and-buy-now-for-woocommerce/gpls-arcw-quick-view-buy-now-for-woocommerce.php 85% from 13 tests

The primary PHP file in "Direct Checkout - Quick View - Buy Now For WooCommerce" version 1.5.9 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.4" instead of "5.6")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("quick-view-and-buy-now-for-woocommerce.php" instead of "gpls-arcw-quick-view-buy-now-for-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,521 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP276491,9104,502
JavaScript901910
CSS90119

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity29.83
▷ Minimum class complexity1.00
▷ Maximum class complexity193.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes18
▷ Abstract classes15.56%
▷ Concrete classes1794.44%
▷ Final classes00.00%
Methods239
▷ Static methods5723.85%
▷ Public methods20987.45%
▷ Protected methods62.51%
▷ Private methods2410.04%
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
14 PNG files occupy 0.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/dist/images/thumbnail-circle.png5.88KB2.95KB▼ 49.84%
core/assets/dist/images/logo-icon-sm.png0.62KB0.72KB0.00%
core/assets/images/wp-paypal-subscriptions.png17.91KB7.09KB▼ 60.39%
core/assets/images/woo-maintenance-mode.png33.48KB11.56KB▼ 65.46%
core/assets/images/wp-watermark-images.png38.45KB14.82KB▼ 61.45%