10% veplatform-for-wp-ecommerce

Code Review | VePlatform for WP eCommerce

WordPress plugin VePlatform for WP eCommerce scored 10% from 54 tests.

About plugin

  • Plugin page: veplatform-for-wp...
  • Plugin version: 16.1.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.5.2
  • WordPress version: 5.9.2
  • First release: Apr 15, 2016
  • Latest release: Jun 2, 2016
  • Number of updates: 6
  • Update frequency: every 8.0 days
  • Top authors: alex.ivan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 505 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method VePlatform::veplatform_plugin_activation() should not be called statically

Server metrics [RAM: ▲0.09MB] [CPU: ▼304.20ms] Passed 4 tests

Analyzing server-side resources used by VePlatform for WP eCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.1858.92 ▲1.21
Dashboard /wp-admin3.53 ▲0.1235.26 ▼2.98
Posts /wp-admin/edit.php3.76 ▲0.1147.13 ▲3.64
Add New Post /wp-admin/post-new.php7.00 ▲0.0295.25 ▼1,213.12
Media Library /wp-admin/upload.php3.42 ▲0.1228.17 ▼1.91
Ve Platform /wp-admin/edit.php?post_type=wpsc-product&page=veplatform-plugin-settings3.2121.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

VePlatform for WP eCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,781 ▲2716.00 ▲0.265.91 ▼1.5323.50 ▲20.57
Dashboard /wp-admin2,898 ▲376.15 ▼0.04122.29 ▼15.35155.16 ▼4.20
Posts /wp-admin/edit.php2,695 ▲103.24 ▲0.0164.70 ▲3.19140.35 ▲1.11
Add New Post /wp-admin/post-new.php1,715 ▲5420.90 ▲4.83430.63 ▲26.18156.30 ▲1.53
Media Library /wp-admin/upload.php1,704 ▲65.50 ▼0.03140.07 ▼8.99186.61 ▲0.63
Ve Platform /wp-admin/edit.php?post_type=wpsc-product&page=veplatform-plugin-settings280.940.0417.63

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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+307
    Non-static method VePlatform::veplatform_plugin_uninstall() should not be called statically

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/veplatform-for-wp-ecommerce/classes/constants.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=wpsc-product&page=veplatform-plugin-settings
    • > Network (severe)
    wp-admin/edit.php?post_type=wpsc-product&page=veplatform-plugin-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

veplatform-for-wp-ecommerce/veplatform.php 85% from 13 tests

The principal PHP file in "VePlatform for WP eCommerce" v. 16.1.6.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("veplatform-for-wp-ecommerce.php" instead of "veplatform.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,580 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP118655626
CSS11260558
JavaScript2484259
PO File13685137

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.25
▷ Minimum class complexity4.00
▷ Maximum class complexity20.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods37
▷ Static methods410.81%
▷ Public methods2362.16%
▷ Protected methods1437.84%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants17100.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
32 PNG files occupy 0.35MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icons/phone.png1.24KB0.43KB▼ 65.38%
assets/img/veads-logo-min.png29.90KB6.54KB▼ 78.12%
assets/img/creatives-logo.png2.28KB1.11KB▼ 51.11%
assets/img/radio_unselected.png1.40KB0.47KB▼ 66.32%
assets/icon.png2.86KB1.70KB▼ 40.46%