90% gutena-star-ratings

Code Review | Gutena Star Ratings

WordPress plugin Gutena Star Ratings scored90%from 54 tests.

About plugin

  • Plugin page: gutena-star-ratings
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Feb 17, 2023
  • Latest release: Feb 17, 2023
  • Number of updates: 2
  • Update frequency: every 8.0 days
  • Top authors: expresstech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /2,453 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.43ms] Passed 4 tests

A check of server-side resources used by Gutena Star Ratings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.31 ▼3.25
Dashboard /wp-admin3.35 ▲0.0062.70 ▼11.41
Posts /wp-admin/edit.php3.40 ▲0.0456.46 ▲0.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.00 ▼3.69
Media Library /wp-admin/upload.php3.27 ▲0.0440.98 ▲4.14

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

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

Browser metrics Passed 4 tests

Gutena Star Ratings: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.23 ▲0.031.71 ▼0.0247.26 ▲2.46
Dashboard /wp-admin2,195 ▲185.61 ▼0.0486.62 ▼3.5241.64 ▼0.17
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0433.79 ▼8.0133.97 ▼2.36
Add New Post /wp-admin/post-new.php6,371 ▲4,84527.81 ▲4.26896.02 ▲228.2538.98 ▼9.72
Media Library /wp-admin/upload.php1,403 ▲64.20 ▼0.03102.58 ▼2.1745.16 ▼0.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: ratings, testimonials, product reviews, star reviews, reviews

gutena-star-ratings/gutena-star-ratings.php Passed 13 tests

The primary PHP file in "Gutena Star Ratings" version 1.0.0 is used by WordPress to initiate all plugin functionality
19 characters long description:
Gutena Star Ratings

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin230 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP439110143
JSON10062
SVG50020
JavaScript2013
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity7.00
▷ Minimum class complexity5.00
▷ Maximum class complexity9.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/gutena/gutena-ecosys-onboard/assets/cta/bg.png6.31KB3.12KB▼ 50.59%