Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.68ms] Passed 4 tests
An overview of server-side resources used by DTDC Econnect Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.84 ▲0.65 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.82 ▲1.75 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.62 ▲1.18 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.81 ▼21.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.12 ▲1.13 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_sync_track_order |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DTDC Econnect Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.73 ▲0.42 | 1.88 ▲0.21 | 51.79 ▲10.28 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.02 | 105.43 ▲2.71 | 40.32 ▼8.39 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.01 | 39.57 ▼2.53 | 33.93 ▼5.06 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.54 ▼5.78 | 680.66 ▲22.72 | 57.93 ▼0.14 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.19 ▼0.00 | 94.53 ▼2.74 | 42.74 ▲1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_sync_track_order
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dtdc-econnect/public/partials/shipsy-econnect-public-display.php
- > /wp-content/plugins/dtdc-econnect/admin/partials/shipsy-econnect-admin-display.php
- 69× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(SHIPSY_ECONNECT_PATHadmin/helper/helper.php): failed to open stream: No such file or directory in wp-content/plugins/dtdc-econnect/admin/apis/shipsy-addresses-helper-api.php on line 14
- > PHP Warning
Use of undefined constant SHIPSY_ECONNECT_PATH - assumed 'SHIPSY_ECONNECT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dtdc-econnect/templates/myaccount/view-order.php on line 16
- > PHP Fatal error
require_once(): Failed opening required 'SHIPSY_ECONNECT_PATHadmin/crons/decorators/class-job-decorator.php' (include_path='.:/usr/share/php') in wp-content/plugins/dtdc-econnect/admin/crons/decorators/class-auth-check-job-decorator.php on line 16
- > PHP Warning
require_once(SHIPSY_ECONNECT_PATHadmin/helper/helper.php): failed to open stream: No such file or directory in wp-content/plugins/dtdc-econnect/admin/apis/shipsy-shipping-label-download-api.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'SHIPSY_ECONNECT_PATHadmin/crons/jobs/interface-job.php' (include_path='.:/usr/share/php') in wp-content/plugins/dtdc-econnect/admin/crons/decorators/class-job-decorator.php on line 16
- > PHP Warning
require_once(SHIPSY_ECONNECT_PATHutils/request/shipsy-request-handler.php): failed to open stream: No such file or directory in wp-content/plugins/dtdc-econnect/admin/helper/helper.php on line 19
- > PHP Warning
require_once(SHIPSY_ECONNECT_PATHutils/request/request/interface-request.php): failed to open stream: No such file or directory in wp-content/plugins/dtdc-econnect/utils/request/request/class-request.php on line 15
- > PHP Fatal error
require_once(): Failed opening required 'SHIPSY_ECONNECT_PATHutils/request/shipsy-request-handler.php' (include_path='.:/usr/share/php') in wp-content/plugins/dtdc-econnect/admin/helper/helper.php on line 19
- > PHP Fatal error
require(): Failed opening required 'SHIPSY_ECONNECT_PATHconfig/settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/dtdc-econnect/templates/myaccount/view-order.php on line 16
- > PHP Fatal error
require(): Failed opening required 'SHIPSY_ECONNECT_PATHconfig/settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/dtdc-econnect/admin/apis/shipsy-endpoint-helper-api.php on line 14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: ecommerce, dtdc, shipsy
dtdc-econnect/shipsy-econnect.php 77% from 13 tests
The main file in "DTDC Econnect Plugin" v. 1.0.17 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 192 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("dtdc-econnect.php" instead of "shipsy-econnect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,363 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 574 | 1,594 | 3,867 |
JavaScript | 7 | 306 | 314 | 1,385 |
CSS | 8 | 14 | 34 | 852 |
JSON | 1 | 0 | 0 | 245 |
Bourne Shell | 1 | 9 | 7 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 71 | 86.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 13.41% |
Functions | 46 | |
▷ Named functions | 46 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin