Benchmarks
Plugin footprint 21% 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
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/dragon-ecommerce/dragonecommercezyx987_importer.php+557
Undefined variable: U
Server metrics [RAM: ▲7.54MB] [CPU: ▼11.24ms] 75% from 4 tests
Analyzing server-side resources used by Dragon Ecommerce Plugin for WordPress
The following require your attention
- Extra RAM: Extra memory usage must be kept under 5MB (currently 7.54MB on /wp-admin/options-general.php?page=Dragon Ecommerce)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 11.54 ▲8.07 | 67.00 ▲27.86 |
Dashboard /wp-admin | 11.56 ▲8.21 | 47.28 ▼11.69 |
Posts /wp-admin/edit.php | 11.56 ▲8.20 | 52.63 ▲2.37 |
Add New Post /wp-admin/post-new.php | 11.56 ▲5.67 | 53.78 ▼47.17 |
Media Library /wp-admin/upload.php | 11.56 ▲8.33 | 46.84 ▲11.53 |
Server storage [IO: ▲18.53MB] [DB: ▲0.20MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 282 new files
Database: 36 new tables, 6 new options
New tables |
---|
wp_dragonecommercezyx987_currency |
wp_dragonecommercezyx987_department |
wp_dragonecommercezyx987_user_token |
wp_dragonecommercezyx987_city |
wp_dragonecommercezyx987_group |
wp_dragonecommercezyx987_product_order |
wp_dragonecommercezyx987_propertyvalue |
wp_dragonecommercezyx987_province |
wp_dragonecommercezyx987_product_propertyvalue |
wp_dragonecommercezyx987_currencyexchangerate |
... |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics 50% from 4 tests
A check of browser resources used by Dragon Ecommerce Plugin for WordPress
A great user experience is important, so you should focus on the following
- Nodes: You must limit the number of DOM nodes under 25,000 (currently 226,740 on /wp-admin/options-general.php?page=Dragon Ecommerce)
- Script duration: Total JavaScript execution time should be lower than 1,500.00ms (currently 1,578.24ms on /wp-admin/options-general.php?page=Dragon Ecommerce)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.28 ▲0.01 | 1.78 ▲0.14 | 43.99 ▲2.35 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▲0.05 | 90.58 ▲4.71 | 38.74 ▼3.65 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.00 | 38.88 ▲5.07 | 37.16 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,529 ▼0 | 23.38 ▼0.29 | 655.76 ▲15.17 | 60.01 ▲10.35 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.20 ▼0.02 | 93.52 ▼4.19 | 40.31 ▼0.99 |
Dragon Ecommerce /wp-admin/options-general.php?page=Dragon Ecommerce | 226,740 | 12.55 | 1,578.24 | 173.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.20MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie tables were found after uninstall: 36 tables
- wp_dragonecommercezyx987_province
- wp_dragonecommercezyx987_product_propertyvalue
- wp_dragonecommercezyx987_user_status
- wp_dragonecommercezyx987_address
- wp_dragonecommercezyx987_weight
- wp_dragonecommercezyx987_product_quantity_alert
- wp_dragonecommercezyx987_order_group
- wp_dragonecommercezyx987_paymentmethod
- wp_dragonecommercezyx987_group_property
- wp_dragonecommercezyx987_department
- ...
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 114× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Exception' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/Exception/Authorization.php:16
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/DocumentUpload.php:26
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/Disbursement.php:5
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Modification' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/AddOn.php:19
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/ApplePayCard.php:42
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/Transaction/StatusDetails.php:19
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/Merchant.php:5
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Instance' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/Transaction/CustomerDetails.php:23
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/Modification.php:5
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/Braintree/UsBankAccount.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Requires php: Invalid plugin version format
- Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #4, #5, #6, #7, #8, #9 in dragon-ecommerce/assets to your readme.txt
dragon-ecommerce/dragonecommercezyx987_importer.php 85% from 13 tests
Analyzing the main PHP file in "Dragon Ecommerce Plugin for WordPress" version 1.0
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 244 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dragon-ecommerce.php" instead of "dragonecommercezyx987_importer.php")
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 fix the following items
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/dragon-ecommerce/vendor/braintree/braintree_php/lib/ssl/api_braintreegateway_com.ca.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 196 | 6,320 | 5,854 | 50,772 |
CSS | 20 | 8,435 | 421 | 38,916 |
JavaScript | 11 | 3,505 | 1,639 | 11,784 |
SQL | 1 | 1,499 | 734 | 9,362 |
Markdown | 2 | 220 | 0 | 716 |
JSON | 3 | 0 | 0 | 97 |
XML | 1 | 7 | 10 | 23 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 4.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 183 | |
▷ Abstract classes | 2 | 1.09% |
▷ Concrete classes | 181 | 98.91% |
▷ Final classes | 0 | 0.00% |
Methods | 1,022 | |
▷ Static methods | 446 | 43.64% |
▷ Public methods | 850 | 83.17% |
▷ Protected methods | 51 | 4.99% |
▷ Private methods | 121 | 11.84% |
Functions | 220 | |
▷ Named functions | 205 | 93.18% |
▷ Anonymous functions | 15 | 6.82% |
Constants | 861 | |
▷ Global constants | 1 | 0.12% |
▷ Class constants | 860 | 99.88% |
▷ Public constants | 860 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_555555_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |
images/no_img2.png | 7.66KB | 3.09KB | ▼ 59.67% |
(invalid) css/scroll_back.png | 0.10KB | 0.00KB | ▼ 100.00% |
css/images/ui-icons_777777_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |
images/no_img.png | 2.45KB | 1.17KB | ▼ 52.05% |