Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.32ms] Passed 4 tests
An overview of server-side resources used by Yektanet Ecommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 36.19 ▼3.75 |
Dashboard /wp-admin | 3.38 ▲0.07 | 46.49 ▲2.07 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.83 ▲5.53 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.84 ▼3.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.28 ▲3.50 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
YEKTANET_ECOMMERCE_PLUGIN_VERSION |
Browser metrics Passed 4 tests
Checking browser requirements for Yektanet Ecommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲143 | 13.73 ▼0.65 | 1.81 ▼0.01 | 32.69 ▼17.10 |
Dashboard /wp-admin | 2,247 ▲56 | 4.87 ▼1.03 | 99.01 ▼6.43 | 45.68 ▲2.03 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 1.99 ▼0.02 | 39.55 ▼0.80 | 45.53 ▲8.06 |
Add New Post /wp-admin/post-new.php | 1,401 ▼127 | 20.62 ▼2.46 | 545.37 ▼142.66 | 169.86 ▲112.79 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.18 ▼0.05 | 125.92 ▲14.10 | 50.93 ▲6.55 |
تنظیمات /wp-admin/yektanet-settings.php | 26 | 0.44 | 0.07 | 10.33 |
یکتانت /wp-admin/yektanet-menu.php | 26 | 0.44 | 0.08 | 5.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- YEKTANET_ECOMMERCE_PLUGIN_VERSION
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'YektanetMainClass' not found in wp-content/plugins/yektanet-ecommerce/classes/YektanetCartHandler.php:3
- > PHP Fatal error
Uncaught Error: Class 'YektanetAdminMainClass' not found in wp-content/plugins/yektanet-ecommerce/classes/admin_classes/YektanetAdminMenu.php:3
- > PHP Fatal error
Uncaught Error: Class 'YektanetMainClass' not found in wp-content/plugins/yektanet-ecommerce/classes/YektanetOrderHandler.php:3
- > PHP Fatal error
Uncaught Error: Class 'YektanetMainClass' not found in wp-content/plugins/yektanet-ecommerce/classes/YektanetProductHandler.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/yektanet-settings.php
- > Network (severe)
wp-admin/yektanet-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/yektanet-menu.php
- > Network (severe)
wp-admin/yektanet-menu.php - 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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: woocommerce
yektanet-ecommerce/yektanet-ecommerce.php 92% from 13 tests
"Yektanet Ecommerce" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("5.4" instead of "6.1.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,168 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 117 | 50 | 1,006 |
CSS | 1 | 21 | 0 | 93 |
JavaScript | 1 | 0 | 0 | 69 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 27.50% |
▷ Protected methods | 11 | 27.50% |
▷ Private methods | 18 | 45.00% |
Functions | 31 | |
▷ Named functions | 19 | 61.29% |
▷ Anonymous functions | 12 | 38.71% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu-icon.png | 1.72KB | 1.38KB | ▼ 19.65% |