84% woo-quick-view

Code Review | WooCommerce Quick View

WordPress plugin WooCommerce Quick View scored84%from 54 tests.

About plugin

  • Plugin page: woo-quick-view
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.3
  • WordPress version: 6.3.1
  • First release: Jul 21, 2016
  • Latest release: Oct 7, 2023
  • Number of updates: 56
  • Update frequency: every 47.0 days
  • Top authors: arshidkv12 (100%)

Code review

54 tests

User reviews

97 reviews

Install metrics

3,000+ active /84,030 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WooCommerce Quick View
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.63 ▼2.72
Dashboard /wp-admin3.32 ▲0.0242.96 ▼4.06
Posts /wp-admin/edit.php3.37 ▲0.0144.93 ▼0.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.83 ▼2.73
Media Library /wp-admin/upload.php3.24 ▲0.0133.31 ▼4.03

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 9 new options
New WordPress options
wcqv_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
wpcqv_view_install_date
widget_theysaidso_widget
theysaidso_admin_options
wcqv_style

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooCommerce Quick View
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.324.56 ▲2.9037.48 ▼4.95
Dashboard /wp-admin2,209 ▲215.92 ▲0.02107.92 ▲7.3040.23 ▼0.85
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0439.44 ▲2.0933.50 ▲0.17
Add New Post /wp-admin/post-new.php1,530 ▲423.21 ▼0.07595.38 ▼61.0050.32 ▼2.07
Media Library /wp-admin/upload.php1,382 ▼94.24 ▼0.0497.48 ▼3.4642.69 ▼1.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woo-quick-view/woo-quick-view.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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 your attention:
  • Screenshots: Screenshot #2 (Front end) image missing
You can look at the official readme.txt

woo-quick-view/woo-quick-view.php Passed 13 tests

The primary PHP file in "WooCommerce Quick View" version 1.1.1 is used by WordPress to initiate all plugin functionality
100 characters long description:
Woo Quick View plugin allows the customers to have a brief overview of every product in a light box.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,564 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6214217655
CSS2460522
PHP315612387

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.22
Average class complexity17.00
▷ Minimum class complexity14.00
▷ Maximum class complexity20.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/warn.png0.44KB0.36KB▼ 19.65%
img/right_arr.png0.74KB0.42KB▼ 43.87%
img/left_arr.png0.74KB0.42KB▼ 43.61%