89% woo-smart-quick-view

Code Review | WPC Smart Quick View for WooCommerce

WordPress plugin WPC Smart Quick View for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-smart-quick-view
  • Plugin version: 3.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 11, 2017
  • Latest release: Nov 8, 2023
  • Number of updates: 156
  • Update frequency: every 13.9 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

50,000+ active /802,120 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.02MB] [CPU: ▼6.99ms] Passed 4 tests

Analyzing server-side resources used by WPC Smart Quick View for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.97 ▼0.40
Dashboard /wp-admin3.33 ▼0.0245.75 ▼15.78
Posts /wp-admin/edit.php3.44 ▲0.0848.47 ▼0.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.68 ▼7.62
Media Library /wp-admin/upload.php3.25 ▲0.0232.23 ▼4.02
About /wp-admin/admin.php?page=wpclever3.2130.86
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2230.84

Server storage [IO: ▲1.36MB] [DB: ▲0.02MB] Passed 3 tests

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

Browser metrics Passed 4 tests

WPC Smart Quick View for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12014.67 ▲0.331.63 ▼0.0140.78 ▲2.59
Dashboard /wp-admin2,257 ▲805.75 ▲0.1794.75 ▼7.1284.19 ▲37.35
Posts /wp-admin/edit.php2,182 ▲822.00 ▲0.0239.06 ▼1.3035.44 ▲2.51
Add New Post /wp-admin/post-new.php1,597 ▲6223.24 ▼1.99701.32 ▲69.2046.76 ▼17.98
Media Library /wp-admin/upload.php1,477 ▲774.16 ▲0.0299.49 ▼6.9673.52 ▲30.81
About /wp-admin/admin.php?page=wpclever1,3872.1535.0334.73
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7322.1333.1459.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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
Please fix the following attributes: Please take inspiration from this readme.txt

woo-smart-quick-view/wpc-smart-quick-view.php 92% from 13 tests

The principal PHP file in "WPC Smart Quick View for WooCommerce" v. 3.5.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-smart-quick-view.php" instead of "wpc-smart-quick-view.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin15,026 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript172,5161,0678,947
CSS156251463,360
PHP5203531,444
SVG8001,003
PO File2106129272

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity42.25
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods53
▷ Static methods47.55%
▷ Public methods53100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin