84% wpsso-ratings-and-reviews

Code Review | WPSSO Ratings and Reviews

WordPress plugin WPSSO Ratings and Reviews scored84%from 54 tests.

About plugin

  • Plugin page: wpsso-ratings-and...
  • Plugin version: 3.0.0
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Nov 9, 2023
  • Number of updates: 2,247
  • Update frequency: every 1.1 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

400+ active /35,358 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼5.30ms] Passed 4 tests

Analyzing server-side resources used by WPSSO Ratings and Reviews
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2037.78 ▲0.63
Dashboard /wp-admin3.58 ▲0.2345.60 ▼19.50
Posts /wp-admin/edit.php3.63 ▲0.2751.45 ▲3.79
Add New Post /wp-admin/post-new.php6.10 ▲0.2184.88 ▼4.38
Media Library /wp-admin/upload.php3.44 ▲0.2136.46 ▲2.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPSSO Ratings and Reviews
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4914.35 ▲0.071.71 ▲0.1538.75 ▼4.02
Dashboard /wp-admin2,204 ▲305.62 ▲0.1093.93 ▼10.5341.56 ▼2.05
Posts /wp-admin/edit.php2,109 ▲92.14 ▲0.1343.24 ▲6.9837.30 ▲2.18
Add New Post /wp-admin/post-new.php1,532 ▲623.29 ▼0.27658.71 ▼20.2653.50 ▲0.21
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.04102.25 ▲5.9642.82 ▲2.87

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 17× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/filters-messages.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/uninstall.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/script.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/submenu/ratings-reviews.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/config.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/register.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/admin.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/comment.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/abstract/com/add-on.php
    • > /wp-content/plugins/wpsso-ratings-and-reviews/lib/abstract/add-on.php

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: product ratings, aggregate rating, product reviews, woocommerce, schema review...

wpsso-ratings-and-reviews/wpsso-ratings-and-reviews.php Passed 13 tests

The principal PHP file in "WPSSO Ratings and Reviews" v. 3.0.0 is loaded by WordPress automatically on each request
97 characters long description:
Ratings and Reviews for WordPress Comments with Schema Aggregate Rating and Schema Review Markup.

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
Good job! No executable or dangerous file extensions detected1,516 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP176483231,197
PO File13738108
CSS212073
JavaScript4411965
Markdown123043
HTML232030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.36
▷ Minimum class complexity1.00
▷ Maximum class complexity60.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes214.29%
▷ Concrete classes1285.71%
▷ Final classes00.00%
Methods75
▷ Static methods2837.33%
▷ Public methods6080.00%
▷ Protected methods56.67%
▷ Private methods1013.33%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-128x128.png12.29KB5.71KB▼ 53.53%
images/icon-256x256.png30.35KB12.91KB▼ 57.48%