Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▲372.32ms] 75% from 4 tests
A check of server-side resources used by DyaPress e-Commerce
Please fix the following
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 372.32ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.35 ▲0.89 | 435.25 ▲381.08 |
Dashboard /wp-admin | 4.54 ▲1.24 | 441.04 ▲384.19 |
Posts /wp-admin/edit.php | 4.54 ▲1.19 | 442.47 ▲389.27 |
Add New Post /wp-admin/post-new.php | 4.54 ▼1.34 | 435.29 ▲334.75 |
Media Library /wp-admin/upload.php | 4.54 ▲1.31 | 448.53 ▲411.51 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 58 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_dyapress_ecommerce_maillog |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
dyapress_premium_expire |
dyapress_ecommerce_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
dyapress_ecommerce_db_version |
Browser metrics Passed 4 tests
Checking browser requirements for DyaPress e-Commerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲161 | 13.88 ▼0.47 | 17.50 ▲15.38 | 36.80 ▼8.71 |
Dashboard /wp-admin | 2,210 ▲33 | 5.69 ▲0.06 | 87.44 ▼12.48 | 84.72 ▲39.55 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.23 ▲0.20 | 32.82 ▼5.44 | 34.37 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,705 ▲179 | 22.53 ▼0.67 | 667.81 ▼32.91 | 61.25 ▼4.18 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.32 ▲0.21 | 101.53 ▼14.98 | 83.29 ▲32.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/dyapress-ecommerce/includes/class-premium.php+207
Undefined property: stdClass::$mode
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_dyapress_ecommerce_maillog
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- dyapress_ecommerce_options
- db_upgraded
- dyapress_premium_expire
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 10× PHP files output text when accessed directly:
- > /wp-content/plugins/dyapress-ecommerce/includes/class-admin.php
- > /wp-content/plugins/dyapress-ecommerce/includes/class-premium.php
- > /wp-content/plugins/dyapress-ecommerce/includes/class-importer.php
- > /wp-content/plugins/dyapress-ecommerce/includes/import/meg-invoices.php
- > /wp-content/plugins/dyapress-ecommerce/includes/class-download.php
- > /wp-content/plugins/dyapress-ecommerce/includes/class-shortcodes.php
- > /wp-content/plugins/dyapress-ecommerce/includes/class-myaccount.php
- > /wp-content/plugins/dyapress-ecommerce/includes/import/meg-customers.php
- > /wp-content/plugins/dyapress-ecommerce/includes/class-ecommerce.php
- > /wp-content/plugins/dyapress-ecommerce/includes/class-ajax-handler.php
- 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dyapress-ecommerce/templates/messages/user_updated.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dyapress-ecommerce/templates/reset_password.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function dyapress_ecommerce() in wp-content/plugins/dyapress-ecommerce/templates/thirdparty.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/dyapress-ecommerce/templates/mails/footer.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dyapress-ecommerce/templates/messages/password_mismatch.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dyapress-ecommerce/templates/messages/thirdparty_created.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function dyapress_premium() in wp-content/plugins/dyapress-ecommerce/templates/account/invoices.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function dyapress_premium() in wp-content/plugins/dyapress-ecommerce/templates/products_purchase.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function dyapress_premium() in wp-content/plugins/dyapress-ecommerce/templates/account/thirdparties.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/dyapress-ecommerce/templates/messages/unauthorized.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: e-commerce, ecommerce, stripe, sell, payments...
dyapress-ecommerce/dyapress-ecommerce.php Passed 13 tests
The main PHP file in "DyaPress e-Commerce" ver. 0.9.1 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
e-Commerce extension for DyaPress Premium Microservice API
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected8,231 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 1,611 | 1,412 | 6,699 |
PO File | 1 | 316 | 357 | 828 |
JavaScript | 2 | 92 | 23 | 397 |
CSS | 2 | 28 | 26 | 307 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 164.90 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 772.00 |
Average method complexity | 6.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 2 | 20.00% |
Methods | 305 | |
▷ Static methods | 71 | 23.28% |
▷ Public methods | 284 | 93.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 6.89% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu-icon-active.png | 0.48KB | 0.51KB | 0.00% |
images/menu-icon.png | 0.52KB | 0.39KB | ▼ 24.39% |
images/powered_by_stripe.png | 1.42KB | 1.28KB | ▼ 9.73% |