Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▲4.05ms] Passed 4 tests
Server-side resources used by درگاه پرداخت پی استار برای افزونه گرویتی فرمز
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.78 | 46.28 ▲4.20 |
Dashboard /wp-admin | 4.08 ▲0.78 | 55.00 ▲3.95 |
Posts /wp-admin/edit.php | 4.19 ▲0.84 | 51.94 ▲4.66 |
Add New Post /wp-admin/post-new.php | 6.66 ▲0.78 | 93.88 ▲3.39 |
Media Library /wp-admin/upload.php | 4.00 ▲0.77 | 43.26 ▲7.28 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for درگاه پرداخت پی استار برای افزونه گرویتی فرمز
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲49 | 14.28 ▼0.28 | 1.75 ▼0.00 | 46.95 ▲2.84 |
Dashboard /wp-admin | 2,198 ▲24 | 5.56 ▼0.01 | 89.17 ▼22.42 | 40.47 ▼6.11 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.03 ▲0.03 | 37.70 ▲1.58 | 35.56 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 23.28 ▲0.32 | 638.80 ▼34.51 | 52.35 ▼7.58 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.22 ▲0.05 | 98.58 ▼7.94 | 44.85 ▼1.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
5 plugin tags: gateway, wordpress, paystar, payment, gravityforms
paystar-payment-for-gravityforms/paystar.php 92% from 13 tests
"درگاه پرداخت پی استار برای افزونه گرویتی فرمز" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("paystar-payment-for-gravityforms.php" instead of "paystar.php")
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
No dangerous file extensions were detected4,424 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 363 | 50 | 3,919 |
PO File | 1 | 205 | 211 | 505 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 145.25 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 333.00 |
Average method complexity | 8.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.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 | 73 | |
▷ Static methods | 69 | 94.52% |
▷ Public methods | 54 | 73.97% |
▷ Protected methods | 3 | 4.11% |
▷ Private methods | 16 | 21.92% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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 | 2.30KB | 2.32KB | 0.00% |