90% woo-virtual-reviews

Code Review | Faview - Virtual Reviews for WooCommerce

WordPress plugin Faview - Virtual Reviews for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-virtual-reviews
  • Plugin version: 1.2.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 4, 2019
  • Latest release: Jul 3, 2023
  • Number of updates: 59
  • Update frequency: every 27.9 days
  • Top authors: thanhtd (76.27%)mrt3vn (16.95%)kimvt1991 (10.17%)

Code review

54 tests

User reviews

47 reviews

Install metrics

10,000+ active /72,620 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.26MB] [CPU: ▼6.37ms] Passed 4 tests

This is a short check of server-side resources used by Faview - Virtual Reviews for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2744.20 ▼2.64
Dashboard /wp-admin3.56 ▲0.2649.79 ▼2.13
Posts /wp-admin/edit.php3.68 ▲0.3248.83 ▼3.04
Add New Post /wp-admin/post-new.php6.15 ▲0.2687.15 ▼17.65
Media Library /wp-admin/upload.php3.49 ▲0.2638.76 ▲3.56

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
wvr_data
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Faview - Virtual Reviews for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.73 ▲0.141.75 ▲0.1044.90 ▲0.25
Dashboard /wp-admin2,200 ▲235.70 ▲0.1491.29 ▼2.1639.40 ▼6.57
Posts /wp-admin/edit.php2,112 ▲121.98 ▲0.0139.14 ▼0.8836.38 ▼2.45
Add New Post /wp-admin/post-new.php1,543 ▲1518.10 ▼4.96656.89 ▲29.5174.85 ▲5.16
Media Library /wp-admin/upload.php1,408 ▲54.21 ▲0.0696.17 ▼3.3243.00 ▼3.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • wvr_data
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% 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 to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (General settings), #2 (Auto generate reviews), #3 (Add reviews manual), #4 (Show canned)
Please take inspiration from this readme.txt

woo-virtual-reviews/woo-virtual-reviews.php Passed 13 tests

The entry point to "Faview - Virtual Reviews for WooCommerce" version 1.2.14 is a PHP file that has certain tags in its header comment area
109 characters long description:
WooCommerce Virtual Reviews creates virtual reviews, display canned reviews to increase your conversion rate.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin10,447 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript101,1623874,586
PHP94041392,587
SVG6082,120
CSS1614580946
PO File184111208

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.49
Average class complexity35.60
▷ Minimum class complexity2.00
▷ Maximum class complexity108.00
Average method complexity4.93
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods88
▷ Static methods910.23%
▷ Public methods8192.05%
▷ Protected methods22.27%
▷ Private methods55.68%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected