83% show-product-review-and-ratings

Code Review | Show Product Reviews and Ratings

WordPress plugin Show Product Reviews and Ratings scored 83% from 54 tests.

About plugin

  • Plugin page: show-product-revi...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Feb 12, 2022
  • Latest release: Feb 12, 2022
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: pdmi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 210 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
This plugin's installer ran successfully

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

A check of server-side resources used by Show Product Reviews and Ratings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.69 ▼0.92
Dashboard /wp-admin3.31 ▲0.0149.76 ▲1.42
Posts /wp-admin/edit.php3.36 ▲0.0045.83 ▲1.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.45 ▼9.14
Media Library /wp-admin/upload.php3.23 ▲0.0036.72 ▼0.70

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Show Product Reviews and Ratings
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.19 ▼1.371.69 ▼0.3944.13 ▼2.77
Dashboard /wp-admin2,203 ▲155.84 ▼0.0795.70 ▼3.8837.84 ▼3.36
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0333.57 ▼2.0333.63 ▼1.02
Add New Post /wp-admin/post-new.php1,533 ▼023.28 ▼0.21664.99 ▲11.0464.59 ▲9.39
Media Library /wp-admin/upload.php1,391 ▲64.15 ▼0.02106.82 ▼14.2845.49 ▼3.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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)
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/show-product-review-and-ratings/pdmi-show-review-ratings.php:23

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 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

show-product-review-and-ratings/pdmi-show-review-ratings.php 85% from 13 tests

Analyzing the main PHP file in "Show Product Reviews and Ratings" version 1.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("show-product-review-and-ratings.php" instead of "pdmi-show-review-ratings.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1301684
CSS1207

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.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
PNG images were not found in this plugin