Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.52MB] [CPU: ▼4.30ms] Passed 4 tests
An overview of server-side resources used by wpStore
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.51 | 28.17 ▼14.78 |
Dashboard /wp-admin | 5.81 ▲2.51 | 71.21 ▲19.95 |
Posts /wp-admin/edit.php | 5.64 ▲2.29 | 62.24 ▲10.71 |
Add New Post /wp-admin/post-new.php | 5.67 ▼0.22 | 62.50 ▼33.06 |
Media Library /wp-admin/upload.php | 5.72 ▲2.49 | 65.73 ▲28.70 |
Add product /wp-admin/post-new.php?post_type=product | 5.67 | 63.06 |
Marketplace /wp-admin/admin.php?page=wpsl-addons | 5.69 | 61.32 |
Categories /wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product | 5.76 | 58.57 |
Tags /wp-admin/edit-tags.php?taxonomy=product_tag&post_type=product | 5.75 | 66.47 |
Coupons /wp-admin/edit.php?post_type=shop_coupon | 5.65 | 49.81 |
New order /wp-admin/post-new.php?post_type=shop_order | 5.67 | 56.38 |
All orders /wp-admin/edit.php?post_type=shop_order | 5.65 | 50.87 |
Import /wp-admin/admin.php?page=wpsl-import | 5.69 | 52.50 |
Statuses /wp-admin/edit-tags.php?taxonomy=wpsl_status&post_type=shop_order | 5.76 | 82.77 |
wpStore /wp-admin/admin.php?page=wpsl_options | 5.83 | 63.94 |
Server storage [IO: ▲2.01MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 175 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_wpsl_attributes |
New WordPress options |
---|
wpsl_option |
widget_wpsl_product_filter |
widget_recent-posts |
db_upgraded |
widget_wpsl_category |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_wpsl_paymeint_icons |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for wpStore
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,048 ▲291 | 14.13 ▼0.16 | 8.08 ▲5.96 | 37.44 ▼13.12 |
Dashboard /wp-admin | 2,350 ▲159 | 5.47 ▲0.56 | 114.49 ▲15.16 | 42.15 ▲1.82 |
Posts /wp-admin/edit.php | 2,424 ▲335 | 3.58 ▲1.54 | 69.35 ▲30.39 | 75.55 ▲44.56 |
Add New Post /wp-admin/post-new.php | 1,638 ▲119 | 23.29 ▲0.38 | 661.04 ▲15.16 | 34.40 ▼22.42 |
Media Library /wp-admin/upload.php | 1,535 ▲147 | 4.67 ▲0.47 | 93.65 ▼15.69 | 41.06 ▼5.87 |
Add product /wp-admin/post-new.php?post_type=product | 7,011 | 19.96 | 843.86 | 46.92 |
Marketplace /wp-admin/admin.php?page=wpsl-addons | 1,024 | 2.21 | 30.56 | 32.74 |
Categories /wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product | 1,641 | 3.64 | 49.05 | 70.29 |
Tags /wp-admin/edit-tags.php?taxonomy=product_tag&post_type=product | 1,616 | 3.61 | 45.00 | 75.86 |
Coupons /wp-admin/edit.php?post_type=shop_coupon | 1,367 | 3.83 | 68.98 | 30.46 |
New order /wp-admin/post-new.php?post_type=shop_order | 2,035 | 3.24 | 58.72 | 44.57 |
All orders /wp-admin/edit.php?post_type=shop_order | 1,390 | 3.81 | 50.45 | 27.77 |
Import /wp-admin/admin.php?page=wpsl-import | 929 | 2.17 | 32.62 | 28.51 |
Statuses /wp-admin/edit-tags.php?taxonomy=wpsl_status&post_type=shop_order | 1,851 | 2.38 | 33.73 | 34.54 |
wpStore /wp-admin/admin.php?page=wpsl_options | 4,771 | 7.81 | 173.92 | 161.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wpsl_attributes
- This plugin did not uninstall successfully, leaving 11 options in the database
- widget_recent-comments
- widget_wpsl_smart_search
- widget_wpsl_product_filter
- can_compress_scripts
- widget_wpsl_paymeint_icons
- theysaidso_admin_options
- widget_recent-posts
- wpsl_option
- widget_theysaidso_widget
- widget_wpsl_category
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=shop_order
- > Notice in wp-content/plugins/wp-store-lite/core/class-wpsl-constructor-metaboxes.php+214
Undefined index: product_wpnonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=shop_order
- > Notice in wp-content/plugins/wp-store-lite/core/class-wpsl-constructor-metaboxes.php+214
Undefined index: shipping_wpnonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=shop_order
- > Notice in wp-content/plugins/wp-store-lite/core/class-wpsl-constructor-metaboxes.php+214
Undefined index: order_wpnonce
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=shop_order
- > Notice in wp-content/plugins/wp-store-lite/core/class-wpsl-constructor-metaboxes.php+214
Undefined index: coupons_wpnonce
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpsl_options
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WPSL_Thumb' does not have a method 'add_scripts'
- 10 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=shop_order
- > Notice in wp-content/plugins/wp-store-lite/admin/wpsl-permalinks.php+313
Undefined index: attachment
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 fix the following items
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-store-lite/core/theme-support/twentyseventeen.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-store-lite/core/theme-support/twentysixteen.php:19
- > PHP Fatal error
Uncaught Error: Class 'WPSL_Cart' not found in wp-content/plugins/wp-store-lite/core/class-wpsl-wishlist.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-store-lite/wp-store.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function wpautop() in wp-content/plugins/wp-store-lite/templates/single/product-tabs.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-store-lite/core/theme-support/twentytwelve.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-store-lite/core/theme-support/twentyfifteen.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-store-lite/core/theme-support/twentynineteen.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-store-lite/core/class-wpsl-include-js-css.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-store-lite/wp-store.php 77% from 13 tests
The primary PHP file in "wpStore" version 2.9.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-store-lite.php" instead of "wp-store.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.1")
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 plugin28,398 lines of code in 164 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 1,955 | 3,836 | 15,285 |
CSS | 6 | 96 | 152 | 6,125 |
PO File | 2 | 1,892 | 2,511 | 4,296 |
JavaScript | 6 | 69 | 161 | 1,451 |
SVG | 32 | 0 | 5 | 1,215 |
Markdown | 1 | 10 | 0 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 27.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 228 | |
▷ Static methods | 17 | 7.46% |
▷ Public methods | 224 | 98.25% |
▷ Protected methods | 1 | 0.44% |
▷ Private methods | 3 | 1.32% |
Functions | 220 | |
▷ Named functions | 214 | 97.27% |
▷ Anonymous functions | 6 | 2.73% |
Constants | 29 | |
▷ Global constants | 9 | 31.03% |
▷ Class constants | 20 | 68.97% |
▷ Public constants | 20 | 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
5 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/no-products.png | 20.43KB | 21.10KB | 0.00% |
addons/img/open-book.png | 10.66KB | 5.97KB | ▼ 44.06% |
addons/img/notification.png | 8.08KB | 4.41KB | ▼ 45.38% |
addons/img/quality.png | 9.58KB | 6.33KB | ▼ 33.87% |
assets/img/no-photo.png | 3.05KB | 3.37KB | 0.00% |