Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method paystarpaiddownloads_class::install() should not be called statically
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.22ms] Passed 4 tests
Server-side resources used by افزونه فروش فایل درگاه پی استار برای وردپرس
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.79 ▼33.35 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.94 ▼44.48 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.34 ▼43.78 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.74 ▼95.26 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.86 ▼32.85 |
لينک هاي دريافت /wp-admin/admin.php?page=paid-downloads-links | 2.05 | 5.70 |
تنظيمات /wp-admin/admin.php?page=paid-downloads | 2.05 | 6.20 |
پرداخت ها /wp-admin/admin.php?page=paid-downloads-transactions | 2.05 | 5.40 |
اضافه کردن لينک /wp-admin/admin.php?page=paid-downloads-add-link | 2.05 | 6.20 |
فايلها /wp-admin/admin.php?page=paid-downloads-files | 2.05 | 5.52 |
اضافه کردن فايل /wp-admin/admin.php?page=paid-downloads-add | 2.05 | 5.54 |
Server storage [IO: ▲0.17MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_paystarpaiddownloads_downloadlinks |
wp_paystarpaiddownloads_files |
wp_paystarpaiddownloads_transactions |
wp_paystarpaiddownloads_orders |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
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,921 ▲171 | 13.79 ▼0.50 | 7.95 ▲5.99 | 41.07 ▼2.80 |
Dashboard /wp-admin | 2,245 ▲68 | 5.64 ▼0.03 | 79.03 ▼21.93 | 88.80 ▲43.58 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 1.98 ▼0.02 | 39.01 ▲3.40 | 49.19 ▲11.19 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 20.29 ▼2.81 | 646.76 ▼45.83 | 48.52 ▼9.24 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.13 ▲0.00 | 97.72 ▼5.73 | 81.27 ▲37.72 |
لينک هاي دريافت /wp-admin/admin.php?page=paid-downloads-links | 889 | 1.99 | 26.14 | 65.55 |
تنظيمات /wp-admin/admin.php?page=paid-downloads | 1,165 | 2.05 | 24.91 | 77.67 |
پرداخت ها /wp-admin/admin.php?page=paid-downloads-transactions | 874 | 2.00 | 24.45 | 43.70 |
اضافه کردن لينک /wp-admin/admin.php?page=paid-downloads-add-link | 831 | 2.03 | 24.18 | 39.38 |
فايلها /wp-admin/admin.php?page=paid-downloads-files | 915 | 1.99 | 24.47 | 44.10 |
اضافه کردن فايل /wp-admin/admin.php?page=paid-downloads-add | 1,030 | 2.04 | 24.33 | 87.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_paystarpaiddownloads_orders
- wp_paystarpaiddownloads_files
- wp_paystarpaiddownloads_transactions
- wp_paystarpaiddownloads_downloadlinks
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paid-downloads-add
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paid-downloads-add
- > Notice in wp-content/plugins/paystar-wp-paid-downloads/paystar-wp-paid-downloads.php+481
Undefined variable: message
- > GET request to /wp-admin/admin.php?page=paid-downloads
- > Notice in wp-content/plugins/paystar-wp-paid-downloads/paystar-wp-paid-downloads.php+241
Undefined index: updated
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paid-downloads-add
- > Notice in wp-content/plugins/paystar-wp-paid-downloads/paystar-wp-paid-downloads.php+546
Undefined variable: file_details
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=paid-downloads-add
- > Notice in wp-content/plugins/paystar-wp-paid-downloads/paystar-wp-paid-downloads.php+546
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=paid-downloads-add
- > Notice in wp-content/plugins/paystar-wp-paid-downloads/paystar-wp-paid-downloads.php+511
Undefined variable: files
- > GET request to /wp-admin/admin.php?page=paid-downloads-add
- > Warning in wp-content/plugins/paystar-wp-paid-downloads/paystar-wp-paid-downloads.php+511
sizeof(): Parameter must be an array or an object that implements Countable
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: payment, file, gateway, file selling, download...
paystar-wp-paid-downloads/paystar-wp-paid-downloads.php 92% from 13 tests
The primary PHP file in "افزونه فروش فایل درگاه پی استار برای وردپرس" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
There were no executable files found in this plugin2,481 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 18 | 1,736 |
PO File | 1 | 169 | 179 | 410 |
CSS | 1 | 51 | 0 | 335 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 151.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 294.00 |
Average method complexity | 11.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/linkhistory.png | 0.52KB | 0.56KB | 0.00% |
images/delete.png | 0.65KB | 0.67KB | 0.00% |
images/download01.png | 0.52KB | 0.52KB | 0.19% |
images/downloadlink.png | 0.54KB | 0.65KB | 0.00% |
images/fancy_close.png | 1.48KB | 1.73KB | 0.00% |