Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.38ms] 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.48 ▲0.02 | 46.36 ▲7.68 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.50 ▼6.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.13 ▲0.52 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 77.83 ▼15.86 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.34 ▼4.12 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by فرم پرداخت درگاه پی استار برای وردپرس
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.17 ▼1.18 | 1.63 ▼0.14 | 43.34 ▲4.59 |
Dashboard /wp-admin | 2,221 ▲33 | 5.82 ▲0.91 | 109.40 ▲5.79 | 73.00 ▲27.74 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.02 ▼0.03 | 38.58 ▲0.95 | 36.12 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 23.27 ▲5.61 | 738.20 ▲24.53 | 63.15 ▲5.18 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.20 ▲0.08 | 95.97 ▼21.84 | 81.74 ▲33.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 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
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/paystar-pay-form/templates/form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/paystar-pay-form/paystar.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/paystar-pay-form/templates/setting.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: paystar, payment, gateway, form, donate...
paystar-pay-form/paystar.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:
- Main file name: Name the main plugin file the same as the plugin slug ("paystar-pay-form.php" instead of "paystar.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
There were no executable files found in this plugin331 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 14 | 10 | 222 |
CSS | 1 | 9 | 0 | 55 |
PO File | 1 | 18 | 18 | 54 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 0.74KB | 0.67KB | ▼ 8.48% |