Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲114.89ms] 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.67 ▲0.21 | 42.95 ▲1.07 |
Dashboard /wp-admin | 3.63 ▲0.33 | 272.64 ▲218.48 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 199.57 ▲144.98 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 369.65 ▲272.97 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 131.34 ▲95.01 |
تایید اعتبار پیامکی پارس /wp-admin/options-general.php?page=payamakpars_sms | 3.46 | 175.02 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
payamakpars_sms_labels |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
payamakpars_sms_options |
db_upgraded |
can_compress_scripts |
payamakpars_sms_gateways |
Browser metrics Passed 4 tests
A check of browser resources used by تایید اعتبار پیامکی پارس
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,174 ▲413 | 14.65 ▲0.30 | 25.63 ▲23.65 | 57.18 ▲11.23 |
Dashboard /wp-admin | 2,236 ▲59 | 6.04 ▲0.38 | 92.08 ▲0.48 | 41.38 ▲3.76 |
Posts /wp-admin/edit.php | 2,119 ▲22 | 2.47 ▲0.44 | 41.95 ▲0.29 | 37.27 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.19 ▲0.06 | 650.72 ▼17.56 | 41.50 ▼10.52 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.46 ▲0.30 | 107.85 ▲4.55 | 47.32 ▲3.59 |
تایید اعتبار پیامکی پارس /wp-admin/options-general.php?page=payamakpars_sms | 1,117 | 2.30 | 34.79 | 82.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 9 options in the database
- payamakpars_sms_labels
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- payamakpars_sms_gateways
- theysaidso_admin_options
- payamakpars_sms_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sms-verification-pars/ajax.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sms-verification-pars/sms-admin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sms-verification-pars/ajax.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=payamakpars_sms
- > Javascript (severe) in unknown
/wp-content/plugins/sms-verification-pars/sms.js?ver=6.3.1 134:29 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Screen shot 1), #2 (Screen shot 2), #3 (Screen shot 3), #4 (Screen shot 4), #5 (Screen shot 5), #6 (Screen shot 6), #7 (Screen shot 7)
sms-verification-pars/sms-validation.php 92% from 13 tests
The main PHP script in "تایید اعتبار پیامکی پارس" version 2.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sms-verification-pars.php" instead of "sms-validation.php")
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 plugin1,446 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 267 | 237 | 933 |
CSS | 1 | 39 | 65 | 385 |
JavaScript | 1 | 18 | 4 | 128 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 16.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 3 | 5.56% |
▷ Public methods | 54 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.23MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 26.02KB | 10.92KB | ▼ 58.02% |
screenshot-5.png | 75.44KB | 34.12KB | ▼ 54.77% |
screenshot-1.png | 32.53KB | 14.62KB | ▼ 55.08% |
screenshot-2.png | 34.20KB | 14.72KB | ▼ 56.96% |
screenshot-7.png | 11.46KB | 5.13KB | ▼ 55.19% |