Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼2.62ms] Passed 4 tests
This is a short check of server-side resources used by iCarry.in Shipping & Tracking
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 50.30 ▲7.49 |
Dashboard /wp-admin | 3.52 ▲0.22 | 48.87 ▼0.04 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 50.29 ▼1.21 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 93.44 ▼10.64 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 40.98 ▲1.42 |
Server storage [IO: ▲1.08MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_ela_order_shipment |
wp_ela_shipment_status |
wp_ela_pickup_address |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
icarry_shipping |
widget_theysaidso_widget |
widget_recent-posts |
icarry_module_version |
can_compress_scripts |
icarry_language_id |
db_upgraded |
Browser metrics Passed 4 tests
iCarry.in Shipping & Tracking: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.28 ▼1.14 | 1.77 ▲0.05 | 41.65 ▲1.08 |
Dashboard /wp-admin | 2,219 ▲31 | 4.95 ▲0.09 | 108.56 ▼5.25 | 38.56 ▼1.39 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.09 ▲0.03 | 41.62 ▲0.92 | 35.73 ▼1.78 |
Add New Post /wp-admin/post-new.php | 1,525 ▼17 | 22.49 ▲4.18 | 631.60 ▲19.64 | 58.21 ▲10.77 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.28 ▲0.06 | 99.84 ▼7.13 | 44.91 ▲0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables detected upon uninstall: 3 tables
- wp_ela_shipment_status
- wp_ela_order_shipment
- wp_ela_pickup_address
- This plugin did not uninstall successfully, leaving 9 options in the database
- theysaidso_admin_options
- icarry_shipping
- icarry_language_id
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- icarry_module_version
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/icarry-in-shipping-tracking/admin/estimate_international.php
- > /wp-content/plugins/icarry-in-shipping-tracking/admin/icarry_home.php
- > /wp-content/plugins/icarry-in-shipping-tracking/admin/faq.php
- 10× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/icarry-in-shipping-tracking/admin/pickup_address.php:2
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php:4
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php:4
- > PHP Notice
Undefined variable: _SESSION in wp-content/plugins/icarry-in-shipping-tracking/admin/api_token.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: icarry logistics courier woocommerce
icarry-in-shipping-tracking/woocommerce-icarry.php 92% from 13 tests
Analyzing the main PHP file in "iCarry.in Shipping & Tracking" version 2.0.0
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("icarry-in-shipping-tracking.php" instead of "woocommerce-icarry.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 plugin8,780 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,482 | 77 | 4,219 |
PHP | 8 | 210 | 71 | 3,008 |
JavaScript | 5 | 180 | 64 | 1,553 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 117.00 |
▷ Minimum class complexity | 117.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 6.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/alert.png | 1.04KB | 0.86KB | ▼ 17.79% |
images/icarry-icon.png | 1.28KB | 0.72KB | ▼ 44.00% |
images/shape.png | 1.04KB | 0.86KB | ▼ 17.79% |
images/info.png | 0.93KB | 0.65KB | ▼ 29.72% |
images/checked.png | 0.61KB | 0.48KB | ▼ 20.13% |