83% woo-reviews-by-wiremo

Code Review | Wiremo - Product Reviews for WooCommerce

WordPress plugin Wiremo - Product Reviews for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: woo-reviews-by-wi...
  • Plugin version: 1.4.98
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2017
  • Latest release: Jul 31, 2023
  • Number of updates: 114
  • Update frequency: every 19.3 days
  • Top authors: wiremo (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /29,852 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 gracefully, with no errors

Server metrics [RAM: ▲0.37MB] [CPU: ▲2.38ms] Passed 4 tests

This is a short check of server-side resources used by Wiremo - Product Reviews for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3449.13 ▲7.83
Dashboard /wp-admin3.77 ▲0.4256.92 ▲8.23
Posts /wp-admin/edit.php3.82 ▲0.4258.24 ▲6.68
Add New Post /wp-admin/post-new.php6.29 ▲0.3691.61 ▼13.22
Media Library /wp-admin/upload.php3.63 ▲0.3645.19 ▲10.70

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Wiremo - Product Reviews for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.72 ▲0.192.15 ▲0.3744.42 ▼0.08
Dashboard /wp-admin2,217 ▲435.62 ▼0.0285.96 ▼4.9242.34 ▼0.80
Posts /wp-admin/edit.php2,122 ▲221.95 ▼0.0336.36 ▼6.4136.77 ▲1.69
Add New Post /wp-admin/post-new.php1,546 ▲2023.12 ▼0.22692.08 ▼18.6463.83 ▲8.22
Media Library /wp-admin/upload.php1,416 ▲134.18 ▼0.06110.73 ▲7.2148.55 ▲2.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/woo-reviews-by-wiremo/config.php:4

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 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Wiremo review widget.), #2 (Wiremo review widget mobile view.), #3 (Pop-up trigger in action.), #4 (Wiremo Review Carousel.), #5 (Wiremo Triggers (Pop-up, Open a conversation, Auto-reply).), #6 (Automated Review Request Campaign.), #7 (Automated Review Request Campaign Settings.), #8 (Automated Review Request Settings in the plugin.), #9 (Past Review Request Settings in the plugin.)
Please take inspiration from this readme.txt

woo-reviews-by-wiremo/function.php 69% from 13 tests

The principal PHP file in "Wiremo - Product Reviews for WooCommerce" v. 1.4.98 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 200 characters long)
  • Git Repository: An alternative Git repository was detected
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-reviews-by-wiremo.php" instead of "function.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected9,070 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP367937245,744
SVG2002,683
JavaScript569393
Markdown3850208
JSON20034
CSS71128

PHP code Passed 2 tests

An overview 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.41
Average class complexity26.70
▷ Minimum class complexity4.00
▷ Maximum class complexity78.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods117
▷ Static methods10.85%
▷ Public methods8270.09%
▷ Protected methods65.13%
▷ Private methods2924.79%
Functions106
▷ Named functions10397.17%
▷ Anonymous functions32.83%
Constants6
▷ Global constants6100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
css/images/ui-icons_555555_256x240.png6.84KB4.18KB▼ 38.84%