Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.75ms] Passed 4 tests
A check of server-side resources used by Couryier For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.57 ▼2.93 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.29 ▼3.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.69 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.42 ▼0.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.86 ▼0.59 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Couryier For WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.15 ▼1.22 | 1.64 ▼0.14 | 39.68 ▼1.06 |
Dashboard /wp-admin | 2,203 ▲18 | 4.84 ▼1.07 | 110.05 ▼3.74 | 40.60 ▼0.37 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.00 | 39.60 ▲5.34 | 36.25 ▲3.99 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.75 ▼0.48 | 623.27 ▲18.78 | 59.42 ▲8.29 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.13 ▼0.09 | 107.57 ▲5.19 | 45.50 ▼1.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wc-couryier/admin/couryier-login/login-form.php
- > /wp-content/plugins/wc-couryier/couryier-delivery.php
- > /wp-content/plugins/wc-couryier/classes/class-couryier-api.php
- > /wp-content/plugins/wc-couryier/admin/couryier-login/login_logout.php
- > /wp-content/plugins/wc-couryier/classes/class-couryier-shipping.php
- > /wp-content/plugins/wc-couryier/admin/couryier-orders.php
- > /wp-content/plugins/wc-couryier/admin/couryier-settings/couryier-user-settings.php
- > /wp-content/plugins/wc-couryier/utils/functions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add an image for screenshot #3 (Assign Couryier to a zone)
wc-couryier/couryier-delivery.php 85% from 13 tests
Analyzing the main PHP file in "Couryier For WooCommerce" version 1.0.1
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "5.4")
- Main file name: Name the main plugin file the same as the plugin slug ("wc-couryier.php" instead of "couryier-delivery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin941 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 224 | 87 | 890 |
JavaScript | 1 | 2 | 0 | 33 |
CSS | 1 | 2 | 0 | 18 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 9 | 31.03% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
9 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/couryier-settings/logo1.png | 32.48KB | 15.28KB | ▼ 52.95% |
admin/couryier-login/logo.png | 5.72KB | 3.51KB | ▼ 38.63% |
admin/assets/imgs/couryierlogo.png | 2.94KB | 2.46KB | ▼ 16.19% |
admin/couryier-login/logo1.png | 32.48KB | 15.28KB | ▼ 52.95% |
admin/assets/imgs/icon.png | 0.46KB | 0.45KB | ▼ 1.71% |