Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼2.10ms] Passed 4 tests
An overview of server-side resources used by Real WP Shop Lite Ajax eCommerce Shopping Cart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.56 | 50.69 ▲7.36 |
Dashboard /wp-admin | 4.11 ▲0.54 | 60.70 ▲5.83 |
Posts /wp-admin/edit.php | 4.16 ▲0.48 | 51.74 ▼1.17 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.50 | 91.60 ▼13.73 |
Media Library /wp-admin/upload.php | 3.99 ▲0.50 | 41.75 ▲0.69 |
Edit Products /wp-admin/admin.php?page=vkrwps_edit_products | 3.93 | 36.17 |
Orders /wp-admin/admin.php?page=vkrwps_orders | 3.95 | 42.05 |
Payment Options /wp-admin/admin.php?page=vkrwps_payment_options | 3.95 | 38.76 |
Add Products /wp-admin/admin.php?page=vkrwps_add_products | 3.98 | 38.56 |
Categories /wp-admin/admin.php?page=vkrwps_categories | 3.95 | 37.10 |
Real WP Shop Lite /wp-admin/admin.php?page=real-wp-shop-lite/rwps-admin-home.php | 4.00 | 40.08 |
Delete Products /wp-admin/admin.php?page=vkrwps_delete_products | 3.95 | 38.61 |
Strings /wp-admin/admin.php?page=vkrwps_strings | 3.95 | 40.00 |
Server storage [IO: ▲0.42MB] [DB: ▲0.01MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/real-wp-shop-lite/" and "wp-content/uploads/"
- (new file) wp-content/rwpsliteuploads/.empty
Filesystem: 29 new files
Database: 6 new tables, 62 new options
New tables |
---|
wp_vkrwps_categories |
wp_vkrwps_paypal |
wp_vkrwps_order_info |
wp_vkrwps_products |
wp_vkrwps_payment_options |
wp_vkrwps_orderid |
New WordPress options |
---|
vkrwps_ppemail |
vkrwps_pricetext |
vkrwps_cps |
vkrwps_clear_cart_s |
vkrwps_step3_s |
vkrwps_nltextc |
vkrwps_sci_s |
vkrwps_orders_paging |
vkrwps_empty_cart_s |
vkrwps_cart_total_wt_s |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Real WP Shop Lite Ajax eCommerce Shopping Cart
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲215 | 13.99 ▼0.30 | 16.94 ▲15.18 | 45.06 ▲2.16 |
Dashboard /wp-admin | 2,259 ▲79 | 5.73 ▲0.05 | 84.30 ▼13.33 | 76.71 ▲32.35 |
Posts /wp-admin/edit.php | 2,164 ▲67 | 2.11 ▲0.11 | 36.26 ▼3.27 | 33.86 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,576 ▲31 | 22.09 ▼1.45 | 749.75 ▲64.05 | 38.66 ▼13.39 |
Media Library /wp-admin/upload.php | 1,455 ▲58 | 4.28 ▲0.04 | 102.24 ▼11.07 | 80.05 ▲34.67 |
Edit Products /wp-admin/admin.php?page=vkrwps_edit_products | 2,136 | 8.16 | 177.08 | 110.18 |
Orders /wp-admin/admin.php?page=vkrwps_orders | 894 | 2.24 | 27.71 | 27.76 |
Payment Options /wp-admin/admin.php?page=vkrwps_payment_options | 1,021 | 1.84 | 30.60 | 31.60 |
Add Products /wp-admin/admin.php?page=vkrwps_add_products | 2,057 | 8.10 | 154.70 | 120.40 |
Categories /wp-admin/admin.php?page=vkrwps_categories | 1,015 | 1.83 | 30.99 | 29.62 |
Real WP Shop Lite /wp-admin/admin.php?page=real-wp-shop-lite/rwps-admin-home.php | 1,251 | 2.14 | 27.37 | 43.00 |
Delete Products /wp-admin/admin.php?page=vkrwps_delete_products | 885 | 1.81 | 33.25 | 28.95 |
Strings /wp-admin/admin.php?page=vkrwps_strings | 1,333 | 2.23 | 25.59 | 27.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 6 tables in the database
- wp_vkrwps_categories
- wp_vkrwps_products
- wp_vkrwps_payment_options
- wp_vkrwps_orderid
- wp_vkrwps_order_info
- wp_vkrwps_paypal
- The uninstall procedure has failed, leaving 62 options in the database
- vkrwps_taxtext
- vkrwps_twtas
- vkrwps_weighttext
- vkrwps_ae_subj
- theysaidso_admin_options
- vkrwps_cart_total_wt_s
- vkrwps_addtocart_s
- vkrwps_shopname
- vkrwps_backts2_s
- vkrwps_prt
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=vkrwps_edit_products
- > Notice in wp-content/plugins/real-wp-shop-lite/inc/pc/edit_products_pc.php+110
Undefined variable: pid
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vkrwps_add_products
- > Notice in wp-content/plugins/real-wp-shop-lite/inc/pc/add_products_pc.php+276
Undefined variable: in_stock
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vkrwps_add_products
- > Notice in wp-content/plugins/real-wp-shop-lite/inc/pc/add_products_pc.php+279
Undefined variable: in_Stock
- > GET request to /wp-admin/admin.php?page=vkrwps_add_products
- > Notice in wp-content/plugins/real-wp-shop-lite/inc/pc/add_products_pc.php+222
Undefined variable: ld
SRP 50% 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
Please take a closer look at the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/real-wp-shop-lite/inc/options.php:3
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/real-wp-shop-lite/inc/countries.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/real-wp-shop-lite/real-wp-shop-lite.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-wp-shop-lite/inc/get_pc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-wp-shop-lite/inc/pc/a_orders_paging.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-wp-shop-lite/inc/pc/a_edit_products.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/real-wp-shop-lite/inc/countries.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/real-wp-shop-lite/rwps-admin-home.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-wp-shop-lite/inc/pc/a_update_order_status.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/real-wp-shop-lite/inc/pc/a_delete_order_row.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is not present
- Tags: Please reduce the number of tags, currently 42 tag instead of maximum 10
real-wp-shop-lite/real-wp-shop-lite.php Passed 13 tests
The entry point to "Real WP Shop Lite Ajax eCommerce Shopping Cart" version 2.0.8 is a PHP file that has certain tags in its header comment area
37 characters long description:
Lite ecommerce solution for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin8,443 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 1,054 | 29 | 3,897 |
JavaScript | 4 | 853 | 307 | 3,654 |
CSS | 3 | 121 | 32 | 892 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/chosen-sprite.png | 0.72KB | 0.65KB | ▼ 10.38% |