78% starrating-feedback-automatic

Code Review | Star Ratings

WordPress plugin Star Ratings scored78%from 54 tests.

About plugin

  • Plugin page: starrating-feedba...
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2019
  • Latest release: Mar 11, 2020
  • Number of updates: 13
  • Update frequency: every 7.5 days
  • Top authors: feedbackauto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /552 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.71MB] [CPU: ▼56.96ms] Passed 4 tests

Server-side resources used by Star Ratings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.195.86 ▼34.51
Dashboard /wp-admin2.29 ▼1.017.47 ▼41.48
Posts /wp-admin/edit.php2.29 ▼1.069.12 ▼49.68
Add New Post /wp-admin/post-new.php2.29 ▼3.596.84 ▼102.16
Media Library /wp-admin/upload.php2.29 ▼0.936.24 ▼29.37

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Star Ratings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲19615.11 ▲0.571.84 ▲0.3025.25 ▼22.96
Dashboard /wp-admin2,362 ▲1856.48 ▲0.87128.05 ▲35.8349.96 ▲8.26
Posts /wp-admin/edit.php2,287 ▲1843.65 ▲1.6450.46 ▲8.7241.78 ▲6.23
Add New Post /wp-admin/post-new.php1,704 ▲17322.46 ▼0.77584.51 ▼42.9838.37 ▼27.02
Media Library /wp-admin/upload.php1,430 ▲304.31 ▲0.1287.77 ▼19.0351.36 ▲4.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the prefix_bootstrap handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6, #7 in starrating-feedback-automatic/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
The official readme.txt might help

starrating-feedback-automatic/starreviews.php 69% from 13 tests

The main file in "Star Ratings" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("starrating-feedback-automatic.php" instead of "starreviews.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin933 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7216404876
Markdown133054
JavaScript20102
CSS1061

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity1.60
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.18
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
Functions15
▷ Named functions1386.67%
▷ Anonymous functions213.33%
Constants1
▷ Global constants1100.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
9 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/3star.png5.07KB0.58KB▼ 88.51%
includes/images/5starsample.png1.80KB1.69KB▼ 5.87%
includes/images/4star.png5.03KB0.57KB▼ 88.76%
includes/images/nostar.png7.77KB1.15KB▼ 85.20%
includes/images/fb.png28.46KB12.98KB▼ 54.41%