Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.55MB] [CPU: ▲9.98ms] Passed 4 tests
Server-side resources used by FoxyShop
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.06 ▲1.59 | 48.22 ▲11.03 |
Dashboard /wp-admin | 4.88 ▲1.58 | 50.86 ▲6.26 |
Posts /wp-admin/edit.php | 4.94 ▲1.58 | 58.66 ▲9.93 |
Add New Post /wp-admin/post-new.php | 7.42 ▲1.54 | 104.03 ▲12.68 |
Media Library /wp-admin/upload.php | 4.74 ▲1.51 | 54.09 ▲17.17 |
Manage Products /wp-admin/edit.php?post_type=foxyshop_product | 4.85 | 45.88 |
Settings /wp-admin/edit.php?post_type=foxyshop_product&page=foxyshop_settings_page | 4.71 | 41.42 |
Tools /wp-admin/edit.php?post_type=foxyshop_product&page=foxyshop_tools | 4.71 | 36.89 |
Product Categories /wp-admin/edit-tags.php?taxonomy=foxyshop_categories&post_type=foxyshop_product | 4.74 | 42.63 |
Add New Product /wp-admin/post-new.php?post_type=foxyshop_product | 4.94 | 60.13 |
/wp-admin/admin.php?page=foxyshop_setup | 4.71 | 48.13 |
Set Category Order /wp-admin/edit.php?post_type=foxyshop_product&page=foxyshop_category_sort | 4.71 | 52.86 |
Set Product Order /wp-admin/edit.php?post_type=foxyshop_product&page=foxyshop_custom_sort | 4.72 | 40.26 |
Server storage [IO: ▲2.45MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 156 new files
Database: no new tables, 12 new options
New WordPress options |
---|
foxyshop_rewrite_rules |
foxyshop_setup_required |
widget_foxyshop-category-widget |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_foxyshop-cart-link-widget |
widget_foxyshop-category-list-widget |
can_compress_scripts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by FoxyShop
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲178 | 13.82 ▼0.53 | 8.72 ▲7.15 | 43.48 ▲0.47 |
Dashboard /wp-admin | 2,245 ▲65 | 5.65 ▼0.12 | 86.63 ▲1.68 | 70.49 ▲30.28 |
Posts /wp-admin/edit.php | 2,165 ▲65 | 2.03 ▲0.03 | 38.41 ▲3.66 | 36.36 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,764 ▲236 | 24.60 ▲1.76 | 621.21 ▼40.90 | 37.40 ▼13.81 |
Media Library /wp-admin/upload.php | 1,459 ▲56 | 4.22 ▲0.09 | 97.59 ▼14.51 | 83.60 ▲35.87 |
Manage Products /wp-admin/edit.php?post_type=foxyshop_product | 1,165 | 2.01 | 33.77 | 31.96 |
Settings /wp-admin/edit.php?post_type=foxyshop_product&page=foxyshop_settings_page | 1,865 | 1.92 | 27.56 | 65.73 |
Tools /wp-admin/edit.php?post_type=foxyshop_product&page=foxyshop_tools | 1,405 | 2.04 | 27.94 | 41.67 |
Product Categories /wp-admin/edit-tags.php?taxonomy=foxyshop_categories&post_type=foxyshop_product | 1,333 | 2.42 | 28.30 | 33.62 |
Add New Product /wp-admin/post-new.php?post_type=foxyshop_product | 3,205 | 7.53 | 194.85 | 157.44 |
/wp-admin/admin.php?page=foxyshop_setup | 1,628 | 11.08 | 280.70 | 76.98 |
Set Category Order /wp-admin/edit.php?post_type=foxyshop_product&page=foxyshop_category_sort | 856 | 1.80 | 26.59 | 28.03 |
Set Product Order /wp-admin/edit.php?post_type=foxyshop_product&page=foxyshop_custom_sort | 863 | 1.80 | 27.37 | 28.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/foxyshop/themefiles/foxyshop-receipt.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxyshop/themefiles/foxyshop-checkout-template.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function foxyshop_setup_product() in wp-content/plugins/foxyshop/themefiles/foxyshop-product-loop.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/foxyshop/themefiles/foxyshop-single-product.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxyshop/themefiles/foxyshop-receipt-template-2.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foxyshop/themefiles/foxyshop-checkout-template-2.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/foxyshop/themefiles/foxyshop-all-categories.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/foxyshop/themefiles/foxyshop-single-category.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/foxyshop/themefiles/foxyshop-search.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/foxyshop/themefiles/foxyshop-all-products.php:8
- > 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)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=foxyshop_setup
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,swfobject&ver=6.3.1 1:28609 "jQuery.Deferred exception: show_downloadables is not defined" "ReferenceError: show_downloadables is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/foxyshop/js/products-admin.js?ver=1:30:2)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,swfobject&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,swfobject&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=foxyshop_setup
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,swfobject&ver=6.3.1 1:28721 Uncaught ReferenceError: show_downloadables is not defined
Optimizations
Plugin configuration 97% 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 need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Admin Settings), #2 (Product Management), #3 (Custom Product Order), #4 (Order Management), #5 (Inventory Levels)
foxyshop/foxyshop.php Passed 13 tests
The main PHP file in "FoxyShop" ver. 4.9.3 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
FoxyShop is a full integration for FoxyCart and WordPress, providing a robust shopping cart and inventory management tool.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected19,094 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 2,214 | 1,161 | 10,913 |
PO File | 3 | 1,336 | 1,680 | 2,952 |
CSS | 11 | 161 | 122 | 2,822 |
JavaScript | 12 | 396 | 1,034 | 2,403 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 2 | 14.29% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 219 | |
▷ Named functions | 216 | 98.63% |
▷ Anonymous functions | 3 | 1.37% |
Constants | 34 | |
▷ Global constants | 34 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
61 PNG files occupy 0.15MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/prettyphoto/prettyPhoto/dark_rounded/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
js/prettyphoto/prettyPhoto/light_square/sprite.png | 3.42KB | 2.13KB | ▼ 37.67% |
js/prettyphoto/prettyPhoto/light_rounded/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
js/prettyphoto/prettyPhoto/light_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
images/no-photo.png | 6.06KB | 2.58KB | ▼ 57.40% |