84% woo-product-review-schema

Code Review | WooCommerce Product Review Schema - Automatic, no Setup Needed

WordPress plugin WooCommerce Product Review Schema - Automatic, no Setup Needed scored84%from 54 tests.

About plugin

  • Plugin page: woo-product-revie...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.3
  • WordPress version: 6.3.1
  • First release: Jun 19, 2019
  • Latest release: Jan 13, 2020
  • Number of updates: 5
  • Update frequency: every 42.2 days
  • Top authors: JoseVega (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WooCommerce Product Review Schema - Automatic, no Setup Needed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.57 ▲2.69
Dashboard /wp-admin3.31 ▲0.0146.35 ▼0.02
Posts /wp-admin/edit.php3.36 ▲0.0047.33 ▼5.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.69 ▼4.67
Media Library /wp-admin/upload.php3.24 ▲0.0033.07 ▼12.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce Product Review Schema - Automatic, no Setup Needed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.131.89 ▲0.0240.25 ▼5.67
Dashboard /wp-admin2,206 ▲185.90 ▲0.99107.48 ▲4.2241.87 ▼1.34
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0438.81 ▲3.5636.25 ▲2.16
Add New Post /wp-admin/post-new.php1,535 ▼023.48 ▲0.25667.15 ▼15.2859.25 ▼5.67
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.0196.68 ▼9.1841.91 ▼14.19

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-product-review-schema/index.php:14

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: seo, woocommerce, reviews, schema

woo-product-review-schema/index.php 92% from 13 tests

The main PHP file in "WooCommerce Product Review Schema - Automatic, no Setup Needed" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-product-review-schema.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141034

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin