Benchmarks
Plugin footprint 58% 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
You still need to fix the following installer errors
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲1.45MB] [CPU: ▲2.65ms] Passed 4 tests
Analyzing server-side resources used by Diller Loyalty
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.03 ▲1.57 | 44.48 ▲2.77 |
Dashboard /wp-admin | 4.79 ▲1.48 | 52.75 ▲1.65 |
Posts /wp-admin/edit.php | 4.84 ▲1.48 | 55.33 ▲9.20 |
Add New Post /wp-admin/post-new.php | 7.32 ▲1.44 | 93.28 ▼3.04 |
Media Library /wp-admin/upload.php | 4.65 ▲1.42 | 46.02 ▲12.27 |
Server storage [IO: ▲20.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 1,783 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
_diller_store_configs |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Diller Loyalty
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲131 | 13.90 ▼0.48 | 1.80 ▲0.06 | 54.25 ▲9.69 |
Dashboard /wp-admin | 2,235 ▲44 | 5.40 ▲0.49 | 112.00 ▲8.96 | 80.09 ▲42.19 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.27 ▲0.27 | 39.96 ▲5.03 | 34.66 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,564 ▲30 | 23.55 ▲0.29 | 779.07 ▲98.31 | 38.47 ▼24.28 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.75 ▲0.50 | 98.14 ▼12.61 | 79.95 ▲31.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- _diller_store_configs
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Diller_Loyalty_Stamp' not found in wp-content/plugins/diller-loyalty/includes/class-diller-loyalty-coupon.php:3
- > PHP Fatal error
Uncaught Error: Class 'Diller_Base_Field' not found in wp-content/plugins/diller-loyalty/includes/forms/fields/class-diller-date-field.php:11
- > PHP Fatal error
Uncaught Error: Class 'Diller_Form' not found in wp-content/plugins/diller-loyalty/includes/forms/class-diller-wc-update-phone-form.php:4
- > PHP Fatal error
Uncaught Error: Class 'Diller_Base_Field' not found in wp-content/plugins/diller-loyalty/includes/forms/fields/class-diller-radio-field.php:11
- > PHP Fatal error
Uncaught Error: Class 'Diller_Form_Element' not found in wp-content/plugins/diller-loyalty/includes/forms/fields/class-diller-submit-button.php:9
- > PHP Fatal error
Uncaught Error: Class 'libphonenumber\\Leniency\\AbstractLeniency' not found in wp-content/plugins/diller-loyalty/vendor/giggsey/libphonenumber-for-php/src/Leniency/Possible.php:8
- > PHP Fatal error
Uncaught Error: Class 'Diller_Base_Field' not found in wp-content/plugins/diller-loyalty/includes/forms/fields/class-diller-hidden-field.php:11
- > PHP Fatal error
Uncaught Error: Class 'Diller_Base_Field' not found in wp-content/plugins/diller-loyalty/includes/forms/fields/class-diller-checkbox-multi.php:11
- > PHP Fatal error
Uncaught Error: Class 'Diller_Base_Field' not found in wp-content/plugins/diller-loyalty/includes/forms/fields/class-diller-checkbox-field.php:11
- > PHP Fatal error
Uncaught Error: Class 'Diller_Base_Field' not found in wp-content/plugins/diller-loyalty/includes/forms/fields/class-diller-email-field.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #8 (Cart: Loyalty Program Coupons), #10 (Diller customization and settings page)
diller-loyalty/diller-loyalty.php Passed 13 tests
"Diller Loyalty" version 2.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
137 characters long description:
Diller is a loyalty platform for businesses that is easy, affordable and profitable and integrates seamlessly with your WooCommerce shop.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin612,217 lines of code in 1,632 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,425 | 5,039 | 20,187 | 598,522 |
JavaScript | 191 | 790 | 875 | 9,996 |
PO File | 3 | 624 | 987 | 1,797 |
CSS | 2 | 83 | 127 | 601 |
JSON | 4 | 1 | 0 | 590 |
Markdown | 4 | 181 | 0 | 454 |
SVG | 3 | 0 | 0 | 257 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 367.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 4 | |
Traits | 1 | |
Classes | 96 | |
▷ Abstract classes | 5 | 5.21% |
▷ Concrete classes | 91 | 94.79% |
▷ Final classes | 12 | 13.19% |
Methods | 1,062 | |
▷ Static methods | 156 | 14.69% |
▷ Public methods | 927 | 87.29% |
▷ Protected methods | 76 | 7.16% |
▷ Private methods | 59 | 5.56% |
Functions | 112 | |
▷ Named functions | 89 | 79.46% |
▷ Anonymous functions | 23 | 20.54% |
Constants | 172 | |
▷ Global constants | 19 | 11.05% |
▷ Class constants | 153 | 88.95% |
▷ Public constants | 152 | 99.35% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/intl-tel-input/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
assets/images/intl-tel-input/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |