Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼161.08ms] Passed 4 tests
An overview of server-side resources used by WP-OliveCart
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 47.13 ▲30.19 |
Dashboard /wp-admin | 3.21 ▲0.15 | 49.12 ▲3.13 |
Posts /wp-admin/edit.php | 3.31 ▲0.21 | 52.01 ▲11.81 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 104.84 ▼670.18 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 44.25 ▲10.92 |
Items Page List /wp-admin/edit.php?post_type=wp_olivecart | 3.22 | 44.38 |
Othre Items /wp-admin/admin.php?page=olivecart_charges | 3.16 | 40.15 |
Cart Options /wp-admin/admin.php?page=olivecart_options | 3.12 | 33.73 |
Settlement /wp-admin/admin.php?page=olivecart_settlement | 3.16 | 37.66 |
Postage /wp-admin/admin.php?page=olivecart_postage | 3.15 | 35.92 |
Items Page List /wp-admin/edit.php?post_type=cart | 3.18 | 37.94 |
Cart End Message /wp-admin/admin.php?page=olivecart_end_message | 3.10 | 32.85 |
Item Category /wp-admin/edit-tags.php?taxonomy=product_category&post_type=cart | 3.15 | 39.34 |
Cart Auto Reply Email /wp-admin/admin.php?page=olivecart_auto_email | 3.10 | 33.63 |
Add new /wp-admin/post-new.php?post_type=wp_olivecart | 3.25 | 51.11 |
Server storage [IO: ▲0.23MB] [DB: ▲0.02MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 74 new files
Database: 4 new tables, 7 new options
New tables |
---|
CART_postage |
CART_commission |
CART_cartedit |
wp_cart_meta |
New WordPress options |
---|
widget_olivecart_category_widget |
cart_button_other_option1 |
widget_olivecart_preview_widget |
s_mail_m |
sendmail_address1 |
cart_page_id |
s_subject |
Browser metrics Passed 4 tests
Checking browser requirements for WP-OliveCart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,924 ▲318 | 15.91 ▲0.31 | 9.34 ▼0.24 | 49.02 ▲0.60 |
Dashboard /wp-admin | 3,144 ▲213 | 5.91 ▼0.10 | 131.99 ▼22.72 | 133.41 ▲17.77 |
Posts /wp-admin/edit.php | 2,897 ▲161 | 2.73 ▲0.00 | 66.79 ▲4.02 | 85.99 ▼6.06 |
Add New Post /wp-admin/post-new.php | 1,742 ▲242 | 16.33 ▼2.21 | 442.34 ▲73.86 | 118.16 ▲9.37 |
Media Library /wp-admin/upload.php | 1,918 ▲111 | 5.02 ▼0.00 | 125.79 ▼14.99 | 143.76 ▲30.48 |
Items Page List /wp-admin/edit.php?post_type=wp_olivecart | 2,269 | 2.63 | 64.17 | 93.65 |
Othre Items /wp-admin/admin.php?page=olivecart_charges | 1,925 | 2.44 | 76.95 | 98.66 |
Cart Options /wp-admin/admin.php?page=olivecart_options | 1,580 | 2.70 | 62.70 | 83.19 |
Settlement /wp-admin/admin.php?page=olivecart_settlement | 1,757 | 2.54 | 69.59 | 94.83 |
Postage /wp-admin/admin.php?page=olivecart_postage | 1,515 | 2.68 | 58.85 | 78.18 |
Items Page List /wp-admin/edit.php?post_type=cart | 1,605 | 2.64 | 57.49 | 70.61 |
Cart End Message /wp-admin/admin.php?page=olivecart_end_message | 1,482 | 2.62 | 66.64 | 72.07 |
Item Category /wp-admin/edit-tags.php?taxonomy=product_category&post_type=cart | 1,908 | 2.40 | 55.07 | 79.09 |
Cart Auto Reply Email /wp-admin/admin.php?page=olivecart_auto_email | 1,579 | 2.75 | 66.66 | 73.86 |
Add new /wp-admin/post-new.php?post_type=wp_olivecart | 3,010 | 8.83 | 210.80 | 166.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 2 options in the database
- widget_olivecart_category_widget
- widget_olivecart_preview_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=olivecart_auto_email
- > Notice in wp-content/plugins/wp-olivecart/include/class-cart-auto-email.php+96
Undefined index: id
- > GET request to /wp-admin/admin.php?page=olivecart_auto_email
- > Notice in wp-content/plugins/wp-olivecart/include/class-cart-auto-email.php+140
Trying to get property 'set05' of non-object
- > GET request to /wp-admin/admin.php?page=olivecart_auto_email
- > Notice in wp-content/plugins/wp-olivecart/include/class-cart-auto-email.php+147
Trying to get property 'set06' of non-object
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=cart
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=cart 63:20 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: shopping, olivecart, eshop, e-commerce, store...
wp-olivecart/wp-olivecart.php Passed 13 tests
"WP-OliveCart" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
37 characters long description:
Simple & Easy Free e-commerce plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin5,733 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 50 | 196 | 170 | 3,238 |
CSS | 11 | 67 | 173 | 2,063 |
PO File | 1 | 418 | 785 | 344 |
JavaScript | 2 | 7 | 5 | 88 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 127 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon_order.png | 0.87KB | 0.66KB | ▼ 23.99% |
images/icon_cart.png | 0.36KB | 0.19KB | ▼ 48.52% |
images/icon_commodity.png | 0.38KB | 0.18KB | ▼ 51.56% |
images/icon_customer.png | 0.79KB | 0.44KB | ▼ 43.78% |