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
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.51ms] Passed 4 tests
Server-side resources used by دکمه، شبکه اجتماعی خرید
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.03 ▼6.72 |
Dashboard /wp-admin | 3.53 ▲0.22 | 56.35 ▲1.80 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 58.71 ▲7.68 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 87.31 ▼12.62 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 37.31 ▼0.51 |
دکمه /wp-admin/admin.php?page=dokme-settings | 3.37 | 33.95 |
کالاها /wp-admin/admin.php?page=dokme-products | 3.37 | 35.91 |
دستهبندیها /wp-admin/admin.php?page=dokme-category | 3.36 | 37.61 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_dokme_synchronize |
wp_dokme_sync |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for دکمه، شبکه اجتماعی خرید
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲202 | 14.83 ▲0.48 | 2.35 ▲0.25 | 42.63 ▼1.35 |
Dashboard /wp-admin | 2,369 ▲192 | 6.16 ▲0.48 | 114.29 ▲23.54 | 93.69 ▲54.06 |
Posts /wp-admin/edit.php | 2,294 ▲194 | 3.34 ▲1.33 | 47.50 ▲6.37 | 83.92 ▲42.97 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.12 ▲0.29 | 660.16 ▲26.53 | 155.87 ▲102.06 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.10 ▼0.15 | 85.40 ▼20.71 | 90.99 ▲46.06 |
دکمه /wp-admin/admin.php?page=dokme-settings | 1,170 | 3.01 | 41.18 | 83.80 |
کالاها /wp-admin/admin.php?page=dokme-products | 1,180 | 3.00 | 40.38 | 71.23 |
دستهبندیها /wp-admin/admin.php?page=dokme-category | 1,016 | 2.95 | 40.12 | 65.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=dokme-settings
- > Notice in wp-content/plugins/dokme/includes/view.php+3
Undefined property: stdClass::$publish
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dokme/api.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dokme/includes/dokme_productsList.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/dokme/includes/dokme_productsList.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dokme/includes/dokme_productsList.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/dokme/includes/dokme_productsList.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_count_posts() in wp-content/plugins/dokme/includes/view.php:2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/dokme/includes/dokme_productsList.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/dokme/includes/dokme_productsList.php on line 2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=dokme-settings
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=dokme-settings 154:24 Uncaught SyntaxError: Unexpected token ';'
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dokme-category
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $ is not a function" "TypeError: $ is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/dokme/assets/js/dokme_ajax.js?h=f05f4&ver=6.3.1:35:5)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dokme-category
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
- Contributors: Plugin contributors not specified
dokme/dokme.php 92% from 13 tests
"دکمه، شبکه اجتماعی خرید" version 2.0.6'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:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,250 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 216 | 81 | 1,028 |
JavaScript | 1 | 15 | 3 | 151 |
CSS | 1 | 12 | 6 | 58 |
SQL | 2 | 1 | 0 | 11 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview 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.28 |
Average class complexity | 12.29 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 56 | |
▷ Static methods | 33 | 58.93% |
▷ Public methods | 53 | 94.64% |
▷ Protected methods | 3 | 5.36% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to 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/logo.png | 4.81KB | 1.34KB | ▼ 72.19% |