Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲1.18MB] [CPU: ▼24.20ms] Passed 4 tests
A check of server-side resources used by DukaPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.14 ▲1.68 | 33.66 ▼9.96 |
Dashboard /wp-admin | 5.21 ▲1.87 | 35.10 ▼26.68 |
Posts /wp-admin/edit.php | 5.21 ▲1.85 | 35.72 ▼10.56 |
Add New Post /wp-admin/post-new.php | 5.21 ▼0.68 | 36.94 ▼49.61 |
Media Library /wp-admin/upload.php | 5.21 ▲1.98 | 35.63 ▲3.38 |
Product Tags /wp-admin/edit-tags.php?taxonomy=duka_tag&post_type=duka | 5.21 | 32.67 |
Product Categories /wp-admin/edit-tags.php?taxonomy=duka_category&post_type=duka | 5.21 | 33.22 |
Variations /wp-admin/edit-tags.php?taxonomy=duka_variation&post_type=duka | 5.21 | 32.10 |
Store Settings /wp-admin/edit.php?post_type=duka&page=dukapress | 5.21 | 30.48 |
Orders /wp-admin/edit.php?post_type=duka_order | 5.21 | 32.34 |
Create New /wp-admin/post-new.php?post_type=duka | 5.21 | 31.75 |
Documentation /wp-admin/edit.php?post_type=duka&page=documentation | 5.21 | 37.55 |
Products /wp-admin/edit.php?post_type=duka | 5.21 | 36.51 |
Server storage [IO: ▲1.49MB] [DB: ▲0.01MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/dukapress/" and "wp-content/uploads/"
- (new file) wp-content/dukapress/pdf/index.php
- (new file) wp-content/dukapress/index.php
Filesystem: 221 new files
Database: no new tables, 16 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
dpsc_gateway_removed_plugins |
widget_dukapress_checkout_widget |
dukapess_flush_rewrite |
widget_dukapress_shopping_cart_widget |
widget_recent-comments |
dpsc_gateway_plugins |
widget_recent-posts |
widget_dukapress_products_widget |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for DukaPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,999 ▲253 | 14.21 ▼0.09 | 10.57 ▲8.77 | 41.69 ▼1.51 |
Dashboard /wp-admin | 2,250 ▲62 | 5.85 ▲0.98 | 113.51 ▼2.14 | 86.90 ▲41.94 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 1.99 ▼0.07 | 37.39 ▼1.33 | 33.40 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,567 ▲53 | 17.94 ▲0.41 | 690.44 ▲30.47 | 70.78 ▲13.28 |
Media Library /wp-admin/upload.php | 1,447 ▲62 | 4.22 ▲0.00 | 93.97 ▼4.50 | 60.66 ▲15.94 |
Product Tags /wp-admin/edit-tags.php?taxonomy=duka_tag&post_type=duka | 1,293 | 2.14 | 29.19 | 30.73 |
Product Categories /wp-admin/edit-tags.php?taxonomy=duka_category&post_type=duka | 1,324 | 2.14 | 26.22 | 29.55 |
Variations /wp-admin/edit-tags.php?taxonomy=duka_variation&post_type=duka | 1,242 | 2.15 | 26.15 | 29.84 |
Store Settings /wp-admin/edit.php?post_type=duka&page=dukapress | 4,687 | 2.21 | 36.23 | 59.90 |
Orders /wp-admin/edit.php?post_type=duka_order | 1,132 | 1.94 | 31.15 | 31.92 |
Create New /wp-admin/post-new.php?post_type=duka | 2,681 | 7.89 | 189.47 | 115.28 |
Documentation /wp-admin/edit.php?post_type=duka&page=documentation | 831 | 2.01 | 24.95 | 27.47 |
Products /wp-admin/edit.php?post_type=duka | 1,153 | 1.93 | 32.48 | 32.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-includes/link-template.php+445
Trying to get property 'ID' of non-object
- Zombie WordPress options were found after uninstall: 16 options
- can_compress_scripts
- widget_recent-comments
- widget_dukapress_search_widget
- widget_recent-posts
- theysaidso_admin_options
- dukapress_settings
- dpsc_gateway_removed_plugins
- widget_dukapress_shopping_cart_widget
- dp_version
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 210 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=duka
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-includes/link-template.php+409
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/edit.php?post_type=duka&page=dukapress
- > Notice in wp-content/plugins/dukapress/dukapress/classes/dukapress-admin-pages.php+145
Undefined index: currency_layer_key
- > GET request to /wp-admin/post-new.php?post_type=duka
- > Notice in wp-content/plugins/dukapress/dukapress/includes/dukapress-post_meta.php+61
Undefined index: dukapress_noncename
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 fix the following
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant DPSC_DUKAPRESS_LIB_DIR - assumed 'DPSC_DUKAPRESS_LIB_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dukapress/dukapress/classes/dukapress-pdf.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dukapress/dukapress/tools/order_migrate.php:3
- > PHP Fatal error
Uncaught Error: Class 'DukaPress_Gateway' not found in wp-content/plugins/dukapress/dukapress/gateways/paypal.php:2
- > PHP Fatal error
Uncaught Error: Class 'DukaPress_Gateway' not found in wp-content/plugins/dukapress/dukapress/gateways/2checkout.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/dukapress/dukapress/dukapress-loader.php:253
- > PHP Fatal error
Uncaught Error: Class 'DukaPress_Gateway' not found in wp-content/plugins/dukapress/dukapress/gateways/payza.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dukapress/dukapress/widgets/shopping_cart.php:5
- > PHP Warning
Use of undefined constant DPSC_DUKAPRESS_CLASSES_DIR - assumed 'DPSC_DUKAPRESS_CLASSES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dukapress/dukapress/dukapress-loader.php on line 116
- > PHP Fatal error
Uncaught Error: Class 'DukaPress_Gateway' not found in wp-content/plugins/dukapress/dukapress/gateways/pesapal.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dukapress/dukapress/widgets/products.php:5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
dukapress/dukapress.php 92% from 13 tests
The primary PHP file in "DukaPress" version 3.2.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/dukapress/README.url
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 44 | 1,333 | 1,268 | 11,026 |
JavaScript | 76 | 915 | 962 | 9,457 |
CSS | 12 | 138 | 168 | 1,339 |
PO File | 1 | 469 | 705 | 1,114 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 307.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 36 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 314 | |
▷ Static methods | 85 | 27.07% |
▷ Public methods | 302 | 96.18% |
▷ Protected methods | 2 | 0.64% |
▷ Private methods | 10 | 3.18% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 23 | |
▷ Global constants | 23 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
52 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dukapress/resources/css/images/ui-bg_flat_55_fbf9ee_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
dukapress/resources/colorpicker/images/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
dukapress/resources/img/dp_icon_white.png | 1.17KB | 0.51KB | ▼ 56.12% |
dukapress/resources/colorpicker/images/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
dukapress/resources/css/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |