Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/lib/helpers/ec_helper_functions.php+210
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.55ms] Passed 4 tests
This is a short check of server-side resources used by eCommerce Shopping Cart by Inventory.com
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.51 ▼8.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.98 ▼2.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.59 ▼2.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.61 ▼16.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.81 ▲3.73 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for eCommerce Shopping Cart by Inventory.com
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.33 | 4.56 ▲2.91 | 41.82 ▼3.54 |
Dashboard /wp-admin | 2,206 ▲18 | 4.89 ▼0.97 | 101.77 ▼15.44 | 42.57 ▲0.47 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.97 ▼0.09 | 37.62 ▼0.48 | 35.17 ▲1.29 |
Add New Post /wp-admin/post-new.php | 1,514 ▼22 | 17.78 ▼5.63 | 650.25 ▼48.71 | 52.54 ▲0.32 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.15 ▼0.08 | 101.49 ▲0.27 | 44.73 ▼2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/uninstall.php+31
count(): Parameter must be an array or an object that implements Countable
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 27× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/plugin.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/lib/widgets/ECFrontProducts.widget.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/views/frontend/cart-page.tpl.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/templates/front-page.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/templates/parts/single-page-tabs.tpl.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/config.php:2
- > PHP Fatal error
Uncaught Error: Class 'ECShipping' not found in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/lib/shipping/erply.shipping.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/views/frontend/register-page.tpl.php:2
- > PHP Notice
Undefined variable: posts in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/views/frontend/search-page-tpl.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ecommerce-shopping-cart-by-inventorycom/lib/widgets/ECCategories.widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
ecommerce-shopping-cart-by-inventorycom/plugin.php 92% from 13 tests
The primary PHP file in "eCommerce Shopping Cart by Inventory.com" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("ecommerce-shopping-cart-by-inventorycom.php" instead of "plugin.php")
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
Everything looks great! No dangerous files found in this plugin8,015 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 907 | 894 | 5,285 |
JavaScript | 6 | 205 | 45 | 997 |
Sass | 3 | 46 | 8 | 731 |
CSS | 5 | 107 | 20 | 512 |
PO File | 2 | 218 | 465 | 482 |
Ruby | 1 | 6 | 11 | 7 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 17.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 250 | |
▷ Static methods | 14 | 5.60% |
▷ Public methods | 203 | 81.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 47 | 18.80% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/swipebox/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |