83% woocommerce-quick-view-lite

Code Review | Woocommerce Quick View lite

WordPress plugin Woocommerce Quick View lite scored83%from 54 tests.

About plugin

  • Plugin page: woocommerce-quick...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0+
  • WordPress version: 6.3.1
  • First release: May 27, 2015
  • Latest release: Jan 23, 2020
  • Number of updates: 126
  • Update frequency: every 13.5 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /13,797 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
Install script ran successfully

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

Server-side resources used by Woocommerce Quick View lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.37 ▼2.13
Dashboard /wp-admin3.31 ▲0.0042.86 ▼3.24
Posts /wp-admin/edit.php3.36 ▲0.0049.95 ▲4.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0077.82 ▼20.87
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▼0.49

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Woocommerce Quick View lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.261.62 ▲0.0739.57 ▼0.13
Dashboard /wp-admin2,195 ▲175.62 ▼0.0480.40 ▼14.3236.96 ▼3.66
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0338.66 ▲1.8135.08 ▲6.17
Add New Post /wp-admin/post-new.php1,526 ▼222.96 ▼0.12649.67 ▼2.5453.49 ▼3.07
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.05108.97 ▼3.6146.62 ▼2.46

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
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-quick-view-lite/libs/tgm/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-quick-view-lite/libs/tgm/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/woocommerce-quick-view-lite/libs/tgm/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

woocommerce-quick-view-lite/plugin.php 85% from 13 tests

The entry point to "Woocommerce Quick View lite" version 1.5.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-quick-view-lite.php" instead of "plugin.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin2,639 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP78551,6802,454
CSS2345144
JavaScript127141

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity48.14
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods101
▷ Static methods54.95%
▷ Public methods7877.23%
▷ Protected methods2322.77%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/prm_option6.png5.41KB2.96KB▼ 45.35%
images/prm_option7.png8.19KB3.70KB▼ 54.80%
images/prm_option3.png23.05KB7.61KB▼ 66.99%
images/head-arrow.png1.68KB1.43KB▼ 14.83%
images/premium-head.png6.61KB5.20KB▼ 21.37%