89% quick-view-woocommerce

Code Review | Quick View WooCommerce

WordPress plugin Quick View WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: quick-view-woocom...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Jul 13, 2016
  • Latest release: Aug 24, 2023
  • Number of updates: 98
  • Update frequency: every 26.5 days
  • Top authors: xootix (100%)

Code review

54 tests

User reviews

72 reviews

Install metrics

3,000+ active /42,738 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by Quick View WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.07 ▲1.50
Dashboard /wp-admin3.31 ▲0.0047.54 ▲1.70
Posts /wp-admin/edit.php3.36 ▲0.0047.11 ▲0.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.75 ▲0.30
Media Library /wp-admin/upload.php3.23 ▲0.0033.05 ▲1.36

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Quick View WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.001.85 ▲0.2344.91 ▲3.87
Dashboard /wp-admin2,201 ▲245.65 ▲0.0795.23 ▲6.6943.91 ▲3.59
Posts /wp-admin/edit.php2,107 ▲72.02 ▼0.0133.45 ▼7.5635.36 ▼3.09
Add New Post /wp-admin/post-new.php1,532 ▲423.14 ▼0.12682.66 ▲70.6655.44 ▲3.19
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.0297.78 ▲4.0642.56 ▼2.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
You can look at the official readme.txt

quick-view-woocommerce/xoo-quickview-main.php 92% from 13 tests

The primary PHP file in "Quick View WooCommerce" version 1.7 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("quick-view-woocommerce.php" instead of "xoo-quickview-main.php")

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
There were no executable files found in this plugin1,262 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP916274715
CSS2449383
JavaScript32813146
SVG10018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
5 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/premium/3.png9.60KB9.99KB0.00%
inc/premium/1.png14.82KB15.95KB0.00%
inc/premium/preloaders.png4.52KB4.65KB0.00%
inc/premium/2.png12.29KB12.86KB0.00%
inc/premium/qv-icons.png2.54KB2.58KB0.00%