Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼11.33ms] Passed 4 tests
This is a short check of server-side resources used by Coupons & Add to Cart by URL Links for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.37 ▼12.50 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.79 ▼21.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 55.99 ▼0.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.62 ▼11.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.46 ▼0.05 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Coupons & Add to Cart by URL Links for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.17 ▼0.18 | 1.61 ▼0.36 | 43.77 ▲0.56 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.09 | 91.22 ▲0.19 | 38.16 ▼3.84 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 2.01 ▲0.02 | 39.11 ▼0.48 | 34.79 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.13 ▲0.19 | 653.10 ▼10.88 | 65.09 ▲6.69 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.39 ▲0.17 | 98.59 ▼12.30 | 44.80 ▼3.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: coupons, woocommerce, url coupons, woo commerce
url-coupons-for-woocommerce-by-algoritmika/url-coupons-woocommerce.php 92% from 13 tests
The main PHP file in "Coupons & Add to Cart by URL Links for WooCommerce" ver. 1.6.11 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("url-coupons-for-woocommerce-by-algoritmika.php" instead of "url-coupons-woocommerce.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/url-coupons-for-woocommerce-by-algoritmika/vendor/bin/phpcbf.bat
- ☣ wp-content/plugins/url-coupons-for-woocommerce-by-algoritmika/vendor/bin/phpcs.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 256 | 877 | 1,720 |
JSON | 2 | 0 | 0 | 134 |
XML | 1 | 12 | 14 | 22 |
DOS Batch | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 20.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 93 | |
▷ Static methods | 19 | 20.43% |
▷ Public methods | 91 | 97.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.15% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 2 | |
▷ Global constants | 2 | 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 files were detected