73% starcat-review

Code Review | Starcat Review - WordPress Reviews & Rating Plugin with Woocommerce Integration

WordPress plugin Starcat Review - WordPress Reviews & Rating Plugin with Woocommerce Integration scored 73% from 54 tests.

About plugin

  • Plugin page: starcat-review
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9.1
  • WordPress version: 5.8.1
  • First release: Oct 1, 2020
  • Latest release: Mar 10, 2022
  • Number of updates: 43
  • Update frequency: every 12.2 days
  • Top authors: Essekia (76.74%)sekar0369 (25.58%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active / 5,293 total downloads


Plugin footprint 64% 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: ▲7.03MB] [CPU: ▼109.76ms] 50% from 4 tests

This is a short check of server-side resources used by Starcat Review - WordPress Reviews & Rating Plugin with Woocommerce Integration
The following require your attention
  • RAM: Total memory usage should be kept under 10MB (currently 10.27MB on /wp-admin/admin.php?page=freemius)
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 7.03MB on /wp-admin/admin.php?page=scr-settings#tab=woocommerce-notification)
PageMemory (MB)CPU Time (ms)
Home /10.25 ▲7.4173.81 ▲37.92
Dashboard /wp-admin10.27 ▲7.2077.32 ▲26.79
Posts /wp-admin/edit.php10.27 ▲7.1679.29 ▲44.89
Add New Post /wp-admin/post-new.php11.94 ▲6.51118.37 ▼541.90
Media Library /wp-admin/upload.php10.27 ▲7.2664.83 ▲38.16
Freemius Debug [v.] /wp-admin/admin.php?page=freemius10.2767.00

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 624 new files
Database: no new tables, 8 new options
New WordPress options

Browser metrics Passed 4 tests

Starcat Review - WordPress Reviews & Rating Plugin with Woocommerce Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,132 ▲53116.80 ▲1.1219.50 ▲14.0073.94 ▼19.06
Dashboard /wp-admin3,207 ▲3116.64 ▲0.49118.20 ▼14.61177.03 ▼1.55
Posts /wp-admin/edit.php3,807 ▲1,0675.80 ▲2.56115.32 ▲49.20148.68 ▲8.91
Add New Post /wp-admin/post-new.php2,271 ▼1,47216.17 ▼2.85406.62 ▼32.80213.05 ▲43.70
Media Library /wp-admin/upload.php2,150 ▲3985.69 ▲0.18125.94 ▼19.81196.40 ▲14.62
General Settings /wp-admin/admin.php?page=scr-settings#tab=general-settings2,3535.3684.33182.58
Woocommerce Settings /wp-admin/admin.php?page=scr-settings#tab=woocommerce-settings2,3195.0686.21163.68
Category Page /wp-admin/admin.php?page=scr-settings#tab=category-page2,3225.3181.37169.57
Freemius Debug [v.] /wp-admin/admin.php?page=freemius1,7632.7863.44113.77
Main Page /wp-admin/admin.php?page=scr-settings#tab=main-page2,3465.3684.09166.37
Single Page /wp-admin/admin.php?page=scr-settings#tab=single-page2,3175.1182.39176.53
Photo Reviews /wp-admin/admin.php?page=scr-settings#tab=photo-reviews2,3505.3782.44176.02
Comparison Table /wp-admin/admin.php?page=scr-settings#tab=comparison-table2,3505.3683.31167.41
User Reviews /wp-admin/admin.php?page=scr-settings#tab=user-reviews2,3534.9583.46174.48
Woocommerce Notification /wp-admin/admin.php?page=scr-settings#tab=woocommerce-notification2,3535.3781.94170.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/starcat-review/vendor/pauple/pluginator/src/Library/freemius/includes/class-freemius.php+8911
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 7 options in the database
    • scr_options
    • fs_debug_mode
    • fs_accounts
    • fs_gdpr
    • starcat_review_upgrades
    • fs_active_plugins
    • starcat_review_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 128× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/starcat-review/vendor/composer/installers/src/Composer/Installers/ZendInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/starcat-review/vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/starcat-review/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/starcat-review/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Codeception\\Test\\Unit' not found in wp-content/plugins/starcat-review/vendor/pauple/pluginator/tests/unit/WidgetryTest.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/starcat-review/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/starcat-review/vendor/composer/installers/src/Composer/Installers/Installer.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/starcat-review/vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:6
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/starcat-review/app/components/user-reviews/table.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/starcat-review/vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add a description for screenshot #11 in starcat-review/assets to your readme.txt
  • Screenshots: Screenshot #1 (User review with Multi-criteria, Reply, Voting, Pros & Cons, Search and Sort) image missing
You can take inspiration from this readme.txt

starcat-review/starcat-review.php 92% from 13 tests

"Starcat Review - WordPress Reviews & Rating Plugin with Woocommerce Integration" version 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:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "3.0")

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected81,987 lines of code in 517 files:
LanguageFilesBlank linesComment linesLines of code
PO File223,3233,4476,859

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,029)
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity22.49
▷ Minimum class complexity1.00
▷ Maximum class complexity3,029.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
▷ Abstract classes92.73%
▷ Concrete classes32197.27%
▷ Final classes00.00%
▷ Static methods29913.28%
▷ Public methods1,68674.87%
▷ Protected methods1657.33%
▷ Private methods40117.81%
▷ Named functions13395.00%
▷ Anonymous functions75.00%
▷ Global constants10374.10%
▷ Class constants3625.90%
▷ Public constants36100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.17MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/img/templates/left-sidebar.png0.36KB0.19KB▼ 46.61%
includes/assets/img/stars-stat.png16.94KB5.62KB▼ 66.83%
vendor/pauple/pluginator/src/Library/freemius/assets/img/starcat-review.png14.07KB5.84KB▼ 58.47%