Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.41MB] [CPU: ▲0.75ms] Passed 4 tests
An overview of server-side resources used by SantuCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 43.50 ▲2.60 |
Dashboard /wp-admin | 3.75 ▲0.40 | 56.04 ▼9.13 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 57.82 ▲4.98 |
Add New Post /wp-admin/post-new.php | 6.88 ▲0.99 | 114.53 ▲4.55 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 45.68 ▲7.84 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 14 new options
New WordPress options |
---|
santu_show_help |
santu_buy_now_product |
db_upgraded |
can_compress_scripts |
santu_buy_now_links |
widget_theysaidso_widget |
widget_recent-comments |
santu_sell_from_image |
santu_buy_now_buttons |
santu_select_button |
... |
Browser metrics Passed 4 tests
A check of browser resources used by SantuCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,491 ▲1,720 | 13.50 ▼0.80 | 2.66 ▲0.76 | 38.85 ▼1.07 |
Dashboard /wp-admin | 3,839 ▲1,659 | 5.06 ▼0.62 | 102.43 ▲13.79 | 81.95 ▲30.20 |
Posts /wp-admin/edit.php | 3,759 ▲1,659 | 2.45 ▲0.42 | 39.54 ▲4.59 | 52.12 ▲13.55 |
Add New Post /wp-admin/post-new.php | 16,267 ▲14,722 | 27.95 ▲4.48 | 1,162.88 ▲474.24 | 40.89 ▼17.51 |
Media Library /wp-admin/upload.php | 3,059 ▲1,659 | 4.51 ▲0.29 | 113.78 ▼2.26 | 95.80 ▲48.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 14 options
- santu_show_help
- santu_signup_url
- santu_buy_now_buttons
- santu_buy_now_product
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- santu_select_button
- santu_sell_from_image
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/santucommerce/includes/image-mappping.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 80% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
santucommerce/santu-wp-ecommerce.php 62% from 13 tests
"SantuCommerce" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)
- Domain Path: The domain path should use only dashes and lowercase characters ("lang/")
- Domain Path: Prefix the domain path with a forward slash character ("/lang/")
- 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("santucommerce.php" instead of "santu-wp-ecommerce.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 plugin6,198 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 530 | 176 | 4,283 |
PHP | 13 | 107 | 246 | 1,426 |
CSS | 17 | 2 | 58 | 479 |
JSON | 1 | 0 | 0 | 10 |
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.21 |
Average class complexity | 20.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 25 | 35.71% |
▷ Public methods | 70 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/rm.png | 0.52KB | 0.54KB | 0.00% |
img/logo.png | 2.15KB | 2.18KB | 0.00% |
img/paste_image.png | 17.58KB | 0.36KB | ▼ 97.96% |
img/373x70.png | 12.25KB | 7.09KB | ▼ 42.11% |
img/g.png | 1.60KB | 0.62KB | ▼ 61.31% |