Benchmarks
Plugin footprint 48% 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.00MB] [CPU: ▼6.10ms] Passed 4 tests
Analyzing server-side resources used by ارسال اطلاعات فروش ووکامرس برای سکان
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.98 ▼8.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.50 ▼10.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.13 ▼5.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.75 ▼0.07 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.95 ▲6.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by ارسال اطلاعات فروش ووکامرس برای سکان
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.66 ▼0.52 | 3.96 ▲2.19 | 41.50 ▼1.67 |
Dashboard /wp-admin | 2,206 ▲15 | 5.09 ▼0.80 | 108.88 ▼7.09 | 38.49 ▼9.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▲0.00 | 41.49 ▲6.27 | 35.13 ▼3.68 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.45 ▲0.28 | 669.03 ▼6.86 | 70.00 ▲9.28 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.24 ▲0.07 | 96.45 ▼12.66 | 41.55 ▼3.60 |
Uninstaller [IO: ▲0.08MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsThe uninstall procedure has failed, leaving 7 options in the database
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/sokan-integration/uninstall.php+14
Use of undefined constant SKNG_PLUGIN_PATH - assumed 'SKNG_PLUGIN_PATH' (this will throw an Error in a future version of PHP)
- This plugin has failed uninstalling correctly, leaving 11 files (0.08MB) in the plugin directory
- (new file) Sokan-integration.php
- (new file) include/classes/class-skng-api.php
- (new file) index.php
- (new file) include/classes/class-skng-logger.php
- (new file) include/classes/class-skng-db.php
- (new file) assets/images/sokan-logo.png
- (new file) include/custom/skng-custom.php
- (new file) job/sync_data.php
- (new file) readme.txt
- (new file) admin.php
- ...
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- recovery_mode_email_last_sent
- can_compress_scripts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/sokan-integration/uninstall.php
- > /wp-content/plugins/sokan-integration/job/sync_data.php
- > /wp-content/plugins/sokan-integration/Sokan-integration.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Skng_Sokan_db' not found in wp-content/plugins/sokan-integration/admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in sokan-integration/assets to your readme.txt
sokan-integration/Sokan-integration.php 85% from 13 tests
Analyzing the main PHP file in "ارسال اطلاعات فروش ووکامرس برای سکان" version 1.6.2
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("sokan-integration.php" instead of "Sokan-integration.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
There were no executable files found in this plugin1,114 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 243 | 299 | 1,114 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 21.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.79% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sokan-logo.png | 12.70KB | 4.64KB | ▼ 63.45% |