74% star-rating-feedback

Code Review | Star Rating Feedback

WordPress plugin Star Rating Feedback scored74%from 54 tests.

About plugin

  • Plugin page: star-rating-feedback
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 1, 2013
  • Latest release: Mar 6, 2015
  • Number of updates: 10
  • Update frequency: every 66.8 days
  • Top authors: scottie1984 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,894 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.86ms] Passed 4 tests

An overview of server-side resources used by Star Rating Feedback
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.58 ▼4.16
Dashboard /wp-admin3.37 ▲0.0649.93 ▼2.32
Posts /wp-admin/edit.php3.42 ▲0.0649.05 ▲3.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0685.11 ▼13.47
Media Library /wp-admin/upload.php3.29 ▲0.0635.33 ▲0.50

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables
feedback
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
feedback_db_version
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Star Rating Feedback
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲27214.06 ▼0.336.21 ▲4.3836.98 ▼7.21
Dashboard /wp-admin2,310 ▲1225.26 ▲0.3699.73 ▼16.8438.85 ▼4.82
Posts /wp-admin/edit.php2,127 ▲352.45 ▲0.4137.10 ▼0.7533.52 ▲1.41
Add New Post /wp-admin/post-new.php1,546 ▲1223.57 ▲0.22601.40 ▼55.3333.35 ▼16.34
Media Library /wp-admin/upload.php1,417 ▲354.42 ▲0.15103.33 ▲7.9846.49 ▲4.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • feedback
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • feedback_db_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/star-rating-feedback/ho_feedback.php:79

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
These attributes need to be fixed:
  • Donate link: Invalid url: ""
You can take inspiration from this readme.txt

star-rating-feedback/ho_feedback.php 92% from 13 tests

The primary PHP file in "Star Rating Feedback" version 0.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("star-rating-feedback.php" instead of "ho_feedback.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected4,345 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript63044753,090
SVG100504
CSS3512423
PHP17151315
XML20013

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/star-on.png2.02KB1.14KB▼ 43.74%
images/cancel-off.png0.68KB0.61KB▼ 11.30%
screenshot-1.png109.26KB46.93KB▼ 57.05%
screenshot-3.png30.01KB13.69KB▼ 54.39%
images/star-half.png0.65KB0.65KB0.00%