Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.18MB] [CPU: ▲15.35ms] Passed 4 tests
Server-side resources used by WizShop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.58 ▲1.12 | 60.77 ▲12.67 |
Dashboard /wp-admin | 4.56 ▲1.26 | 72.21 ▲20.12 |
Posts /wp-admin/edit.php | 4.61 ▲1.26 | 71.92 ▲22.16 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.18 | 103.71 ▲6.45 |
Media Library /wp-admin/upload.php | 4.41 ▲1.18 | 60.40 ▲22.62 |
Hebrew Categories /wp-admin/edit-tags.php?taxonomy=wizshop_categories_he&post_type=wizshop | 4.51 | 59.79 |
Settings /wp-admin/edit.php?post_type=wizshop&page=wizshop_settings | 4.52 | 75.44 |
Media /wp-admin/edit.php?post_type=wizshop&page=wizshop_media_settings | 4.44 | 56.17 |
Server storage [IO: ▲0.90MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 123 new files
Database: no new tables, 25 new options
New WordPress options |
---|
wizshop_media_settings |
wizshop_settings |
wizshop_plugin_settings |
wizshop_customers_settings_he |
theysaidso_admin_options |
wizshop_cat_settings_en |
widget_wizshop-product-search |
wizshop_image_settings |
wizshop_customers_settings_en |
wizshop_cat_settings_he |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WizShop
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,993 ▲247 | 15.01 ▲0.82 | 2.07 ▲0.27 | 39.35 ▼7.64 |
Dashboard /wp-admin | 2,387 ▲199 | 6.56 ▲1.68 | 127.62 ▲20.56 | 39.32 ▼2.65 |
Posts /wp-admin/edit.php | 2,293 ▲201 | 3.46 ▲1.44 | 52.68 ▲15.51 | 34.97 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,559 ▲23 | 18.48 ▼2.78 | 620.37 ▼77.10 | 36.51 ▼25.67 |
Media Library /wp-admin/upload.php | 1,469 ▲78 | 4.38 ▲0.14 | 88.06 ▼17.19 | 42.06 ▼6.66 |
Hebrew Categories /wp-admin/edit-tags.php?taxonomy=wizshop_categories_he&post_type=wizshop | 1,636 | 3.31 | 49.00 | 36.67 |
Settings /wp-admin/edit.php?post_type=wizshop&page=wizshop_settings | 2,163 | 3.58 | 48.02 | 28.20 |
Media /wp-admin/edit.php?post_type=wizshop&page=wizshop_media_settings | 1,208 | 3.16 | 42.72 | 69.70 |
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 cannot be uninstalled
- > Notice in wp-content/plugins/wizshop/functions.php+441
Undefined variable: old_keys
- Zombie WordPress options detected upon uninstall: 15 options
- can_compress_scripts
- widget_wizshop-product-search
- widget_wizshop-newsletters
- widget_wizshop-products-list
- wizshop_notices
- widget_recent-comments
- widget_wizshop-sign-in
- theysaidso_admin_options
- widget_wizshop-cart
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wizshop/include/checkout-final.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wizshop/wiz_widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wizshop_get_view_options() in wp-content/plugins/wizshop/admin/tabs.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wizshop/default/default.php:8
- > PHP Fatal error
Uncaught Error: Class 'WizShop_Widget' not found in wp-content/plugins/wizshop/shop_widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wizshop_get_view_options() in wp-content/plugins/wizshop/admin/media-lib.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wizshop/plugin.php 92% from 13 tests
The primary PHP file in "WizShop" version 3.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wizshop.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin15,009 lines of code in 116 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 783 | 670 | 8,634 |
CSS | 8 | 370 | 168 | 4,178 |
JavaScript | 10 | 176 | 72 | 1,244 |
PO File | 2 | 431 | 599 | 932 |
SVG | 21 | 0 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 35.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 119.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 204 | |
▷ Static methods | 89 | 43.63% |
▷ Public methods | 200 | 98.04% |
▷ Protected methods | 4 | 1.96% |
▷ Private methods | 0 | 0.00% |
Functions | 124 | |
▷ Named functions | 119 | 95.97% |
▷ Anonymous functions | 5 | 4.03% |
Constants | 33 | |
▷ Global constants | 33 | 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
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 |
img/cart.png | 3.10KB | 0.54KB | ▼ 82.52% |