Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.77ms] Passed 4 tests
This is a short check of server-side resources used by Aramex Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 46.01 ▲5.52 |
Dashboard /wp-admin | 3.38 ▲0.03 | 46.66 ▼12.24 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 46.15 ▼2.86 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.82 ▼14.82 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.11 ▲2.84 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Aramex Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.41 ▼0.79 | 1.70 ▲0.12 | 46.45 ▲8.91 |
Dashboard /wp-admin | 2,208 ▲23 | 5.88 ▲0.98 | 99.17 ▲0.16 | 38.68 ▼2.28 |
Posts /wp-admin/edit.php | 2,091 ▲5 | 2.05 ▲0.05 | 33.05 ▼7.28 | 33.94 ▼3.78 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 22.17 ▼0.90 | 674.33 ▲57.27 | 63.56 ▲14.02 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.23 ▼0.12 | 96.80 ▲0.25 | 40.45 ▼1.90 |
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
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/aramex/aramex.php+38
Non-static method Aramex_Deactivator::deactivate() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/aramex/admin/partials/aramex-shop-order-custom-order-fields-partial.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/aramex/admin/partials/aramex-custom-order-fields-partial.php:1
- > PHP Notice
Undefined variable: order_fields in wp-content/plugins/aramex/admin/partials/aramex-shop-order-custom-order-fields-partial.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/aramex/includes/aramex-config.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/aramex/includes/class-aramex-shipping-rules.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/aramex/admin/partials/aramex-shop-order-custom-order-fields-partial.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
aramex/aramex.php Passed 13 tests
"Aramex Plugin" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
Multi Carrier Shipping and Logistics Technology able to seamlessly integrate into your Woo cart.
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
No dangerous file extensions were detected1,314 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 240 | 23 | 1,247 |
JavaScript | 2 | 9 | 1 | 67 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 8 | 8.99% |
▷ Public methods | 73 | 82.02% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 17.98% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin