Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/alopeyk-woocommerce-shipping/includes/class-alopeyk-woocommerce-shipping-common.php+1653
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.40ms] Passed 4 tests
An overview of server-side resources used by Alopeyk WooCommerce Shipping
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.97 ▼2.35 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.98 ▼5.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.02 ▼8.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.42 ▼9.17 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.94 ▲4.40 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
It is recommended to fix the following issues
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/alopeyk-woocommerce-shipping/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/alopeyk-woocommerce-shipping/public/partials/iran\331\200provinces_cities.json"
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Alopeyk WooCommerce Shipping
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.55 ▼0.74 | 1.69 ▼0.01 | 44.06 ▲0.98 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.92 | 97.84 ▼12.90 | 41.20 ▼0.99 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.01 | 34.92 ▼4.54 | 35.34 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,538 ▼4 | 23.25 ▲4.99 | 671.62 ▲52.16 | 51.68 ▲0.16 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.25 ▲0.06 | 97.41 ▼15.31 | 47.33 ▲2.24 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/alopeyk-woocommerce-shipping/vendor/alopeyk/alopeyk-api-php/index.develop.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: woocommerce, shop, shipping, delivery, alopeyk...
alopeyk-woocommerce-shipping/alopeyk-woocommerce-shipping.php 85% from 13 tests
"Alopeyk WooCommerce Shipping" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Git Repository: An alternative Git repository was detected
- Requires at least: Required version must match the one declared in readme.txt ("4.4" instead of "2.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin13,121 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 1,164 | 1,885 | 6,467 |
PO File | 2 | 708 | 940 | 2,068 |
JavaScript | 6 | 1,196 | 55 | 2,039 |
CSS | 8 | 107 | 63 | 1,745 |
Markdown | 2 | 79 | 0 | 703 |
JSON | 4 | 0 | 0 | 82 |
SVG | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 43.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 541.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 340 | |
▷ Static methods | 43 | 12.65% |
▷ Public methods | 323 | 95.00% |
▷ Protected methods | 5 | 1.47% |
▷ Private methods | 12 | 3.53% |
Functions | 21 | |
▷ Named functions | 6 | 28.57% |
▷ Anonymous functions | 15 | 71.43% |
Constants | 11 | |
▷ Global constants | 4 | 36.36% |
▷ Class constants | 7 | 63.64% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/marker-small.png | 0.54KB | 0.37KB | ▼ 32.80% |
admin/img/plate-automobile.png | 10.41KB | 4.78KB | ▼ 54.06% |
admin/img/plate-motorbike.png | 5.22KB | 2.77KB | ▼ 46.88% |
admin/img/logo.png | 1.89KB | 1.87KB | ▼ 0.98% |
public/img/marker-small.png | 0.54KB | 0.37KB | ▼ 32.80% |