Benchmarks
Plugin footprint 82% 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.34MB] [CPU: ▼3.49ms] Passed 4 tests
A check of server-side resources used by Advance Cash On Delivery For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 29.40 ▼9.89 |
Dashboard /wp-admin | 3.65 ▲0.35 | 51.76 ▼1.02 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 45.64 ▼0.68 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 86.76 ▼2.36 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 36.24 ▲0.45 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- The plugin illegally modified 1 file (0.92KB) outside of "wp-content/plugins/advance-cash-on-delivery-for-woocommerce/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
coderockz-wc-advance-cod-free-activation-time |
Browser metrics Passed 4 tests
Checking browser requirements for Advance Cash On Delivery For WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,474 ▼261 | 14.84 ▲0.20 | 0.52 ▼1.32 | 19.20 ▼19.29 |
Dashboard /wp-admin | 2,215 ▲26 | 5.20 ▲0.23 | 115.92 ▲2.98 | 43.28 ▲1.05 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.24 ▲0.23 | 32.93 ▼4.32 | 31.90 ▼7.72 |
Add New Post /wp-admin/post-new.php | 1,522 ▼7 | 23.46 ▲5.34 | 653.70 ▼6.78 | 46.82 ▼5.29 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.32 ▲0.12 | 94.25 ▼4.57 | 45.88 ▼3.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- coderockz-wc-advance-cod-free-activation-time
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% 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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advance-cash-on-delivery-for-woocommerce/public/partials/coderockz-wc-advance-cod-free-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Zones' not found in wp-content/plugins/advance-cash-on-delivery-for-woocommerce/admin/partials/coderockz-wc-advance-cod-free-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: smart cash on delivery, cash on delivery, woocommerce smart cash on delivery, woocommerce, woocommerce cash on delivery...
advance-cash-on-delivery-for-woocommerce/coderockz-wc-advance-cod-free.php 85% from 13 tests
Analyzing the main PHP file in "Advance Cash On Delivery For WooCommerce" version 1.0.5
Please take the time to fix the following:
- 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: It is recommended to name the main PHP file as the plugin slug ("advance-cash-on-delivery-for-woocommerce.php" instead of "coderockz-wc-advance-cod-free.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,484 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 686 | 566 | 1,947 |
CSS | 4 | 33 | 97 | 1,503 |
JavaScript | 5 | 1 | 5 | 34 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 286)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.80 |
Average class complexity | 67.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 298.00 |
Average method complexity | 9.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 286.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/ui-icons_454545_256x240.png | 6.91KB | 4.18KB | ▼ 39.44% |
admin/images/cod-logo.png | 6.34KB | 6.45KB | 0.00% |