73% simple-woo-reviews-lite

Code Review | Simple Woo Reviews Lite

WordPress plugin Simple Woo Reviews Lite scored73%from 54 tests.

About plugin

  • Plugin page: simple-woo-review...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2021
  • Latest release: May 17, 2023
  • Number of updates: 77
  • Update frequency: every 9.3 days
  • Top authors: themesjungle (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,081 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼10.21ms] Passed 4 tests

This is a short check of server-side resources used by Simple Woo Reviews Lite
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.92 ▼6.79
Dashboard /wp-admin3.31 ▲0.0046.60 ▼8.55
Posts /wp-admin/edit.php3.36 ▲0.0042.32 ▼8.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.62 ▼17.40
Media Library /wp-admin/upload.php3.23 ▲0.0040.47 ▲6.72

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Woo Reviews Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.25 ▼1.135.33 ▲3.5240.45 ▼4.88
Dashboard /wp-admin2,206 ▲184.83 ▼1.0598.90 ▼28.0541.17 ▼1.71
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0032.86 ▼3.7635.47 ▲0.86
Add New Post /wp-admin/post-new.php1,533 ▼322.99 ▼0.22640.21 ▼26.6856.54 ▼6.88
Media Library /wp-admin/upload.php1,385 ▼34.29 ▲0.0895.35 ▼16.2642.31 ▼6.21

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/simple-woo-reviews-lite/uninstall.php+25
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-woo-reviews-lite/public/partials/simple-woo-reviews-shortcodes-manager.php:76
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-woo-reviews-lite/public/partials/simple-woo-reviews-wc-review-form-manager.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-woo-reviews-lite/admin/partials/class-simple-woo-reviews-admin-settings.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-woo-reviews-lite/public/partials/simple-woo-reviews-wc-account-manager.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-woo-reviews-lite/admin/partials/class-simple-woo-reviews-posttype.php:36

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 on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

simple-woo-reviews-lite/simple-woo-reviews.php 77% from 13 tests

"Simple Woo Reviews Lite" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 205 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-woo-reviews-lite.php" instead of "simple-woo-reviews.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected5,544 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP145361,2012,531
CSS898512,105
JavaScript7246117860
SVG31048

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity25.17
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods115
▷ Static methods32.61%
▷ Public methods10994.78%
▷ Protected methods00.00%
▷ Private methods65.22%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There were not PNG files found in your plugin