Benchmarks
Plugin footprint 63% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲6.29MB] [CPU: ▲46.67ms] 25% from 4 tests
An overview of server-side resources used by Sunshine Photo Cart: Sell photos in WordPress for free
It is recommended to improve the following
- RAM: Total memory usage should be kept under 10MB (currently 10.08MB on /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine)
- CPU: The total CPU usage must kept under 500.00ms (currently 939.67ms on /wp-admin/admin.php?page=sunshine-update)
- Extra RAM: The extra memory usage should kept under 5MB (currently 6.29MB on /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.10 ▲4.64 | 78.75 ▲38.44 |
Dashboard /wp-admin | 10.13 ▲6.78 | 104.48 ▲41.59 |
Posts /wp-admin/edit.php | 10.27 ▲6.91 | 100.18 ▲52.68 |
Add New Post /wp-admin/post-new.php | 12.89 ▲7.00 | 151.49 ▲53.96 |
Media Library /wp-admin/upload.php | 10.06 ▲6.83 | 102.62 ▲70.26 |
Add New /wp-admin/post-new.php?post_type=sunshine-gallery | 12.91 | 157.33 |
Reports /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine-reports | 10.08 | 105.63 |
Add-ons /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine-addons | 10.22 | 1,193.91 |
All Products /wp-admin/edit.php?post_type=sunshine-product | 10.24 | 100.63 |
All Orders /wp-admin/edit.php?post_type=sunshine-order | 10.25 | 93.15 |
Customers /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine-customers | 10.08 | 91.29 |
Update /wp-admin/admin.php?page=sunshine-update | 10.63 | 939.67 |
Product Categories /wp-admin/edit-tags.php?taxonomy=sunshine-product-category&post_type=sunshine-product | 10.23 | 95.06 |
All Galleries /wp-admin/edit.php?post_type=sunshine-gallery | 10.17 | 95.07 |
Settings /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine | 10.08 | 90.88 |
Server storage [IO: ▲27.04MB] [DB: ▲0.05MB] 67% from 3 tests
A short overview of filesystem and database impact
Just a few items left to fix
- Total filesystem usage should be limited to 25MB (currently using 27.04MB)
Filesystem: 4,064 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_sunshine_sessions |
wp_sunshine_order_items |
wp_sunshine_order_itemmeta |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
sunshine-product-category_children |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sunshine Photo Cart: Sell photos in WordPress for free
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,197 ▲450 | 14.34 ▲0.08 | 3.92 ▲2.21 | 28.98 ▼15.34 |
Dashboard /wp-admin | 2,568 ▲388 | 5.74 ▲0.14 | 105.81 ▲9.19 | 96.14 ▲49.40 |
Posts /wp-admin/edit.php | 2,224 ▲124 | 1.98 ▼0.03 | 39.34 ▼2.48 | 37.35 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,783 ▲257 | 21.36 ▼2.15 | 700.00 ▲80.79 | 62.16 ▲8.88 |
Media Library /wp-admin/upload.php | 1,512 ▲109 | 4.16 ▼0.04 | 103.43 ▲4.64 | 73.96 ▲33.29 |
Add New /wp-admin/post-new.php?post_type=sunshine-gallery | 6,678 | 19.60 | 901.99 | 61.47 |
Reports /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine-reports | 2,178 | 5.02 | 124.68 | 111.56 |
Add-ons /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine-addons | 4,132 | 3.56 | 59.87 | 99.10 |
All Products /wp-admin/edit.php?post_type=sunshine-product | 2,248 | 3.90 | 56.93 | 108.95 |
All Orders /wp-admin/edit.php?post_type=sunshine-order | 2,377 | 3.45 | 60.04 | 89.16 |
Customers /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine-customers | 2,189 | 3.44 | 49.15 | 79.38 |
Update /wp-admin/admin.php?page=sunshine-update | 2,360 | 3.44 | 47.21 | 90.60 |
Product Categories /wp-admin/edit-tags.php?taxonomy=sunshine-product-category&post_type=sunshine-product | 2,517 | 3.83 | 48.95 | 85.48 |
All Galleries /wp-admin/edit.php?post_type=sunshine-gallery | 2,247 | 3.69 | 56.39 | 95.62 |
Settings /wp-admin/edit.php?post_type=sunshine-gallery&page=sunshine | 3,527 | 3.53 | 64.26 | 100.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_sunshine_order_items
- wp_sunshine_order_itemmeta
- wp_sunshine_sessions
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- sunshine-product-category_children
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 11× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/sunshine-photo-cart/templates/email/style.php
- > /wp-content/plugins/sunshine-photo-cart/templates/admin/upgrade-footer.php
- > /wp-content/plugins/sunshine-photo-cart/templates/order/product-option-images.php
- > /wp-content/plugins/sunshine-photo-cart/templates/order/product-option-item.php
- > /wp-content/plugins/sunshine-photo-cart/templates/admin/promo/multi-image-products.php
- > /wp-content/plugins/sunshine-photo-cart/templates/admin/promo/packages.php
- > /wp-content/plugins/sunshine-photo-cart/templates/admin/promo/volume-galleries.php
- > /wp-content/plugins/sunshine-photo-cart/templates/admin/promo/price-levels.php
- > /wp-content/plugins/sunshine-photo-cart/templates/order/comment.php
- > /wp-content/plugins/sunshine-photo-cart/templates/admin/promo/product-options.php
- 632× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/stripe/stripe-php/lib/SearchResult.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function SPC() in wp-content/plugins/sunshine-photo-cart/templates/admin/header.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/stripe/stripe-php/lib/Service/Treasury/OutboundTransferService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/stripe/stripe-php/lib/Collection.php:16
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/stripe/stripe-php/lib/Sigma/ScheduledQueryRun.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/square/square/tests/Apis/BaseTestController.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/stripe/stripe-php/lib/Refund.php:34
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/stripe/stripe-php/lib/Service/ChargeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Square\\Apis\\BaseApi' not found in wp-content/plugins/sunshine-photo-cart/includes/vendor/square/square/src/Apis/CatalogApi.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: photo cart, proof gallery, client proofing, proofing gallery, client gallery...
sunshine-photo-cart/sunshine-photo-cart.php Passed 13 tests
"Sunshine Photo Cart: Sell photos in WordPress for free" version 3.0.20's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
96 characters long description:
Client Gallery Photo Cart & Photo Proofing Plugin for Professional Photographers using WordPress
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
It is important to 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/sunshine-photo-cart/includes/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 | 2,785 | 40,629 | 132,799 | 170,971 |
PO File | 18 | 66,216 | 81,719 | 145,982 |
Markdown | 1,137 | 14,880 | 0 | 54,405 |
CSS | 6 | 364 | 127 | 1,920 |
JavaScript | 10 | 263 | 209 | 1,253 |
JSON | 10 | 0 | 0 | 737 |
SVG | 10 | 0 | 2 | 628 |
XML | 8 | 34 | 0 | 489 |
YAML | 11 | 36 | 7 | 373 |
reStructuredText | 1 | 156 | 144 | 224 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 8.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 301.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 93.00 |
Code structure | ||
---|---|---|
Namespaces | 83 | |
Interfaces | 27 | |
Traits | 9 | |
Classes | 2,557 | |
▷ Abstract classes | 17 | 0.66% |
▷ Concrete classes | 2,540 | 99.34% |
▷ Final classes | 2 | 0.08% |
Methods | 20,053 | |
▷ Static methods | 1,276 | 6.36% |
▷ Public methods | 18,853 | 94.02% |
▷ Protected methods | 124 | 0.62% |
▷ Private methods | 1,076 | 5.37% |
Functions | 1,297 | |
▷ Named functions | 337 | 25.98% |
▷ Anonymous functions | 960 | 74.02% |
Constants | 2,967 | |
▷ Global constants | 11 | 0.37% |
▷ Class constants | 2,956 | 99.63% |
▷ Public constants | 2,954 | 99.93% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
assets/images/missing-image.png | 3.78KB | 2.07KB | ▼ 45.14% |
includes/vendor/square/square/tests/Resources/square.png | 6.46KB | 4.88KB | ▼ 24.49% |
assets/js/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/images/sunshine-icon.png | 7.93KB | 3.90KB | ▼ 50.79% |