Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.67ms] Passed 4 tests
An overview of server-side resources used by Iran Donate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.25 ▼0.43 |
Dashboard /wp-admin | 3.42 ▲0.12 | 58.29 ▲9.15 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 45.95 ▼6.01 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 86.65 ▼1.02 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 34.61 ▼3.21 |
تنظیمات /wp-admin/admin.php?page=irdonate_setting | 3.32 | 30.83 |
پرداخت ها /wp-admin/admin.php?page=irdonate_main | 3.32 | 32.19 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_irdonate_payments |
New WordPress options |
---|
widget_ezp_form_wight |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
irdonate_db_verizon |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Iran Donate
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.84 ▲0.05 | 1.73 ▲0.02 | 43.54 ▼2.22 |
Dashboard /wp-admin | 2,233 ▲47 | 4.82 ▼1.09 | 106.51 ▲2.68 | 46.74 ▲7.11 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▼0.04 | 33.77 ▼5.72 | 37.30 ▲3.57 |
Add New Post /wp-admin/post-new.php | 1,564 ▲22 | 18.37 ▼0.17 | 632.74 ▼30.16 | 51.16 ▼2.44 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.12 ▼0.08 | 102.19 ▼5.91 | 47.75 ▼1.33 |
تنظیمات /wp-admin/admin.php?page=irdonate_setting | 825 | 2.06 | 23.36 | 55.91 |
پرداخت ها /wp-admin/admin.php?page=irdonate_main | 876 | 2.05 | 25.17 | 39.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_irdonate_payments
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- irdonate_db_verizon
- widget_ezp_form_wight
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/iran-donate/iran-donate.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/iran-donate/include/upgarade.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/iran-donate/include/widgets.php:2
- > PHP Notice
Undefined variable: result in wp-content/plugins/iran-donate/tamplate/html-user-return.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/iran-donate/include/upgarade.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/iran-donate/include/upgarade.php on line 24
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: farapayamak, donate, zarinpal, parsian, faragate
iran-donate/iran-donate.php Passed 13 tests
The principal PHP file in "Iran Donate" v. 1.0.4 is loaded by WordPress automatically on each request
92 characters long description:
پلاگین حمایت از سایت با درگاه های فراگیت و زرین پال
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected908 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 331 | 12 | 872 |
CSS | 1 | 1 | 0 | 36 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin