Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/appsell/appsell.php+250
Use of undefined constant appsell_DEBUG - assumed 'appsell_DEBUG' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.41ms] Passed 4 tests
An overview of server-side resources used by Appsell for WooCommerce: Upsell, Cross Sell, Frequently Bought Together, Discounts, Coupons & Bundles
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.08 ▲2.59 |
Dashboard /wp-admin | 3.36 ▲0.01 | 53.80 ▼11.98 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.89 ▼4.20 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.08 ▼16.98 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.85 ▼0.46 |
Server storage [IO: ▲3.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
appsell_api_key |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Appsell for WooCommerce: Upsell, Cross Sell, Frequently Bought Together, Discounts, Coupons & Bundles
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲178 | 14.13 ▼0.24 | 20.41 ▲18.30 | 45.89 ▲1.18 |
Dashboard /wp-admin | 2,205 ▲28 | 5.64 ▼0.03 | 86.04 ▼1.79 | 69.82 ▲26.71 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.02 ▼0.01 | 35.41 ▼3.18 | 47.30 ▲9.32 |
Add New Post /wp-admin/post-new.php | 1,697 ▲169 | 22.29 ▼0.87 | 718.50 ▲47.43 | 56.98 ▲4.74 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.20 ▼0.02 | 121.80 ▲4.85 | 49.20 ▼2.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/appsell/appsell.php+250
Use of undefined constant appsell_DEBUG - assumed 'appsell_DEBUG' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Please fix the following attributes:
- Tags: There are too many tags (22 tag instead of maximum 10)
- Screenshots: Screenshot #1 (Increase your Average Order Value by showing upsell & cross sell offers for desktop & mobile.) image required
appsell/appsell.php 85% from 13 tests
The main PHP script in "Appsell for WooCommerce: Upsell, Cross Sell, Frequently Bought Together, Discounts, Coupons & Bundles" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
- 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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin548 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 63 | 14 | 346 |
CSS | 1 | 27 | 1 | 173 |
JavaScript | 1 | 3 | 0 | 22 |
SVG | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 3.44MB with 2.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-6.png | 370.83KB | 114.97KB | ▼ 69.00% |
assets/banner-1544x500.png | 402.72KB | 75.53KB | ▼ 81.25% |
assets/icon-1200.png | 142.08KB | 52.81KB | ▼ 62.83% |
assets/icon-128x128.png | 6.87KB | 4.17KB | ▼ 39.23% |
assets/images/AppSell_logo 2.png | 91.99KB | 32.96KB | ▼ 64.17% |