78% vextras-woocommerce

Code Review | Vextras for WooCommerce

WordPress plugin Vextras for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: vextras-woocommerce
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Feb 10, 2017
  • Latest release: Jan 13, 2021
  • Number of updates: 39
  • Update frequency: every 36.6 days
  • Top authors: ryanhungate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,366 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Vextras for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.38 ▼2.06
Dashboard /wp-admin3.31 ▲0.0053.73 ▲2.79
Posts /wp-admin/edit.php3.36 ▲0.0050.16 ▲3.74
Add New Post /wp-admin/post-new.php5.89 ▲0.00103.21 ▼1.22
Media Library /wp-admin/upload.php3.23 ▲0.0035.70 ▼3.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vextras for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.091.77 ▼0.2238.79 ▲0.46
Dashboard /wp-admin2,206 ▲175.85 ▲0.87104.27 ▼3.1841.32 ▼3.61
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0135.68 ▼2.7433.15 ▼7.78
Add New Post /wp-admin/post-new.php1,521 ▲723.13 ▲5.67646.33 ▼33.2058.08 ▼1.29
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0596.16 ▼17.2846.59 ▼3.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/vextras-woocommerce/public/partials/vextras-woocommerce-public-display.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Vextras_Woocommerce_Options' not found in wp-content/plugins/vextras-woocommerce/includes/class-vextras-woocommerce-newsletter.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/vextras-woocommerce/includes/api/class-vextras-rest-api.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Vextras_Woocommerce_Options' not found in wp-content/plugins/vextras-woocommerce/includes/class-vextras-woocommerce-mail.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Vextras_Woocommerce_Admin' not found in wp-content/plugins/vextras-woocommerce/admin/partials/vextras-woocommerce-admin-tabs.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Vextras_Rest_Api' not found in wp-content/plugins/vextras-woocommerce/includes/api/class-vextras-rest-api-skus.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Vextras_Woocommerce_Options' not found in wp-content/plugins/vextras-woocommerce/includes/class-vextras-woocommerce-service.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Vextras_Woocommerce_Options' not found in wp-content/plugins/vextras-woocommerce/includes/class-vextras-api.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Vextras_Woocommerce_Options' not found in wp-content/plugins/vextras-woocommerce/admin/class-vextras-woocommerce-admin.php:23

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7, #8 in vextras-woocommerce/assets to your readme.txt
You can look at the official readme.txt

vextras-woocommerce/vextras-woocommerce.php Passed 13 tests

This is the main PHP file of "Vextras for WooCommerce" version 2.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
28 characters long description:
Vextras - WooCommerce plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,034 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP205381,2541,796
JavaScript22634224
Markdown13014
CSS2080

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes00.00%
Methods168
▷ Static methods63.57%
▷ Public methods14385.12%
▷ Protected methods148.33%
▷ Private methods116.55%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin