78% editorial-rating

Code Review | Ultimate Editorial Rating - Rating & Review plugin for Customers and Editor with Pros and Cons (WooCommerce Support)

WordPress plugin Ultimate Editorial Rating - Rating & Review plugin for Customers and Editor with Pros and Cons (WooCommerce Support) scored78%from 54 tests.

About plugin

  • Plugin page: editorial-rating
  • Plugin version: 3.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2021
  • Latest release: Jun 20, 2023
  • Number of updates: 45
  • Update frequency: every 14.1 days
  • Top authors: wpqode (57.78%)frohadpro (31.11%)grandplugin (15.56%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /2,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.83MB] [CPU: ▲2.59ms] Passed 4 tests

Server-side resources used by Ultimate Editorial Rating - Rating & Review plugin for Customers and Editor with Pros and Cons (WooCommerce Support)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.29 ▲0.8354.61 ▲9.37
Dashboard /wp-admin4.12 ▲0.8155.86 ▲3.17
Posts /wp-admin/edit.php4.24 ▲0.8868.03 ▲16.55
Add New Post /wp-admin/post-new.php6.76 ▲0.8897.51 ▼11.75
Media Library /wp-admin/upload.php4.04 ▲0.8150.86 ▲9.55
+ Add Review /wp-admin/post-new.php?post_type=wpas_review4.1858.85
Support /wp-admin/edit.php?post_type=wpas_review&page=wpas_help4.1051.39
Settings /wp-admin/edit.php?post_type=wpas_review&page=wpas-settings4.0962.11
All Reviews /wp-admin/edit.php?post_type=wpas_review4.1646.39

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 76 new files
Database: no new tables, 8 new options
New WordPress options
widget_wpas_editorial_rating_widget
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
_wpas_admin_options
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Editorial Rating - Rating & Review plugin for Customers and Editor with Pros and Cons (WooCommerce Support)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8414.39 ▲0.041.68 ▼0.0238.99 ▼2.30
Dashboard /wp-admin2,251 ▲805.63 ▲0.0694.32 ▼1.5842.82 ▲0.91
Posts /wp-admin/edit.php2,533 ▲4335.44 ▲3.4297.44 ▲58.9536.02 ▼0.22
Add New Post /wp-admin/post-new.php2,156 ▲63026.08 ▲2.84800.30 ▲58.9347.46 ▼10.95
Media Library /wp-admin/upload.php1,457 ▲574.18 ▼0.0286.61 ▼27.7540.92 ▼6.70
+ Add Review /wp-admin/post-new.php?post_type=wpas_review2,2856.14130.26142.66
Support /wp-admin/edit.php?post_type=wpas_review&page=wpas_help2,10011.45329.70162.19
Settings /wp-admin/edit.php?post_type=wpas_review&page=wpas-settings1,3495.4772.0639.46
All Reviews /wp-admin/edit.php?post_type=wpas_review1,4975.3864.2027.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_wpas_editorial_rating_widget
    • _wpas_admin_options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/editorial-rating/admin/wpas-help-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/editorial-rating/admin/wpas-help-admin-display.php:201

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

editorial-rating/wpas_editorial_rating.php 85% from 13 tests

The entry point to "Ultimate Editorial Rating - Rating & Review plugin for Customers and Editor with Pros and Cons (WooCommerce Support)" version 3.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("editorial-rating.php" instead of "wpas_editorial_rating.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin15,507 lines of code in 58 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,3185336,613
CSS83845285,256
PHP381,2551,1283,619
SVG40019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity27.19
▷ Minimum class complexity1.00
▷ Maximum class complexity151.00
Average method complexity6.36
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes27.41%
▷ Concrete classes2592.59%
▷ Final classes00.00%
Methods132
▷ Static methods3123.48%
▷ Public methods12796.21%
▷ Protected methods00.00%
▷ Private methods53.79%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/wpas-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
admin/img/product-image.png39.34KB19.62KB▼ 50.12%