Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/simple-parspal-shopping-cart/wp_shopping_cart.php+71
Undefined index: merchant_return_link
Server metrics [RAM: ▼1.74MB] [CPU: ▼49.87ms] Passed 4 tests
Analyzing server-side resources used by Simple ParsPal Shopping Cart
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.25 ▼1.21 | 4.97 ▼36.01 |
Dashboard /wp-admin | 2.27 ▼1.03 | 6.90 ▼39.29 |
Posts /wp-admin/edit.php | 2.27 ▼1.08 | 7.84 ▼39.97 |
Add New Post /wp-admin/post-new.php | 2.27 ▼3.62 | 6.30 ▼84.22 |
Media Library /wp-admin/upload.php | 2.27 ▼0.96 | 6.18 ▼34.50 |
آسان پرداز پارس پال /wp-admin/options-general.php?page=simple-parspal-shopping-cart/wp_shopping_cart.php | 2.27 | 6.61 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options |
---|
cart_return_from_parspal_url |
widget_theysaidso_widget |
can_compress_scripts |
wp_cart_title |
widget_recent-comments |
db_upgraded |
wp_cart_empty_text |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Simple ParsPal Shopping Cart
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.29 ▼1.09 | 1.64 ▼0.08 | 42.73 ▲0.31 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▲0.02 | 100.67 ▼6.39 | 41.47 ▼1.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.03 | 40.58 ▲2.14 | 37.77 ▲5.43 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 21.96 ▲4.39 | 645.60 ▼47.46 | 53.36 ▼0.12 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▼0.01 | 94.83 ▼14.86 | 42.66 ▼4.16 |
آسان پرداز پارس پال /wp-admin/options-general.php?page=simple-parspal-shopping-cart/wp_shopping_cart.php | 990 | 2.07 | 22.89 | 72.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/simple-parspal-shopping-cart/wp_shopping_cart.php+71
Undefined index: merchant_return_link
- This plugin did not uninstall successfully, leaving 9 options in the database
- cart_return_from_parspal_url
- wp_cart_title
- db_upgraded
- can_compress_scripts
- wp_cart_empty_text
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=simple-parspal-shopping-cart/wp_shopping_cart.php
- > Notice in wp-content/plugins/simple-parspal-shopping-cart/wp_shopping_cart.php+71
Undefined index: merchant_return_link
- > GET request to /wp-admin/options-general.php?page=simple-parspal-shopping-cart/wp_shopping_cart.php
- > Notice in wp-content/plugins/simple-parspal-shopping-cart/wp_shopping_cart.php+76
Undefined index: mc_gross
- > GET request to /wp-admin/options-general.php?page=simple-parspal-shopping-cart/wp_shopping_cart.php
- > Notice in wp-content/plugins/simple-parspal-shopping-cart/wp_shopping_cart.php+93
Undefined index: addcart
- > GET request to /wp-admin/options-general.php?page=simple-parspal-shopping-cart/wp_shopping_cart.php
- > Notice in wp-content/plugins/simple-parspal-shopping-cart/wp_shopping_cart.php+130
Undefined index: cquantity
- > GET request to /wp-admin/options-general.php?page=simple-parspal-shopping-cart/wp_shopping_cart.php
- > Notice in wp-content/plugins/simple-parspal-shopping-cart/wp_shopping_cart.php+147
Undefined index: delcart
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-parspal-shopping-cart/wp_shopping_cart.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (Administration interface in WordPress 3.4.1), #2 (Shopping cart user interface)
simple-parspal-shopping-cart/wp_shopping_cart.php 77% from 13 tests
The principal PHP file in "Simple ParsPal Shopping Cart" v. v1.0.0... is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-parspal-shopping-cart.php" instead of "wp_shopping_cart.php")
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "v1.0.0...")
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin582 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 105 | 39 | 567 |
CSS | 1 | 3 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add_to_cart_button.png | 2.73KB | 1.93KB | ▼ 29.33% |
images/shopping_cart_icon.png | 3.07KB | 1.71KB | ▼ 44.50% |
images/buy.png | 5.59KB | 3.14KB | ▼ 43.89% |
images/add_to_cart_button_76.png | 2.38KB | 1.04KB | ▼ 56.44% |
images/buy_now_button.png | 2.67KB | 1.95KB | ▼ 26.89% |