Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wordpress-plugin-for-1shoppingcart/include/OneShopAPI.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; esOneShopAPI has a deprecated constructor
Server metrics [RAM: ▼1.67MB] [CPU: ▼204.81ms] Passed 4 tests
An overview of server-side resources used by Free Wordpress Plugin For 1ShoppingCart.com
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.96 ▼0.87 | 5.99 ▼29.02 |
Dashboard /wp-admin | 1.98 ▼1.07 | 13.57 ▼34.68 |
Posts /wp-admin/edit.php | 1.98 ▼1.12 | 9.29 ▼35.57 |
Add New Post /wp-admin/post-new.php | 1.98 ▼3.45 | 5.98 ▼719.97 |
Media Library /wp-admin/upload.php | 1.98 ▼1.02 | 6.19 ▼28.32 |
1SC Settings /wp-admin/options-general.php?page=wordpress-plugin-for-1shoppingcart/es1sc-free.php | 1.98 | 7.86 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options |
---|
es1sc_mid |
es1sc_merchant_key |
es1sc_buynow_url |
es1sc_api_uri |
es1sc_product_list_item_format |
es1sc_no_image |
es1sc_cart_image |
es1sc_merchant_id |
Browser metrics Passed 4 tests
Checking browser requirements for Free Wordpress Plugin For 1ShoppingCart.com
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.77 ▲0.14 | 9.17 ▼2.32 | 50.29 ▼4.78 |
Dashboard /wp-admin | 2,978 ▲48 | 5.88 ▼0.03 | 142.96 ▼10.40 | 130.39 ▲8.84 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 66.83 ▼2.57 | 93.28 ▼4.19 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.74 ▲0.42 | 380.89 ▼13.88 | 113.56 ▼0.56 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.02 ▼0.03 | 157.93 ▼11.46 | 121.58 ▼0.30 |
1SC Settings /wp-admin/options-general.php?page=wordpress-plugin-for-1shoppingcart/es1sc-free.php | 1,474 | 2.09 | 69.37 | 94.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wordpress-plugin-for-1shoppingcart/include/OneShopAPI.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; esOneShopAPI has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- es1sc_mid
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 server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=wordpress-plugin-for-1shoppingcart/es1sc-free.php
- > Deprecated in wp-content/plugins/wordpress-plugin-for-1shoppingcart/include/OneShopAPI.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; esOneShopAPI has a deprecated constructor
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'OneShopAPI' not found in wp-content/plugins/wordpress-plugin-for-1shoppingcart/include/OneShopNotificationListener.php:5
- > PHP Warning
include(../Library/OneShopAPI.php): failed to open stream: No such file or directory in wp-content/plugins/wordpress-plugin-for-1shoppingcart/include/OneShopNotificationListener.php on line 2
- > PHP Warning
include(): Failed opening '../Library/OneShopAPI.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wordpress-plugin-for-1shoppingcart/include/OneShopNotificationListener.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wordpress-plugin-for-1shoppingcart/es1sc-free.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (1SC Setting page. screenshot-1.png.), #2 (Example of the product listing on a page. screenshot-2.png.)
wordpress-plugin-for-1shoppingcart/es1sc-free.php 85% from 13 tests
The main file in "Free Wordpress Plugin For 1ShoppingCart.com" v. 0.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wordpress-plugin-for-1shoppingcart.php" instead of "es1sc-free.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 539 characters long)
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
No dangerous file extensions were detected616 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 89 | 56 | 616 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add-to-cart-green.png | 2.63KB | 1.09KB | ▼ 58.42% |
images/add-to-cart-black.png | 2.31KB | 1.09KB | ▼ 52.62% |
screenshot-1.png | 127.70KB | 37.97KB | ▼ 70.26% |
images/add-to-cart-white.png | 2.36KB | 1.09KB | ▼ 53.60% |
screenshot-2.png | 99.08KB | 35.47KB | ▼ 64.20% |