84% rate-star-review

Code Review | Rate Star Review - AJAX Reviews for Content, with Star Ratings

WordPress plugin Rate Star Review - AJAX Reviews for Content, with Star Ratings scored84%from 54 tests.

About plugin

  • Plugin page: rate-star-review
  • Plugin version: 1.5.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Jun 28, 2023
  • Number of updates: 32
  • Update frequency: every 53.4 days
  • Top authors: videowhisper (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /9,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼3.91ms] Passed 4 tests

An overview of server-side resources used by Rate Star Review - AJAX Reviews for Content, with Star Ratings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2543.32 ▼4.74
Dashboard /wp-admin3.55 ▲0.2446.32 ▼2.91
Posts /wp-admin/edit.php3.67 ▲0.3149.36 ▲1.53
Add New Post /wp-admin/post-new.php6.13 ▲0.2492.97 ▼8.18
Media Library /wp-admin/upload.php3.47 ▲0.2435.18 ▲0.21
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=review3.4738.24
All Reviews /wp-admin/edit.php?post_type=review3.5339.65
Documentation /wp-admin/admin.php?page=rate-star-review-doc3.4231.64
Settings /wp-admin/admin.php?page=rate-star-review3.4233.29
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=review3.4734.32

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 172 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
VWrateStarReview
widget_recent-posts
widget_recent-comments
category_children
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Rate Star Review - AJAX Reviews for Content, with Star Ratings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16414.37 ▼0.111.88 ▲0.2144.87 ▼0.23
Dashboard /wp-admin2,290 ▲1105.53 ▼0.1484.49 ▼3.5139.60 ▼4.94
Posts /wp-admin/edit.php2,195 ▲952.04 ▲0.0533.75 ▼4.4739.78 ▲6.99
Add New Post /wp-admin/post-new.php1,617 ▲9118.28 ▼4.79582.29 ▼53.4070.41 ▲11.95
Media Library /wp-admin/upload.php1,495 ▲954.24 ▲0.08100.92 ▲5.0843.03 ▲1.49
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=review1,5472.1327.8037.35
All Reviews /wp-admin/edit.php?post_type=review1,2231.9731.0634.70
Documentation /wp-admin/admin.php?page=rate-star-review-doc9602.0022.1831.45
Settings /wp-admin/admin.php?page=rate-star-review1,0742.0123.5437.55
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=review1,4112.1327.6934.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • category_children
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • VWrateStarReview

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rate-star-review
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rate-star-review
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Review form and review list.)
Please take inspiration from this readme.txt

rate-star-review/rate-star-review.php 92% from 13 tests

The entry point to "Rate Star Review - AJAX Reviews for Content, with Star Ratings" version 1.5.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 357 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin102,843 lines of code in 153 files:
LanguageFilesBlank linesComment linesLines of code
CSS9611,0399,20956,514
JavaScript513,3081,40642,417
SVG30122,880
PHP1363561,008
JSON10020
Markdown1304

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity143.00
▷ Minimum class complexity143.00
▷ Maximum class complexity143.00
Average method complexity6.07
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods2485.71%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png41.24KB16.57KB▼ 59.81%
scripts/semantic/themes/default/assets/images/flags.png27.46KB29.21KB0.00%