84% supporthost-star-rating

Code Review | SupportHost Star Rating

WordPress plugin SupportHost Star Rating scored84%from 54 tests.

About plugin

  • Plugin page: supporthost-star-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2023
  • Latest release: Apr 30, 2023
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: supporthost (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /805 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.29MB] [CPU: ▼19.33ms] Passed 4 tests

A check of server-side resources used by SupportHost Star Rating
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.21 ▼9.95
Dashboard /wp-admin3.36 ▲0.0247.52 ▼14.11
Posts /wp-admin/edit.php3.47 ▲0.1249.16 ▲1.77
Add New Post /wp-admin/post-new.php4.65 ▼1.2343.89 ▼48.28
Media Library /wp-admin/upload.php3.28 ▲0.0632.90 ▼4.96
SupportHost star rating /wp-admin/options-general.php?page=supporthost-star-rating-plugin3.2330.58

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SupportHost Star Rating
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,692 ▼7913.40 ▼0.971.10 ▼1.0327.41 ▼16.18
Dashboard /wp-admin2,207 ▲195.79 ▼0.0996.19 ▼10.0940.86 ▲1.52
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0341.08 ▲2.6835.93 ▼2.29
Add New Post /wp-admin/post-new.php1,536 ▲1723.26 ▲0.06642.64 ▲34.5760.83 ▲12.65
Media Library /wp-admin/upload.php1,392 ▲44.28 ▲0.0396.00 ▼5.1142.48 ▼1.88
SupportHost star rating /wp-admin/options-general.php?page=supporthost-star-rating-plugin8292.0224.7631.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=supporthost-star-rating-plugin
    • > Notice in wp-content/plugins/supporthost-star-rating/supporthost-star-rating.php+351
    Trying to access array offset on value of type bool

SRP Passed 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
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 a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: rating, star, star rating

supporthost-star-rating/supporthost-star-rating.php Passed 13 tests

"SupportHost Star Rating" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
100 characters long description:
This light plugin adds the possibility to give rating while commenting. Optimal for review websites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected414 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26441256
CSS117189
PO File1171969

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin