68% star-review-manager

Code Review | Star Review Manager

WordPress plugin Star Review Manager scored68%from 54 tests.

About plugin

  • Plugin page: star-review-manager
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.3
  • WordPress version: 6.3.1
  • First release: Feb 21, 2015
  • Latest release: Sep 13, 2015
  • Number of updates: 23
  • Update frequency: every 8.9 days
  • Top authors: bramdnl (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30+ active /4,677 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Star Review Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1591.46 ▲48.28
Dashboard /wp-admin3.33 ▲0.02100.72 ▲54.26
Posts /wp-admin/edit.php3.38 ▲0.02104.93 ▲60.32
Add New Post /wp-admin/post-new.php5.91 ▲0.02138.54 ▲55.84
Media Library /wp-admin/upload.php3.25 ▲0.02103.73 ▲69.74
Review container settings /wp-admin/admin.php?page=reviewcontainer_settings3.2487.32
Star Manager Review Settings /wp-admin/options-general.php?page=settings3.2580.05
Manage review instances /wp-admin/admin.php?page=manage_reviewcontainers3.2682.10
Manage reviews /wp-admin/admin.php?page=manage_reviews3.2884.88
Help /wp-admin/admin.php?page=help3.3185.03
Create new review container /wp-admin/admin.php?page=new_reviewcontainer3.2685.41

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 37 new files
Database: 5 new tables, 6 new options
New tables
srm_container
srm_rating
srm_containerrating
srm_reviews
srm_users
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Star Review Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲17913.57 ▼0.804.88 ▲3.0042.11 ▼3.40
Dashboard /wp-admin2,240 ▲554.92 ▼0.94105.26 ▲3.4639.45 ▲0.01
Posts /wp-admin/edit.php2,134 ▲452.27 ▲0.2238.12 ▼10.6337.74 ▼6.01
Add New Post /wp-admin/post-new.php1,699 ▲15420.34 ▲1.96713.17 ▲97.3962.13 ▲13.42
Media Library /wp-admin/upload.php1,426 ▲384.19 ▲0.03102.81 ▼13.8752.23 ▲8.29
Review container settings /wp-admin/admin.php?page=reviewcontainer_settings8061.8124.7822.58
Star Manager Review Settings /wp-admin/options-general.php?page=settings8531.8025.4631.45
Manage review instances /wp-admin/admin.php?page=manage_reviewcontainers8731.8126.8927.82
Manage reviews /wp-admin/admin.php?page=manage_reviews9021.8028.3927.43
Help /wp-admin/admin.php?page=help1,1311.7624.3638.19
Create new review container /wp-admin/admin.php?page=new_reviewcontainer8811.8427.0028.94

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
The following items require your attention
  • Zombie tables detected upon uninstall: 5 tables
    • srm_containerrating
    • srm_rating
    • srm_container
    • srm_users
    • srm_reviews
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=settings
    • > Notice in wp-content/plugins/star-review-manager/admin/settings.php+3
    Undefined index: css_text
    • > GET request to /wp-admin/admin.php?page=manage_reviewcontainers
    • > Deprecated in wp-content/plugins/star-review-manager/admin/manage_reviewcontainers.php+19
    Non-static method ReviewContainer::get_reviewcontainers() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=manage_reviews
    • > Warning in wp-content/plugins/star-review-manager/admin/manage_reviews.php+94
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/admin.php?page=manage_reviews
    • > Notice in wp-content/plugins/star-review-manager/admin/manage_reviews.php+28
    Undefined variable: pending_reviews
    • > GET request to /wp-admin/admin.php?page=manage_reviews
    • > Notice in wp-content/plugins/star-review-manager/admin/manage_reviews.php+94
    Undefined variable: active_reviews

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function showDonate() in wp-content/plugins/star-review-manager/admin/manage_reviews.php:11
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/star-review-manager/admin/settings.php on line 2
    • > PHP Notice
      Undefined index: css_text in wp-content/plugins/star-review-manager/admin/settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/star-review-manager/admin/help.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/star-review-manager/admin/admin_menu.php:2
    • > PHP Warning
      Use of undefined constant SRM_FREE - assumed 'SRM_FREE' (this will throw an Error in a future version of PHP) in wp-content/plugins/star-review-manager/admin/manage_reviewcontainers.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/star-review-manager/admin/new_reviewcontainer.php:55
    • > PHP Warning
      Use of undefined constant SRM_FREE - assumed 'SRM_FREE' (this will throw an Error in a future version of PHP) in wp-content/plugins/star-review-manager/admin/manage_reviews.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/star-review-manager/admin/settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function showDonate() in wp-content/plugins/star-review-manager/admin/manage_reviewcontainers.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

star-review-manager/star-review-manager.php Passed 13 tests

The entry point to "Star Review Manager" version 1.2.2 is a PHP file that has certain tags in its header comment area
78 characters long description:
Easily set up a review page and manage your reviews using Star Review Manager.

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 plugin9,164 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
CSS777516,326
JavaScript25061931,258
PHP17110541,017
PO File1131240334
SVG100229

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.25
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
No PNG files were detected