68% ultimate-reviews-rocket

Code Review | Ultimate Reviews Rocket

WordPress plugin Ultimate Reviews Rocket scored68%from 54 tests.

About plugin

  • Plugin page: ultimate-reviews-...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2022
  • Latest release: Mar 20, 2023
  • Number of updates: 20
  • Update frequency: every 21.3 days
  • Top authors: wsxplugindev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,194 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼7.67ms] Passed 4 tests

A check of server-side resources used by Ultimate Reviews Rocket
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2438.74 ▼0.19
Dashboard /wp-admin3.65 ▲0.3051.37 ▼12.15
Posts /wp-admin/edit.php3.70 ▲0.3455.74 ▲9.19
Add New Post /wp-admin/post-new.php6.15 ▲0.2683.34 ▼16.60
Media Library /wp-admin/upload.php3.49 ▲0.2637.09 ▼1.72
Ultimate Reviews Rocket /wp-admin/options-general.php?page=ultimate_reviews_rocket3.5447.77

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 6 new options
New tables
wp_urr_form_submissions
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Reviews Rocket
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,026 ▲25515.05 ▲0.845.80 ▲3.8538.59 ▼5.39
Dashboard /wp-admin2,350 ▲1626.46 ▲1.63133.77 ▲31.9337.82 ▼2.37
Posts /wp-admin/edit.php2,256 ▲1673.40 ▲1.3954.68 ▲17.3534.39 ▲1.95
Add New Post /wp-admin/post-new.php1,536 ▲2223.46 ▲5.84646.73 ▼53.4236.61 ▼8.41
Media Library /wp-admin/upload.php1,386 ▲14.13 ▼0.0383.98 ▼18.1842.66 ▼3.46
Ultimate Reviews Rocket /wp-admin/options-general.php?page=ultimate_reviews_rocket1,1063.3846.0449.35

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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/ultimate-reviews-rocket/uninstall.php+44
    Trying to get property 'ID' of non-object
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function flush_rewrite_rules() in wp-content/plugins/ultimate-reviews-rocket/admin/partials/ultimate-reviews-rocket-admin-display.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'ultimate_reviews_rocket_Admin' not found in wp-content/plugins/ultimate-reviews-rocket/admin/settings/class-ultimate-reviews-rocket-setting-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ultimate_reviews_rocket_Admin' not found in wp-content/plugins/ultimate-reviews-rocket/admin/settings/class-ultimate-reviews-rocket-enable-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ultimate_reviews_rocket_Admin' not found in wp-content/plugins/ultimate-reviews-rocket/admin/settings/class-ultimate-reviews-rocket-social-media-settings.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=ultimate_reviews_rocket
    • > Network (severe)
    wp-content/plugins/ultimate-reviews-rocket/admin/images/tools-img.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png)
The official readme.txt is a good inspiration

ultimate-reviews-rocket/ultimate-reviews-rocket.php 92% from 13 tests

"Ultimate Reviews Rocket" version 1.0.8'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:
  • Description: Please keep the plugin description shorter than 140 characters (currently 267 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected8,159 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS4174613,591
SVG1002,671
PHP123326721,296
JavaScript410632601

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.25
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods64
▷ Static methods23.12%
▷ Public methods5992.19%
▷ Protected methods00.00%
▷ Private methods57.81%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.40MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/threshold.png5.58KB2.99KB▼ 46.41%
screenshot-5.png45.49KB18.05KB▼ 60.32%
screenshot-2.png111.94KB42.25KB▼ 62.25%
screenshot-4.png137.38KB47.66KB▼ 65.30%
screenshot-3.png52.69KB20.19KB▼ 61.68%