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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.62ms] Passed 4 tests
Server-side resources used by Promo & Referral URLs Generator, Coupons Auto Apply for Woo - Free by WP Masters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.32 ▼2.22 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.38 ▼3.28 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.22 ▼4.32 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.28 ▼16.67 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.15 ▼1.20 |
Server storage [IO: ▲4.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Promo & Referral URLs Generator, Coupons Auto Apply for Woo - Free by WP Masters
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲244 | 16.84 ▲2.06 | 12.51 ▲10.68 | 46.44 ▼2.20 |
Dashboard /wp-admin | 2,244 ▲56 | 7.31 ▲2.45 | 124.17 ▲18.31 | 41.01 ▼2.34 |
Posts /wp-admin/edit.php | 2,124 ▲32 | 4.00 ▲1.99 | 48.49 ▲5.88 | 36.97 ▼1.39 |
Add New Post /wp-admin/post-new.php | 6,374 ▲4,841 | 26.10 ▲2.92 | 951.31 ▲300.42 | 37.93 ▼23.57 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 6.65 ▲2.41 | 112.09 ▼0.65 | 45.08 ▼3.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/promo-referral-urls-generator-coupons-auto-apply-for-woo-free-by-wp-masters/wpm-cookie-promocodes-coupons.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/promo-referral-urls-generator-coupons-auto-apply-for-woo-free-by-wp-masters/templates/admin/settings.php:11
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: promocodes, invite, auto apply, referrals, coupons
promo-referral-urls-generator-coupons-auto-apply-for-woo-free-by-wp-masters/wpm-cookie-promocodes-coupons.php 77% from 13 tests
"Promo & Referral URLs Generator, Coupons Auto Apply for Woo - Free by WP Masters" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 80 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("promo-referral-urls-generator-coupons-auto-apply-for-woo-free-by-wp-masters.php" instead of "wpm-cookie-promocodes-coupons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin11,078 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
CSS | 3 | 143 | 5 | 883 |
PHP | 2 | 31 | 62 | 360 |
JavaScript | 4 | 11 | 5 | 283 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/assets/img/logo.png | 11.32KB | 4.55KB | ▼ 59.79% |