Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/melipayamak/includes/updates.php+12
Undefined variable: wpdb
Server metrics [RAM: ▼1.22MB] [CPU: ▼42.99ms] Passed 4 tests
Analyzing server-side resources used by Melipayamak
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.69 | 18.26 ▼21.10 |
Dashboard /wp-admin | 2.80 ▼0.55 | 21.27 ▼38.55 |
Posts /wp-admin/edit.php | 2.80 ▼0.56 | 20.37 ▼30.85 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.09 | 23.65 ▼81.47 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 23.20 ▼8.30 |
پشتیبانی /wp-admin/admin.php?page=melipayamak_support | 2.80 | 22.68 |
ملی پیامک /wp-admin/admin.php?page=melipayamak | 2.80 | 21.95 |
پیام های ارسالی /wp-admin/admin.php?page=melipayamak_smessages | 2.80 | 19.62 |
فرم عضویت خبرنامه /wp-admin/admin.php?page=melipayamak_form | 2.80 | 20.05 |
دفترچه تلفن /wp-admin/admin.php?page=melipayamak_phonebook | 2.80 | 20.98 |
پیام های دریافتی /wp-admin/admin.php?page=melipayamak_rmessages | 2.80 | 21.21 |
گزارشات /wp-admin/admin.php?page=melipayamak_reports | 2.80 | 19.08 |
تنظیمات /wp-admin/admin.php?page=melipayamak_setting | 2.80 | 21.39 |
برون ریزی /wp-admin/admin.php?page=melipayamak_export | 2.80 | 18.63 |
گروه های دفترچه تلفن /wp-admin/admin.php?page=melipayamak_groups | 2.80 | 20.96 |
Server storage [IO: ▲0.74MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 74 new files
Database: 4 new tables, 27 new options
New tables |
---|
wp_melipayamak_members |
wp_melipayamak_messages |
wp_melipayamak_GFVerification |
wp_melipayamak_groups |
New WordPress options |
---|
can_compress_scripts |
melipayamak_iborder |
recovery_mode_email_last_sent |
melipayamak_shborder |
melipayamak_sbg |
melipayamak_fontc |
melipayamak_ibg |
melipayamak_radius |
melipayamak_ilbg |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Melipayamak
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲127 | 14.18 ▼0.10 | 1.67 ▲0.13 | 43.65 ▲3.50 |
Dashboard /wp-admin | 2,280 ▲105 | 5.59 ▼0.01 | 84.02 ▼21.23 | 83.27 ▲41.73 |
Posts /wp-admin/edit.php | 2,179 ▲79 | 1.98 ▼0.04 | 34.08 ▼6.40 | 40.85 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,604 ▲76 | 23.11 ▼0.11 | 664.74 ▲45.45 | 138.88 ▲86.67 |
Media Library /wp-admin/upload.php | 1,482 ▲82 | 4.17 ▼0.06 | 97.55 ▼0.02 | 82.23 ▲40.78 |
پشتیبانی /wp-admin/admin.php?page=melipayamak_support | 746 | 1.51 | 7.11 | 38.50 |
ملی پیامک /wp-admin/admin.php?page=melipayamak | 985 | 2.23 | 33.63 | 74.23 |
پیام های ارسالی /wp-admin/admin.php?page=melipayamak_smessages | 746 | 1.51 | 6.36 | 32.03 |
فرم عضویت خبرنامه /wp-admin/admin.php?page=melipayamak_form | 746 | 1.51 | 6.28 | 27.35 |
دفترچه تلفن /wp-admin/admin.php?page=melipayamak_phonebook | 746 | 1.12 | 6.18 | 27.43 |
پیام های دریافتی /wp-admin/admin.php?page=melipayamak_rmessages | 746 | 1.51 | 6.58 | 28.45 |
گزارشات /wp-admin/admin.php?page=melipayamak_reports | 746 | 1.51 | 6.25 | 24.64 |
تنظیمات /wp-admin/admin.php?page=melipayamak_setting | 932 | 1.53 | 7.83 | 41.01 |
برون ریزی /wp-admin/admin.php?page=melipayamak_export | 746 | 1.51 | 6.42 | 28.33 |
گروه های دفترچه تلفن /wp-admin/admin.php?page=melipayamak_groups | 746 | 1.51 | 6.23 | 27.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method melipayamak_widget::register() should not be called statically
- The uninstall procedure failed, leaving 4 tables in the database
- wp_melipayamak_members
- wp_melipayamak_groups
- wp_melipayamak_GFVerification
- wp_melipayamak_messages
- This plugin does not fully uninstall, leaving 27 options in the database
- db_upgraded
- can_compress_scripts
- melipayamak_border
- melipayamak_sborder
- melipayamak_shborder
- melipayamak_ihborder
- melipayamak_last_version
- melipayamak_ilhbg
- melipayamak_sbg
- melipayamak_fontc
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_groups
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method melipayamak_widget::register() should not be called statically
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_groups
- > User deprecated in wp-includes/functions.php+5453
Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_groups
- > User deprecated in wp-includes/functions.php+5453
Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.
- 209 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_groups
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 30 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_groups
- > User notice in wp-includes/functions.php+5905
Function WP_Admin_Bar::add_node was called incorrectly. The menu ID should not be empty. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_setting
- > Notice in wp-content/plugins/melipayamak/includes/templates/head.php(13) : eval()'d code+1
Constant mplogo already defined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_setting
- > Notice in wp-content/plugins/melipayamak/includes/templates/head.php+59
Undefined variable: acerror
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_setting
- > Notice in wp-content/plugins/melipayamak/includes/templates/head.php+60
Undefined variable: acok
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_setting
- > Notice in wp-content/plugins/melipayamak/includes/templates/head.php+58
Undefined variable: acwarning
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=melipayamak_setting
- > Notice in wp-content/plugins/melipayamak/includes/templates/panel_settings.php+48
Undefined index: tab
- > GET request to /wp-admin/admin.php?page=melipayamak_setting
- > Error in wp-content/plugins/melipayamak/includes/class.php+83
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/melipayamak/includes/class.php:83
Stack trace:
#0 wp-content/plugins/melipayamak/includes/class.php(188): melipayamak->call()
#1 wp-content/plugins/melipayamak/includes/class.php(122): melipayamak->update_groups()
#2 wp-content/plugins/melipayamak/includes/templates/panel_settings.php(625): melipayamak->fetch_groups()
#3 wp-content/plugins/melipayamak/includes/admin.php(28): include('/var/www/wordpr...')
#4 wp-includes/class-wp-hook.php(310): melipayamak_admin_setting()
#5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 wp-includes/plugin.php(517): WP_Hook->do_action()
#7 wp-admin/admin.php(259): do_action()
#8 {main}
thrown
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/melipayamak/includes/templates/assets/dialog.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=melipayamak_setting
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).wpColorPicker is not a function" "TypeError: $(...).wpColorPicker is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=melipayamak_setting:159:23)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&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&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=melipayamak_setting
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).wpColorPicker is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Contributors: Plugin contributors not specified
melipayamak/melipayamak.php Passed 13 tests
The main PHP file in "Melipayamak" ver. 2.2.12 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
A Persian plugin to connect WordPress/WooCommerce to Melipayamak SMS service
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin6,675 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 467 | 621 | 6,015 |
JavaScript | 4 | 15 | 9 | 347 |
CSS | 1 | 3 | 0 | 313 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 52.14 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 5.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.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 | 82 | |
▷ Static methods | 41 | 50.00% |
▷ Public methods | 76 | 92.68% |
▷ Protected methods | 1 | 1.22% |
▷ Private methods | 5 | 6.10% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.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
22 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/templates/assets/mainimg/smessage.png | 1.93KB | 0.51KB | ▼ 73.48% |
includes/images/logo2.png | 4.38KB | 2.34KB | ▼ 46.54% |
includes/templates/assets/mainimg/support.png | 2.32KB | 0.61KB | ▼ 73.83% |
includes/templates/form/images/melipayamak_gender.png | 1.47KB | 0.77KB | ▼ 47.41% |
includes/templates/assets/mainimg/groups.png | 2.99KB | 0.90KB | ▼ 69.76% |