84% vleks-woocommerce

Code Review | Vleks.com WooCommerce Integration

WordPress plugin Vleks.com WooCommerce Integration scored 84% from 54 tests.

About plugin

  • Plugin page: vleks-woocommerce
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.1
  • WordPress version: 6.3.1
  • First release: Jul 7, 2017
  • Latest release: Dec 28, 2017
  • Number of updates: 9
  • Update frequency: every 19.8 days
  • Top authors: adena2017 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 681 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.91ms] Passed 4 tests

Analyzing server-side resources used by Vleks.com WooCommerce Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.35 ▲0.36
Dashboard /wp-admin3.32 ▲0.0147.02 ▼1.15
Posts /wp-admin/edit.php3.37 ▲0.0148.49 ▼2.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.53 ▼16.77
Media Library /wp-admin/upload.php3.24 ▲0.0134.35 ▼2.76

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Vleks.com WooCommerce Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.23 ▼1.442.14 ▲0.1741.61 ▼1.86
Dashboard /wp-admin2,206 ▲274.87 ▼0.99107.78 ▼2.3438.23 ▼5.99
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0339.65 ▼2.1236.10 ▼0.74
Add New Post /wp-admin/post-new.php1,550 ▲1718.01 ▼5.29649.75 ▼19.8965.03 ▲10.47
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0395.01 ▼19.2742.56 ▼5.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/vleks-woocommerce/includes/class-wc-vleks-integration.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vleks-woocommerce/vleks-woocommerce.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: feed, vleks, marketplaces, woocommerce, integration

vleks-woocommerce/vleks-woocommerce.php 92% from 13 tests

"Vleks.com WooCommerce Integration" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin590 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4111162464
PO File15151126

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.25
▷ Minimum class complexity4.00
▷ Maximum class complexity49.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes250.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin