Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼3.66ms] Passed 4 tests
An overview of server-side resources used by ZIJ KART
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 41.48 ▲1.60 |
Dashboard /wp-admin | 3.60 ▲0.25 | 46.61 ▼18.71 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 46.28 ▲3.26 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 89.03 ▼0.80 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.38 ▲4.01 |
Brands /wp-admin/admin.php?page=zk_brand | 3.47 | 33.38 |
Category /wp-admin/admin.php?page=zk_category | 3.47 | 34.08 |
Purchase history /wp-admin/admin.php?page=zk_purchasehistory | 3.48 | 34.50 |
Options /wp-admin/admin.php?page=zk_option | 3.49 | 32.98 |
Products /wp-admin/admin.php?page=zk_product | 3.57 | 35.01 |
ZijKart Dashboard /wp-admin/admin.php?page=zk_zijkart | 3.42 | 33.00 |
Server storage [IO: ▲0.54MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: 7 new tables, 6 new options
New tables |
---|
wp_zijkart_options |
wp_zijkart_products |
wp_zijkart_categories |
wp_zijkart_cart |
wp_zijkart_cartitems |
wp_zijkart_product_images |
wp_zijkart_brands |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
ZIJ KART: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲102 | 13.21 ▼1.18 | 4.39 ▲2.55 | 39.23 ▼6.39 |
Dashboard /wp-admin | 2,257 ▲66 | 5.87 ▼0.04 | 100.50 ▼5.33 | 74.38 ▲29.16 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 1.98 ▼0.06 | 34.40 ▼2.35 | 33.28 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,716 ▲196 | 24.65 ▲1.48 | 637.56 ▼38.37 | 51.66 ▼6.51 |
Media Library /wp-admin/upload.php | 1,433 ▲42 | 4.20 ▼0.03 | 93.74 ▼9.20 | 71.35 ▲27.48 |
Brands /wp-admin/admin.php?page=zk_brand | 897 | 1.80 | 24.57 | 32.61 |
Category /wp-admin/admin.php?page=zk_category | 896 | 1.92 | 25.82 | 27.24 |
Purchase history /wp-admin/admin.php?page=zk_purchasehistory | 896 | 2.04 | 25.71 | 26.37 |
Options /wp-admin/admin.php?page=zk_option | 1,179 | 1.80 | 27.01 | 25.32 |
Products /wp-admin/admin.php?page=zk_product | 907 | 1.82 | 28.30 | 24.18 |
ZijKart Dashboard /wp-admin/admin.php?page=zk_zijkart | 849 | 1.91 | 25.13 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zk_zijkart
- > Network (severe)
wp-content/plugins/zijkart/includes/images/admin_menu_icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: paypal shopping cart, shop, paypal cart, zij kart, shopping cart...
zij-kart/zij-kart.php 92% from 13 tests
The main PHP script in "ZIJ KART" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 236 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected7,423 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 654 | 1,917 | 6,183 |
JavaScript | 4 | 47 | 38 | 762 |
CSS | 4 | 20 | 32 | 478 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 525)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 41.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 764.00 |
Average method complexity | 7.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 525.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 1 | 4.00% |
▷ Concrete classes | 24 | 96.00% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 24 | 14.37% |
▷ Public methods | 144 | 86.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 23 | 13.77% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
32 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
includes/images/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
includes/images/deleteicon.png | 15.97KB | 1.21KB | ▼ 92.39% |
includes/images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |
includes/images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |