Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/orillacart/core/path.php+72
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.47MB] [CPU: ▼51.46ms] Passed 4 tests
Analyzing server-side resources used by Orilla Cart - eCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.52 ▼0.94 | 8.59 ▼33.03 |
Dashboard /wp-admin | 2.54 ▼0.76 | 10.86 ▼39.77 |
Posts /wp-admin/edit.php | 2.54 ▼0.81 | 10.25 ▼39.14 |
Add New Post /wp-admin/post-new.php | 2.54 ▼3.34 | 9.98 ▼93.89 |
Media Library /wp-admin/upload.php | 2.54 ▼0.69 | 8.10 ▼26.77 |
Countries /wp-admin/admin.php?page=component_com_shop-country | 2.54 | 10.00 |
List all products /wp-admin/edit.php?post_type=product | 2.54 | 9.40 |
Orders /wp-admin/edit.php?post_type=shop_order | 2.54 | 10.17 |
Payment Methods /wp-admin/admin.php?page=component_com_shop-payment | 2.54 | 9.92 |
Manage Amounts /wp-admin/admin.php?page=component_com_shop-stockroom-manage | 2.54 | 11.65 |
Stockrooms /wp-admin/admin.php?page=component_com_shop-stockroom | 2.54 | 8.52 |
Shipping Groups /wp-admin/edit-tags.php?taxonomy=shipping_group&post_type=product | 2.54 | 9.23 |
Configuration /wp-admin/admin.php?page=component_com_shop-admin-configuration | 2.54 | 8.91 |
Attribute Sets /wp-admin/admin.php?page=component_com_shop-attributes | 2.54 | 10.04 |
Product tags /wp-admin/edit-tags.php?taxonomy=product_tags&post_type=product | 2.54 | 8.28 |
Server storage [IO: ▲3.15MB] [DB: ▲0.06MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 336 new files
Database: 19 new tables, 8 new options
New tables |
---|
wp_shop_shipping_rate |
wp_shop_order_attribute_item |
wp_shop_cart |
wp_shop_attribute |
wp_shop_attribute_property |
wp_shop_variations |
wp_shop_products_stockroom_xref |
wp_shop_termmeta |
wp_shop_category_xref |
wp_shop_state |
... |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
shop_parameters |
widget_com_shop_cart |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Orilla Cart - eCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 13.32 ▼1.47 | 4.63 ▲2.84 | 43.02 ▼4.31 |
Dashboard /wp-admin | 2,291 ▲103 | 5.87 ▼0.06 | 110.21 ▼1.13 | 42.18 ▼4.83 |
Posts /wp-admin/edit.php | 2,173 ▲81 | 2.01 ▲0.01 | 40.39 ▲4.04 | 34.50 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,604 ▲87 | 22.02 ▲4.39 | 716.59 ▲94.56 | 70.57 ▲7.73 |
Media Library /wp-admin/upload.php | 1,476 ▲88 | 4.20 ▼0.04 | 94.79 ▼11.13 | 42.58 ▼2.24 |
Countries /wp-admin/admin.php?page=component_com_shop-country | 1,406 | 1.80 | 29.76 | 49.92 |
List all products /wp-admin/edit.php?post_type=product | 1,237 | 1.99 | 30.86 | 30.84 |
Orders /wp-admin/edit.php?post_type=shop_order | 1,219 | 1.97 | 34.58 | 30.85 |
Payment Methods /wp-admin/admin.php?page=component_com_shop-payment | 911 | 1.72 | 27.15 | 32.28 |
Manage Amounts /wp-admin/admin.php?page=component_com_shop-stockroom-manage | 1,159 | 3.08 | 56.59 | 35.04 |
Stockrooms /wp-admin/admin.php?page=component_com_shop-stockroom | 907 | 1.70 | 25.45 | 32.46 |
Shipping Groups /wp-admin/edit-tags.php?taxonomy=shipping_group&post_type=product | 1,319 | 2.26 | 25.15 | 30.66 |
Configuration /wp-admin/admin.php?page=component_com_shop-admin-configuration | 7,225 | 2.14 | 30.91 | 45.07 |
Attribute Sets /wp-admin/admin.php?page=component_com_shop-attributes | 908 | 1.71 | 25.32 | 32.17 |
Product tags /wp-admin/edit-tags.php?taxonomy=product_tags&post_type=product | 1,316 | 2.14 | 27.59 | 30.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/orillacart/core/path.php+72
Array and string offset access syntax with curly braces is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_com_shop_cart
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 39 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=product_tags&post_type=product
- > Deprecated in wp-content/plugins/orillacart/core/path.php+76
Array and string offset access syntax with curly braces is deprecated
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=component_com_shop-attributes
- > Deprecated in wp-content/plugins/orillacart/com_shop/shop.php+174
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=shop_order
- > Warning in wp-content/plugins/orillacart/com_shop/action_handlers.php+957
Use of undefined constant cb - assumed 'cb' (this will throw an Error in a future version of PHP)
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 76× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/orillacart/com_shop/admin/views/generalsettings/templates/settings.tpl.php
- > /wp-content/plugins/orillacart/helpers/strings.php
- > /wp-content/plugins/orillacart/com_shop/admin/models/tax.php
- > /wp-content/plugins/orillacart/com_shop/admin/views/shipping/view.html.php
- > /wp-content/plugins/orillacart/core/selfregisterable.php
- > /wp-content/plugins/orillacart/com_shop/admin/views/generalsettings/templates/global.settings.tpl.php
- > /wp-content/plugins/orillacart/com_shop/admin/views/shipping/templates/list_carriers.tpl.php
- > /wp-content/plugins/orillacart/com_shop/tables/shop_attribute_set.php
- > /wp-content/plugins/orillacart/com_shop/admin/views/generalsettings/templates/site.settings.tpl.php
- > /wp-content/plugins/orillacart/com_shop/tables/tax_rate.php
- 102× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/orillacart/com_shop/admin/views/attributes/templates/edit_set.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orillacart/com_shop/methods/cheque.php:16
- > PHP Fatal error
Uncaught Error: Class 'BObject' not found in wp-content/plugins/orillacart/helpers/jsimplexml.php:8
- > PHP Fatal error
Uncaught Error: Interface 'SelfRegisterable' not found in wp-content/plugins/orillacart/com_shop/methods/payment_method.php:3
- > PHP Fatal error
Uncaught Error: Class 'controller' not found in wp-content/plugins/orillacart/com_shop/admin/controllers/shipping.php:3
- > PHP Fatal error
Uncaught Error: Class 'Model' not found in wp-content/plugins/orillacart/com_shop/front/models/account.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/orillacart/com_shop/admin/views/product/templates/variations_manager.tpl.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/orillacart/com_shop/admin/views/payment/templates/add_payment_form.tpl.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/orillacart/com_shop/admin/views/shipping/templates/select_states.tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/orillacart/com_shop/admin/views/country/templates/state_list.tpl.php:2
- > PHP Fatal error
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)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=component_com_shop-stockroom-manage
- > Network (severe)
wp-content/plugins/orillacart/com_shop/assets/js/themes/default/style.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
orillacart/main.php 92% from 13 tests
"Orilla Cart - eCommerce" version 1.4.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("orillacart.php" instead of "main.php")
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
Everything looks great! No dangerous files found in this plugin44,811 lines of code in 274 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 7,892 | 1,997 | 22,850 |
JavaScript | 38 | 1,531 | 1,472 | 14,592 |
CSS | 12 | 336 | 83 | 4,215 |
PO File | 2 | 1,296 | 1,910 | 2,727 |
SVG | 1 | 0 | 0 | 380 |
XML | 1 | 0 | 0 | 44 |
HTML | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 159 | |
▷ Abstract classes | 14 | 8.81% |
▷ Concrete classes | 145 | 91.19% |
▷ Final classes | 8 | 5.52% |
Methods | 1,099 | |
▷ Static methods | 108 | 9.83% |
▷ Public methods | 924 | 84.08% |
▷ Protected methods | 160 | 14.56% |
▷ Private methods | 15 | 1.36% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 19 | |
▷ Global constants | 9 | 47.37% |
▷ Class constants | 10 | 52.63% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
35 PNG files occupy 0.24MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
com_shop/assets/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
com_shop/assets/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
com_shop/assets/images/no.png | 0.66KB | 0.46KB | ▼ 29.73% |
com_shop/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
com_shop/assets/images/register.png | 1.49KB | 1.39KB | ▼ 6.55% |