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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 58.92 ▲1.21 |
Dashboard /wp-admin | 3.53 ▲0.12 | 35.26 ▼2.98 |
Posts /wp-admin/edit.php | 3.76 ▲0.11 | 47.13 ▲3.64 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.02 | 95.25 ▼1,213.12 |
Media Library /wp-admin/upload.php | 3.42 ▲0.12 | 28.17 ▼1.91 |
Ve Platform /wp-admin/edit.php?post_type=wpsc-product&page=veplatform-plugin-settings | 3.21 | 21.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲27 | 16.00 ▲0.26 | 5.91 ▼1.53 | 23.50 ▲20.57 |
Dashboard /wp-admin | 2,898 ▲37 | 6.15 ▼0.04 | 122.29 ▼15.35 | 155.16 ▼4.20 |
Posts /wp-admin/edit.php | 2,695 ▲10 | 3.24 ▲0.01 | 64.70 ▲3.19 | 140.35 ▲1.11 |
Add New Post /wp-admin/post-new.php | 1,715 ▲54 | 20.90 ▲4.83 | 430.63 ▲26.18 | 156.30 ▲1.53 |
Media Library /wp-admin/upload.php | 1,704 ▲6 | 5.50 ▼0.03 | 140.07 ▼8.99 | 186.61 ▲0.63 |
Ve Platform /wp-admin/edit.php?post_type=wpsc-product&page=veplatform-plugin-settings | 28 | 0.94 | 0.04 | 17.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 86 | 55 | 626 |
CSS | 1 | 126 | 0 | 558 |
JavaScript | 2 | 48 | 4 | 259 |
PO File | 1 | 36 | 85 | 137 |
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 code | 0.25 |
Average class complexity | 11.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 4 | 10.81% |
▷ Public methods | 23 | 62.16% |
▷ Protected methods | 14 | 37.84% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icons/phone.png | 1.24KB | 0.43KB | ▼ 65.38% |
assets/img/veads-logo-min.png | 29.90KB | 6.54KB | ▼ 78.12% |
assets/img/creatives-logo.png | 2.28KB | 1.11KB | ▼ 51.11% |
assets/img/radio_unselected.png | 1.40KB | 0.47KB | ▼ 66.32% |
assets/icon.png | 2.86KB | 1.70KB | ▼ 40.46% |