90% woo-photo-reviews

Code Review | Photo Reviews for WooCommerce

WordPress plugin Photo Reviews for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: woo-photo-reviews
  • Plugin version: 1.2.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 23, 2017
  • Latest release: Apr 12, 2023
  • Number of updates: 93
  • Update frequency: every 21.2 days
  • Top authors: kimvt1991 (59.14%)mytrinh (27.96%)mrt3vn (15.05%)

Code review

54 tests

User reviews

70 reviews

Install metrics

10,000+ active /317,610 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.00MB] [CPU: ▼6.67ms] Passed 4 tests

An overview of server-side resources used by Photo Reviews for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.69 ▲0.29
Dashboard /wp-admin3.32 ▼0.0351.67 ▼6.97
Posts /wp-admin/edit.php3.37 ▲0.0141.28 ▼2.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0177.47 ▼17.73
Media Library /wp-admin/upload.php3.24 ▲0.0135.17 ▲2.79

Server storage [IO: ▲2.15MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Photo Reviews for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.041.86 ▲0.3843.49 ▲4.25
Dashboard /wp-admin2,204 ▲245.57 ▼0.0893.83 ▲6.5943.54 ▲2.95
Posts /wp-admin/edit.php2,107 ▲71.97 ▲0.0032.53 ▼2.2435.63 ▼2.39
Add New Post /wp-admin/post-new.php1,540 ▲1418.30 ▼4.90648.85 ▼33.3162.40 ▲9.17
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.01102.11 ▼6.2644.47 ▼1.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: coupon, woocommerce, woocommerce review by photo, customer reviews, review reminder...

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

Analyzing the main PHP file in "Photo Reviews for WooCommerce" version 1.2.9
122 characters long description:
Allow you to automatically send email to your customers to request reviews. Customers can include photos in their reviews.

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
No dangerous file extensions were detected19,708 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript191,61956210,705
PHP163267815,756
CSS303151351,824
SVG609867
PO File1214280556

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity104.50
▷ Minimum class complexity3.00
▷ Maximum class complexity273.00
Average method complexity6.79
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods143
▷ Static methods2114.69%
▷ Public methods13695.10%
▷ Protected methods53.50%
▷ Private methods21.40%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants1052.63%
▷ Class constants947.37%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/prev.png1.33KB1.59KB0.00%
images/close.png0.27KB0.29KB0.00%
images/icons.png0.71KB0.43KB▼ 39.64%
images/next.png1.32KB1.58KB0.00%