Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.27ms] Passed 4 tests
An overview of server-side resources used by سرویس خرید پستی ماها
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 45.16 ▲1.46 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.04 ▼6.41 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 49.08 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 87.74 ▼9.65 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 36.71 ▼2.47 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for سرویس خرید پستی ماها
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.18 ▼1.20 | 1.96 ▲0.20 | 42.07 ▼5.03 |
Dashboard /wp-admin | 2,211 ▲26 | 5.83 ▲0.87 | 96.62 ▼21.12 | 40.96 ▼3.94 |
Posts /wp-admin/edit.php | 2,091 ▲5 | 1.98 ▼0.06 | 37.42 ▲2.93 | 34.68 ▼0.54 |
Add New Post /wp-admin/post-new.php | 1,419 ▼115 | 22.32 ▼0.90 | 600.67 ▼81.06 | 30.74 ▼36.43 |
Media Library /wp-admin/upload.php | 1,384 ▼4 | 4.19 ▼0.04 | 97.66 ▼2.15 | 41.50 ▼7.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/woo-mahacod-post/mahacod.php:13
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woo-mahacod-post/lib/nusoap/class.xmlschema.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/woo-mahacod-post/maha.pishtaz.php:2
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woo-mahacod-post/lib/nusoap/class.soap_parser.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woo-mahacod-post/lib/nusoap/class.wsdl.php:15
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woo-mahacod-post/lib/nusoap/class.soap_val.php:17
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woo-mahacod-post/lib/nusoap/class.soapclient.php:26
- > PHP Fatal error
Uncaught Error: Class 'WC_mahacod_Pishtaz_Method' not found in wp-content/plugins/woo-mahacod-post/maha.sefareshi.php:2
- > PHP Warning
require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/woo-mahacod-post/lib/nusoap/nusoapmime.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/woo-mahacod-post/lib/nusoap/class.soap_transport_http.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #0 (اضافه شدن گزینه سفارشی و پیشتاز در روش های حمل و نقل), #1 (افزودن فیلد استان و شهرستان و محاسبه هزینه ارسال), #2 (کم کردن فیلد های مورد نیاز برای ثبت سفارش)
woo-mahacod-post/mahacod.php 77% from 13 tests
The entry point to "سرویس خرید پستی ماها" version 2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("woo-mahacod-post.php" instead of "mahacod.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected14,772 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 889 | 5,160 | 12,174 |
JavaScript | 3 | 1 | 19 | 2,582 |
CSS | 2 | 0 | 1 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 73.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 388.00 |
Average method complexity | 8.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 361 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 360 | 99.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.28% |
Functions | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin