68% review-stream

Code Review | Review Stream

WordPress plugin Review Stream scored 68% from 54 tests.

About plugin

  • Plugin page: review-stream
  • Plugin version: 1.6.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Aug 31, 2023
  • Number of updates: 63
  • Update frequency: every 48.9 days
  • Top authors: gradeus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 16,376 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.30ms] Passed 4 tests

Analyzing server-side resources used by Review Stream
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.70 ▼4.07
Dashboard /wp-admin3.40 ▲0.1047.54 ▼3.89
Posts /wp-admin/edit.php3.52 ▲0.1649.08 ▲2.69
Add New Post /wp-admin/post-new.php5.98 ▲0.1096.48 ▼1.11
Media Library /wp-admin/upload.php3.33 ▲0.1034.31 ▼0.13
Review Stream /wp-admin/options-general.php?page=wprs_plugin3.3136.56

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
reviewstream_active
widget_theysaidso_widget
theysaidso_admin_options
reviewstream_version
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Review Stream: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7714.29 ▼0.271.73 ▼0.1948.51 ▲10.57
Dashboard /wp-admin2,210 ▲224.84 ▼1.06107.14 ▼2.7140.49 ▼5.43
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0238.98 ▼1.3233.79 ▼3.44
Add New Post /wp-admin/post-new.php1,535 ▼823.11 ▲4.96597.82 ▼30.1061.79 ▲9.30
Media Library /wp-admin/upload.php1,392 ▲74.26 ▲0.0398.59 ▼0.4345.44 ▼0.51
Review Stream /wp-admin/options-general.php?page=wprs_plugin1,0182.0224.9654.88

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method ReviewStream::plugin_deactivation() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/review-stream/templates/wrapper_jsonld.php
    • > /wp-content/plugins/review-stream/templates/aggregate_rating_jsonld.php
    • > /wp-content/plugins/review-stream/templates/aggregate_rating_plain.php
    • > /wp-content/plugins/review-stream/templates/review_jsonld.php
    • > /wp-content/plugins/review-stream/templates/review_plain.php
    • > /wp-content/plugins/review-stream/templates/wrapper_plain.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/review-stream/reviewstream.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/review-stream/templates/settings.php:4

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: reputation, reviews, seo

review-stream/reviewstream.php 92% from 13 tests

"Review Stream" version 1.6.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("review-stream.php" instead of "reviewstream.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin732 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP865124637
Markdown213095

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity80.00
▷ Minimum class complexity80.00
▷ Maximum class complexity80.00
Average method complexity5.65
▷ Minimum method complexity1.00
▷ Maximum method complexity64.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin