84% star-rating-review-w

Code Review | Star Rating Review for Welcart

WordPress plugin Star Rating Review for Welcart scored84%from 54 tests.

About plugin

  • Plugin page: star-rating-review-w
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Jun 7, 2014
  • Latest release: Dec 15, 2015
  • Number of updates: 6
  • Update frequency: every 92.8 days
  • Top authors: TEMPLX (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,391 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼16.51ms] Passed 4 tests

This is a short check of server-side resources used by Star Rating Review for Welcart
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.16 ▲0.36
Dashboard /wp-admin3.33 ▼0.0248.20 ▼17.77
Posts /wp-admin/edit.php3.38 ▲0.0246.53 ▼2.39
Add New Post /wp-admin/post-new.php5.16 ▼0.7365.95 ▼45.02
Media Library /wp-admin/upload.php3.25 ▲0.0239.75 ▼0.85

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
recovery_mode_email_last_sent
db_upgraded
SRRWTX_VERSION
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Star Rating Review for Welcart
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.53 ▼0.854.63 ▲2.8643.15 ▼5.10
Dashboard /wp-admin2,209 ▲215.82 ▲0.81101.62 ▼10.3240.70 ▼0.54
Posts /wp-admin/edit.php2,092 ▲62.00 ▼0.0537.86 ▼3.3632.16 ▼6.33
Add New Post /wp-admin/post-new.php45 ▼1,4690.44 ▼17.080.06 ▼670.968.32 ▼50.64
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.04110.54 ▲8.8263.05 ▲15.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • SRRWTX_VERSION
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/star-rating-review-w/srrwtx_function.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/star-rating-review-w/star_rating_review.php:13
    • > 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-rating-review-w/srrwtx_function.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/star-rating-review-w/srrwtx_function.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/star-rating-review-w/comments.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: welcart e-commerce starrating review

star-rating-review-w/star_rating_review.php 85% from 13 tests

Analyzing the main PHP file in "Star Rating Review for Welcart" version 1.1
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("star-rating-review-w.php" instead of "star_rating_review.php")

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 detected598 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS15217271
PHP33222268
PO File121059

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin