Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.58MB] [CPU: ▼2.98ms] Passed 4 tests
Server-side resources used by Torod - The smart shipping and delivery portal for e-shops and retailers
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 44.72 ▲1.94 |
Dashboard /wp-admin | 3.91 ▲0.60 | 50.96 ▲0.49 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 54.42 ▲3.38 |
Add New Post /wp-admin/post-new.php | 6.45 ▲0.56 | 86.09 ▼17.72 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 38.94 ▲5.30 |
Settings /wp-admin/admin.php?page=torod-settings | 3.78 | 52.63 |
Torod /wp-admin/admin.php?page=torodpage | 3.70 | 35.28 |
Order Log /wp-admin/admin.php?page=torod-order-log | 3.74 | 34.83 |
Server storage [IO: ▲3.28MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 346 new files
Database: 4 new tables, 17 new options
New tables |
---|
wp_torod_countries |
wp_torod_regions |
wp_torod_order_log |
wp_torod_cities |
New WordPress options |
---|
torod_version |
torod_payment_gateway |
torod_wp_all_settings |
torod_status_settings |
torod_log_mode |
torod_token |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
torod_demo_account |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Torod - The smart shipping and delivery portal for e-shops and retailers
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,013 ▲278 | 13.82 ▼0.55 | 2.77 ▲0.96 | 42.97 ▼7.44 |
Dashboard /wp-admin | 2,416 ▲227 | 5.21 ▲0.24 | 115.60 ▼2.43 | 39.00 ▼3.97 |
Posts /wp-admin/edit.php | 2,305 ▲213 | 2.38 ▲0.33 | 43.69 ▼1.12 | 33.91 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.59 ▲5.82 | 704.44 ▲4.81 | 64.75 ▲8.02 |
Media Library /wp-admin/upload.php | 1,602 ▲217 | 4.60 ▲0.39 | 101.96 ▲6.78 | 45.02 ▲2.29 |
Settings /wp-admin/admin.php?page=torod-settings | 1,141 | 2.23 | 42.84 | 33.10 |
Torod /wp-admin/admin.php?page=torodpage | 1,118 | 1.53 | 6.50 | 27.39 |
Order Log /wp-admin/admin.php?page=torod-order-log | 989 | 1.93 | 31.50 | 26.56 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_torod_regions
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=torod-order-log
- > POST request to /wp-admin/admin-ajax.php
- > Error in wp-content/plugins/torod/inc/ajaxyk.php+151
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/torod/inc/ajaxyk.php:151
Stack trace:
#0 wp-includes/class-wp-hook.php(310): ajaxyk->get_torod_status_reg()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin-ajax.php(188): do_action()
#4 {main}
thrown - 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=torod-order-log
- > POST request to /wp-admin/admin-ajax.php
- > Error in wp-content/plugins/torod/inc/ajaxyk.php+72
Uncaught Error: Call to undefined function WC() in wp-content/plugins/torod/inc/ajaxyk.php:72
Stack trace:
#0 wp-includes/class-wp-hook.php(310): ajaxyk->getPaymentMethod()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin-ajax.php(188): do_action()
#4 {main}
thrown - > GET request to /wp-admin/admin.php?page=torodpage
- > Error in wp-content/plugins/torod/inc/screen.php+223
Uncaught Error: Call to undefined function wc_get_order_statuses() in wp-content/plugins/torod/inc/screen.php:223
Stack trace:
#0 wp-content/plugins/torod/inc/screen.php(8): screen->loginform()
#1 wp-content/plugins/torod/torod-mmar.php(132): screen->firstscreen()
#2 wp-includes/class-wp-hook.php(310): torod_login()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown- > GET request to /wp-admin/admin.php?page=torod-order-log
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
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
- 207× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/torod/assets/states/AU.php:29
- > PHP Fatal error
Uncaught Error: Interface 'React\\Promise\\PromiseInterface' not found in wp-content/plugins/torod/inc/vendor/react/promise/src/ExtendedPromiseInterface.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/torod/assets/places/PT.php:385
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Ring\\Future\\FutureInterface' not found in wp-content/plugins/torod/inc/vendor/guzzlehttp/guzzle/src/Pool.php:34
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Ring\\Future\\FutureArrayInterface' not found in wp-content/plugins/torod/inc/vendor/guzzlehttp/ringphp/src/Future/FutureArray.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/torod/inc/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:9
- > PHP Fatal error
Uncaught Error: Interface 'React\\Promise\\ExtendedPromiseInterface' not found in wp-content/plugins/torod/inc/vendor/react/promise/src/RejectedPromise.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\ToArrayInterface' not found in wp-content/plugins/torod/inc/vendor/guzzlehttp/guzzle/src/Collection.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/torod/inc/vendor/guzzlehttp/streams/tests/DroppingStreamTest.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/torod/assets/places/ES.php:8302
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=torod-order-log
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Requires php: Version not formatted correctly
torod/torod-mmar.php 85% from 13 tests
This is the main PHP file of "Torod - The smart shipping and delivery portal for e-shops and retailers" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("torod.php" instead of "torod-mmar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin84,896 lines of code in 317 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 269 | 2,910 | 6,533 | 79,878 |
Markdown | 7 | 756 | 0 | 2,749 |
JavaScript | 5 | 53 | 118 | 640 |
reStructuredText | 9 | 263 | 333 | 517 |
JSON | 5 | 0 | 0 | 419 |
XML | 11 | 0 | 0 | 188 |
make | 3 | 41 | 5 | 172 |
CSS | 3 | 33 | 6 | 158 |
YAML | 3 | 19 | 2 | 91 |
SVG | 1 | 0 | 1 | 65 |
Python | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 23 | |
Traits | 6 | |
Classes | 139 | |
▷ Abstract classes | 4 | 2.88% |
▷ Concrete classes | 135 | 97.12% |
▷ Final classes | 3 | 2.22% |
Methods | 1,223 | |
▷ Static methods | 100 | 8.18% |
▷ Public methods | 1,113 | 91.01% |
▷ Protected methods | 14 | 1.14% |
▷ Private methods | 96 | 7.85% |
Functions | 167 | |
▷ Named functions | 26 | 15.57% |
▷ Anonymous functions | 141 | 84.43% |
Constants | 18 | |
▷ Global constants | 7 | 38.89% |
▷ Class constants | 11 | 61.11% |
▷ Public constants | 11 | 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
There are no PNG files in this plugin