84% woo-combined-reviews

Code Review | Combine Reviews for WooCommerce

WordPress plugin Combine Reviews for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woo-combined-reviews
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.7
  • WordPress version: 6.3.1
  • First release: Aug 16, 2019
  • Latest release: Mar 11, 2021
  • Number of updates: 6
  • Update frequency: every 95.7 days
  • Top authors: ahmadshyk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /561 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.20ms] Passed 4 tests

Server-side resources used by Combine Reviews for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.75 ▼8.04
Dashboard /wp-admin3.32 ▲0.0155.17 ▲3.02
Posts /wp-admin/edit.php3.37 ▲0.0150.69 ▲1.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.86 ▲1.27
Media Library /wp-admin/upload.php3.24 ▲0.0135.07 ▲0.27

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Combine Reviews for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.19 ▼1.391.77 ▼0.5841.27 ▼12.21
Dashboard /wp-admin2,212 ▲244.88 ▼0.98108.36 ▼10.7441.61 ▼2.72
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0039.81 ▲5.2436.54 ▲0.56
Add New Post /wp-admin/post-new.php1,520 ▼2217.68 ▼0.78644.66 ▲18.6557.53 ▲4.68
Media Library /wp-admin/upload.php1,397 ▲94.20 ▲0.0298.01 ▼4.2041.90 ▼3.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • wcr_options
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_comments() in wp-content/plugins/woo-combined-reviews/frontend/wcr-single-product-reviews-tab-content.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/woo-combined-reviews/frontend/wcr-combine-reviews.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: woocommerce reviews, woocommerce, reviews

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

The entry point to "Combine Reviews for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
133 characters long description:
The simple plugin that combine reviews of all products on your WooCommerce website and display all combined reviews for each product.

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
Success! There were no dangerous files found in this plugin391 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP67043304
CSS116087

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin