Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲1.42ms] Passed 4 tests
Analyzing server-side resources used by E-Commerce by SalesCart
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.15 ▼4.99 |
Dashboard /wp-admin | 3.32 ▲0.01 | 61.08 ▲2.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 58.10 ▼0.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 112.28 ▲11.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 45.31 ▲8.17 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
scart_store_id |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by E-Commerce by SalesCart
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲75 | 13.60 ▼0.69 | 6.32 ▲4.21 | 45.29 ▼1.63 |
Dashboard /wp-admin | 2,208 ▲5 | 4.92 ▼0.88 | 109.22 ▼17.50 | 73.54 ▲30.12 |
Posts /wp-admin/edit.php | 2,115 ▲20 | 2.00 ▼0.05 | 41.59 ▼0.06 | 35.23 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 24.02 ▲0.82 | 763.96 ▲94.40 | 53.62 ▲1.79 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.20 ▼0.03 | 100.14 ▼11.35 | 74.70 ▲29.32 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 6× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/e-commerce-by-salescart/css/index.php
- > /wp-content/plugins/e-commerce-by-salescart/fonts/index.php
- > /wp-content/plugins/e-commerce-by-salescart/libs/index.php
- > /wp-content/plugins/e-commerce-by-salescart/views/index.php
- > /wp-content/plugins/e-commerce-by-salescart/index.php
- > /wp-content/plugins/e-commerce-by-salescart/js/index.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-commerce-by-salescart/libs/scart_display.php:48
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/e-commerce-by-salescart/views/landing.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/e-commerce-by-salescart/salescart-ecommerce.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
e-commerce-by-salescart/salescart-ecommerce.php 77% from 13 tests
The main PHP script in "E-Commerce by SalesCart" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 258 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("e-commerce-by-salescart.php" instead of "salescart-ecommerce.php")
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
There were no executable files found in this plugin3,149 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 2,654 |
CSS | 2 | 31 | 20 | 284 |
PHP | 4 | 47 | 66 | 192 |
JavaScript | 2 | 8 | 18 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 4.23KB | 1.03KB | ▼ 75.61% |
images/start_now.png | 4.53KB | 0.90KB | ▼ 80.14% |
images/Main-Sm-SalesCart-Logo.png | 11.13KB | 3.63KB | ▼ 67.42% |