62% wp-ultimate-reviews-free

Code Review | WP Ultimate Reviews FREE

WordPress plugin WP Ultimate Reviews FREEscored62%from 54 tests.

About plugin

  • Plugin page: wp-ultimate-revie...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 18, 2018
  • Latest release: Nov 17, 2019
  • Number of updates: 18
  • Update frequency: every 28.9 days
  • Top authors: jtibbles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /754 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.03ms] Passed 4 tests

This is a short check of server-side resources used by WP Ultimate Reviews FREE
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.76 ▼4.01
Dashboard /wp-admin3.35 ▲0.0058.07 ▼4.41
Posts /wp-admin/edit.php3.44 ▲0.0856.59 ▲0.82
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.06 ▼16.51
Media Library /wp-admin/upload.php3.25 ▲0.0240.68 ▲4.75
Remove Review /wp-admin/admin.php?page=wpurf_remove_review_page3.2536.61
Activate Review /wp-admin/admin.php?page=wpurf_act_review3.2537.09
Deactivate Review /wp-admin/admin.php?page=wpurf_deact_review3.2536.16
Shortcode Generator /wp-admin/admin.php?page=wpurf_shortcodes3.2838.66
WP Ultimate Reviews /wp-admin/admin.php?page=wpurf3.2230.72
Create a Review /wp-admin/admin.php?page=wpurf_add_reviews3.2737.97
View All Reviews /wp-admin/admin.php?page=wpurf_view_reviews3.2232.19

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: 1 new table, 6 new options
New tables
wp_wpur_reviews
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Ultimate Reviews FREE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,993 ▲23614.36 ▲0.161.90 ▼0.1349.38 ▲8.19
Dashboard /wp-admin2,366 ▲1866.18 ▲0.59110.06 ▲16.3541.63 ▼1.25
Posts /wp-admin/edit.php2,291 ▲1913.32 ▲1.3350.86 ▲11.0035.48 ▼2.74
Add New Post /wp-admin/post-new.php1,551 ▲2223.45 ▼0.10634.30 ▼19.2736.14 ▼20.89
Media Library /wp-admin/upload.php1,434 ▲344.19 ▼0.0284.69 ▼14.3343.36 ▲0.12
Remove Review /wp-admin/admin.php?page=wpurf_remove_review_page9723.0036.3523.09
Activate Review /wp-admin/admin.php?page=wpurf_act_review1,9354.5642.2645.76
Deactivate Review /wp-admin/admin.php?page=wpurf_deact_review1,9354.5841.9141.66
Shortcode Generator /wp-admin/admin.php?page=wpurf_shortcodes1,1702.9940.3163.73
WP Ultimate Reviews /wp-admin/admin.php?page=wpurf1,2603.0240.1669.41
Create a Review /wp-admin/admin.php?page=wpurf_add_reviews1,1173.0039.4463.60
View All Reviews /wp-admin/admin.php?page=wpurf_view_reviews1,2573.0238.6467.02

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_wpur_reviews
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+33
    Undefined index: wpurf_add
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+43
    Undefined index: del
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+47
    Undefined index: dels
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+51
    Undefined index: edit
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/functions/admin.php+63
    Undefined index: filter-email
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/functions/admin.php+71
    Undefined index: filter-status
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/functions/admin.php+161
    Undefined variable: total
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+55
    Undefined index: act
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+59
    Undefined index: acts
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+63
    Undefined index: deact
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+67
    Undefined index: deacts
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+75
    Undefined index: pg
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/functions/admin.php+59
    Undefined index: filter-name
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/functions/admin.php+67
    Undefined index: filter-rating
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/functions/admin.php+76
    Undefined index: filter-sort
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpurf_view_reviews
    • > Notice in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php+78
    Undefined index: filter-ascdesc

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-ultimate-reviews-free/wp-ultimate-reviews.php
  • 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-create-review.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-view-all-reviews.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-ultimate-reviews-free/template/wpurf_average.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ultimate-reviews-free/functions/admin.php:4
    • > PHP Notice
      Undefined variable: the_reviews in wp-content/plugins/wp-ultimate-reviews-free/template/wpurf_display.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-ultimate-reviews-free/admin/wpurf-shortcode-generator.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/wp-ultimate-reviews-free/functions/setup.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ultimate-reviews-free/template/wpurf_create.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ultimate-reviews-free/template/wpurf_display.php:15
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wp-ultimate-reviews-free/template/wpurf_display.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === WP Ultimate Reviews FREE=== )
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

wp-ultimate-reviews-free/wp-ultimate-reviews.php 92% from 13 tests

The primary PHP file in "WP Ultimate Reviews FREE" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-ultimate-reviews-free.php" instead of "wp-ultimate-reviews.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,985 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
SVG2082,260
PHP1135675965
CSS64132602
JavaScript4435158

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png17.90KB6.31KB▼ 64.78%