83% woo-quickview

Code Review | Quick View for WooCommerce

WordPress plugin Quick View for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-quickview
  • Plugin version: 2.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 2, 2019
  • Latest release: Nov 7, 2023
  • Number of updates: 44
  • Update frequency: every 39.6 days
  • Top authors: shapedplugin (70.45%)rubel_miah (25%)Shamimmiashuhagh (9.09%)

Code review

54 tests

User reviews

24 reviews

Install metrics

3,000+ active /84,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.87MB] [CPU: ▲4.93ms] Passed 4 tests

An overview of server-side resources used by Quick View for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.36 ▲0.9052.14 ▲16.24
Dashboard /wp-admin4.17 ▲0.8751.22 ▲0.23
Posts /wp-admin/edit.php4.22 ▲0.8757.95 ▲13.33
Add New Post /wp-admin/post-new.php6.75 ▲0.8792.29 ▼2.95
Media Library /wp-admin/upload.php4.09 ▲0.8741.86 ▲9.11

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 115 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
woo_quick_view_version
_sp_wqvpro_options
woo_quick_view_activation_date
sp_woo_quick_view_review_notice_dismiss
widget_theysaidso_widget
woo_quick_view_first_version
woo_quick_view_db_version
widget_recent-comments
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Quick View for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲19413.35 ▼1.049.59 ▲7.9443.89 ▼1.94
Dashboard /wp-admin2,232 ▲555.57 ▲0.0188.93 ▲2.9940.43 ▲2.55
Posts /wp-admin/edit.php2,137 ▲372.03 ▲0.0242.04 ▲1.9838.96 ▲3.28
Add New Post /wp-admin/post-new.php1,541 ▲522.86 ▼0.18609.62 ▼68.7751.11 ▼21.73
Media Library /wp-admin/upload.php1,433 ▲334.20 ▲0.0199.75 ▼6.3345.04 ▼0.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 12 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • sp_woo_quick_view_review_notice_dismiss
    • can_compress_scripts
    • woo_quick_view_first_version
    • woo_quick_view_db_version
    • woo_quick_view_version
    • _sp_wqvpro_options
    • woo_quick_view_activation_date
    • ...

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/woo-quickview/includes/updates/update-1.0.11.php:5
    • > PHP Warning
      require_once(SP_WQV_PATHpublic/views/scripts.php): failed to open stream: No such file or directory in wp-content/plugins/woo-quickview/includes/loader.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-quickview/includes/custom-css.php:11
    • > PHP Warning
      Use of undefined constant SP_WQV_PATH - assumed 'SP_WQV_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-quickview/includes/loader.php on line 26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/woo-quickview/includes/updates/update-2.1.0.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/woo-quickview/includes/updates/update-2.0.0.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/woo-quickview/includes/updates/update-1.0.7.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-quickview/admin/views/notices/review.php:19
    • > PHP Fatal error
      require_once(): Failed opening required 'SP_WQV_PATHpublic/views/scripts.php' (include_path='.:/usr/share/php') in wp-content/plugins/woo-quickview/includes/loader.php on line 26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

woo-quickview/woo-quick-view.php 77% from 13 tests

The entry point to "Quick View for WooCommerce" version 2.2.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 213 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-quickview.php" instead of "woo-quick-view.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin15,819 lines of code in 92 files:
LanguageFilesBlank linesComment linesLines of code
PHP481,0521,9105,336
CSS198594874,687
SVG152232,943
JavaScript96261962,769
Sass15084

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity21.33
▷ Minimum class complexity1.00
▷ Maximum class complexity135.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes00.00%
Methods129
▷ Static methods2116.28%
▷ Public methods129100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin