10% urwa-for-woocommerce

Code Review | URWA for WooCommerce

WordPress plugin URWA for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: urwa-for-woocommerce
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.3.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Oct 30, 2015
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: Rob Smelik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /902 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/urwa-for-woocommerce/urwa-for-woocommerce.php+105
    Declaration of urwa_woocommerce_widget::widget() should be compatible with WP_Widget::widget($args, $instance)

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.87ms] Passed 4 tests

This is a short check of server-side resources used by URWA for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.37 ▼35.32
Dashboard /wp-admin2.09 ▼1.225.63 ▼45.12
Posts /wp-admin/edit.php2.09 ▼1.276.22 ▼39.65
Add New Post /wp-admin/post-new.php2.09 ▼3.806.10 ▼95.40
Media Library /wp-admin/upload.php2.09 ▼1.145.29 ▼31.86

Server storage [IO: ▲0.02MB] [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: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_urwa_woocommerce_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for URWA for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.211.66 ▼0.0336.94 ▼2.84
Dashboard /wp-admin2,192 ▲155.55 ▼0.1082.75 ▼9.2937.49 ▼1.10
Posts /wp-admin/edit.php2,097 ▼31.97 ▲0.0235.76 ▼0.7437.28 ▲4.88
Add New Post /wp-admin/post-new.php1,526 ▼223.14 ▼0.04664.50 ▼15.4555.64 ▲3.71
Media Library /wp-admin/upload.php1,403 ▲34.14 ▼0.12109.38 ▲11.9347.93 ▲3.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/urwa-for-woocommerce/urwa-for-woocommerce.php+105
    Declaration of urwa_woocommerce_widget::widget() should be compatible with WP_Widget::widget($args, $instance)
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_urwa_woocommerce_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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
Even though no errors were found, 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/urwa-for-woocommerce/urwa-for-woocommerce.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 on the user side

Optimizations

Plugin configuration 97% 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 your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
Please take inspiration from this readme.txt

urwa-for-woocommerce/urwa-for-woocommerce.php Passed 13 tests

Analyzing the main PHP file in "URWA for WooCommerce" version 1.0
88 characters long description:
Selectively display widgets to logged in users based on standard WooCommerce user roles.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin73 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3404273

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin