64% simple-5-star-rating

Code Review | Simple 5 Star Rating

WordPress plugin Simple 5 Star Rating scored64%from 54 tests.

About plugin

  • Plugin page: simple-5-star-rating
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jul 2, 2020
  • Latest release: Jul 3, 2020
  • Number of updates: 18
  • Update frequency: every 0.1 days
  • Top authors: tihombhardwaj (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /507 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.96MB] [CPU: ▼57.14ms] Passed 4 tests

A check of server-side resources used by Simple 5 Star Rating
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.92 ▼42.07
Dashboard /wp-admin2.05 ▼1.266.83 ▼43.21
Posts /wp-admin/edit.php2.05 ▼1.315.75 ▼49.53
Add New Post /wp-admin/post-new.php2.05 ▼3.844.97 ▼93.73
Media Library /wp-admin/upload.php2.05 ▼1.187.14 ▼33.65

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp__tihom_rating
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Simple 5 Star Rating
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16613.94 ▼0.367.11 ▲5.1841.97 ▼7.16
Dashboard /wp-admin2,236 ▲304.96 ▼0.95110.62 ▲4.5340.48 ▲0.09
Posts /wp-admin/edit.php2,112 ▲152.06 ▲0.0741.89 ▲3.2734.31 ▼4.37
Add New Post /wp-admin/post-new.php1,537 ▼1023.22 ▼0.02612.16 ▼26.9465.51 ▼4.85
Media Library /wp-admin/upload.php1,412 ▲124.27 ▲0.13107.71 ▼0.1245.56 ▲1.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style 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 font_awesome_stylesheet handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp__tihom_rating
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/simple-5-star-rating/simple-5-star-rating.php:26

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: seo optimized rating, google rating, votes, star rating, rating...

simple-5-star-rating/simple-5-star-rating.php 92% from 13 tests

Analyzing the main PHP file in "Simple 5 Star Rating" version 1.0
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 396 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected629 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript220520
PHP12220106
CSS1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin