Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.53ms] Passed 4 tests
Analyzing server-side resources used by Aramex Optilog WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.57 ▼0.05 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.86 ▼9.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.52 ▼3.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.54 ▼12.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.79 ▼5.02 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/aramex-optilog-woocommerce/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/aramex-optilog-woocommerce/assets/icon-256\303\227256.png"
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Aramex Optilog WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.04 | 1.81 ▲0.03 | 45.27 ▲0.92 |
Dashboard /wp-admin | 2,203 ▲14 | 5.83 ▲0.91 | 97.35 ▼10.44 | 36.98 ▼6.54 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.01 | 33.88 ▼4.60 | 34.61 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.21 ▲0.02 | 664.47 ▼19.34 | 56.18 ▼9.42 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.03 | 94.56 ▼7.77 | 40.24 ▲1.15 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/aramex-optilog-woocommerce/includes/shipping/data-aramex-optilog-settings.php:17
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/aramex-optilog-woocommerce/includes/shipping/class-aramex-optilog-woocommerce-shipping.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/aramex-optilog-woocommerce/templates/adminhtml/paid.php:39
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Donate link: Invalid URI ("aramex.com")
- Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
aramex-optilog-woocommerce/aramex-optilog.php 85% from 13 tests
The primary PHP file in "Aramex Optilog WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("aramex-optilog-woocommerce.php" instead of "aramex-optilog.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 detected1,561 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 119 | 415 | 1,141 |
XML | 1 | 0 | 0 | 386 |
CSS | 1 | 2 | 4 | 34 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 23.17 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 6.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 10 | 41.67% |
▷ Protected methods | 5 | 20.83% |
▷ Private methods | 9 | 37.50% |
Functions | 18 | |
▷ Named functions | 18 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.67MB with 1.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 143.77KB | 59.01KB | ▼ 58.95% |
assets/screenshot-2.png | 102.53KB | 39.66KB | ▼ 61.32% |
assets/banner-1544x500.png | 1,363.10KB | 476.46KB | ▼ 65.05% |
assets/screenshot-1.png | 72.76KB | 25.37KB | ▼ 65.13% |
assets/icon-256×256.png | 23.65KB | 4.13KB | ▼ 82.55% |