Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▲296.37ms] 50% from 4 tests
Analyzing server-side resources used by Dropship Sell Your Art
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 644.86ms on /wp-admin/admin.php?page=printful-settings)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 296.37ms on /wp-admin/admin.php?page=printful-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.47 | 364.40 ▲316.03 |
Dashboard /wp-admin | 3.77 ▲0.47 | 360.30 ▲305.01 |
Posts /wp-admin/edit.php | 3.82 ▲0.47 | 349.33 ▲298.07 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 388.33 ▲286.44 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 332.95 ▲295.94 |
Dropship Sell Your Art /wp-admin/admin.php?page=printful | 3.62 | 633.10 |
Settings /wp-admin/admin.php?page=printful-settings | 3.62 | 644.86 |
Server storage [IO: ▲3.97MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,150 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_canvas_prints_auth |
wp_canvas_prints_payment_keys |
wp_canvas_prints_store |
wp_canvas_prints_products |
wp_canvas_prints_orders |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Dropship Sell Your Art
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,037 ▲266 | 16.55 ▲2.19 | 166.30 ▲164.25 | 47.90 ▲4.15 |
Dashboard /wp-admin | 2,232 ▲47 | 5.91 ▲1.03 | 110.18 ▲6.51 | 78.61 ▲30.21 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 1.97 ▼0.08 | 34.92 ▼4.10 | 35.52 ▼4.22 |
Add New Post /wp-admin/post-new.php | 1,550 ▲22 | 21.61 ▲3.39 | 749.39 ▲138.84 | 52.97 ▼7.47 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.18 ▼0.05 | 98.64 ▼5.88 | 69.91 ▲22.92 |
Dropship Sell Your Art /wp-admin/admin.php?page=printful | 898 | 2.03 | 25.86 | 77.29 |
Settings /wp-admin/admin.php?page=printful-settings | 898 | 2.03 | 26.90 | 45.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_canvas_prints_store
- wp_canvas_prints_auth
- wp_canvas_prints_orders
- wp_canvas_prints_products
- wp_canvas_prints_payment_keys
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=printful-settings
- > Notice in wp-content/plugins/dropship-sell-your-art/includes/db.php+95
Undefined offset: 0
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=printful-settings
- > Notice in wp-content/plugins/dropship-sell-your-art/includes/db.php+95
Trying to get property 'currency' of non-object
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/dropship-sell-your-art/vendor/stripe/stripe-php/build.php
- > /wp-content/plugins/dropship-sell-your-art/vendor/stripe/stripe-php/update_certs.php
- 674× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Omnipay\\Stripe\\Message\\AbstractRequest' not found in wp-content/plugins/dropship-sell-your-art/vendor/omnipay/stripe/src/Message/FetchInvoiceLinesRequest.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\StreamFactory' not found in wp-content/plugins/dropship-sell-your-art/vendor/php-http/message/src/StreamFactory/GuzzleStreamFactory.php:15
- > PHP Fatal error
Uncaught Error: Class 'Omnipay\\Tests\\TestCase' not found in wp-content/plugins/dropship-sell-your-art/vendor/omnipay/stripe/tests/Message/FetchBalanceTransactionTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/dropship-sell-your-art/vendor/stripe/stripe-php/lib/Service/CouponService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/dropship-sell-your-art/vendor/stripe/stripe-php/lib/SearchResult.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Omnipay\\Common\\Message\\ResponseInterface' not found in wp-content/plugins/dropship-sell-your-art/vendor/omnipay/common/src/Common/Message/RedirectResponseInterface.php:17
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/dropship-sell-your-art/vendor/stripe/stripe-php/lib/BalanceTransaction.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\RequestMatcher' not found in wp-content/plugins/dropship-sell-your-art/vendor/php-http/message/src/RequestMatcher/RequestMatcher.php:14
- > PHP Warning
Use of undefined constant DROPSHIP_SYA_VERSION - assumed 'DROPSHIP_SYA_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/dropship-sell-your-art/templates/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Omnipay\\Stripe\\Message\\AbstractRequest' not found in wp-content/plugins/dropship-sell-your-art/vendor/omnipay/stripe/src/Message/Checkout/AbstractRequest.php:19
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
dropship-sell-your-art/canvas-prints.php 92% from 13 tests
"Dropship Sell Your Art" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dropship-sell-your-art.php" instead of "canvas-prints.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Please fix the following items
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/dropship-sell-your-art/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 890 | 11,573 | 34,325 | 50,336 |
Markdown | 44 | 2,967 | 0 | 6,647 |
JSON | 30 | 0 | 0 | 3,078 |
CSS | 2 | 213 | 35 | 928 |
JavaScript | 4 | 114 | 25 | 914 |
Bourne Shell | 2 | 25 | 45 | 101 |
YAML | 7 | 16 | 3 | 89 |
XML | 4 | 0 | 0 | 77 |
make | 2 | 14 | 0 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 242.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 107 | |
Interfaces | 78 | |
Traits | 18 | |
Classes | 730 | |
▷ Abstract classes | 25 | 3.42% |
▷ Concrete classes | 705 | 96.58% |
▷ Final classes | 133 | 18.87% |
Methods | 4,272 | |
▷ Static methods | 528 | 12.36% |
▷ Public methods | 3,865 | 90.47% |
▷ Protected methods | 165 | 3.86% |
▷ Private methods | 242 | 5.66% |
Functions | 333 | |
▷ Named functions | 191 | 57.36% |
▷ Anonymous functions | 142 | 42.64% |
Constants | 1,107 | |
▷ Global constants | 10 | 0.90% |
▷ Class constants | 1,097 | 99.10% |
▷ Public constants | 1,075 | 97.99% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/brand-icon.png | 53.85KB | 25.20KB | ▼ 53.20% |