Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.01ms] Passed 4 tests
A check of server-side resources used by Upsell Cross-sell In Cart and Popup for EDD
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.50 ▼1.28 |
Dashboard /wp-admin | 3.31 ▲0.00 | 62.68 ▲11.58 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.14 ▼6.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.88 ▼22.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.86 ▲1.93 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Upsell Cross-sell In Cart and Popup for EDD
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.20 ▼0.15 | 1.78 ▼0.00 | 45.50 ▲0.95 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▲0.04 | 83.30 ▼11.59 | 39.42 ▼2.30 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.04 | 36.78 ▼0.05 | 32.79 ▼2.88 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.48 ▲0.35 | 677.06 ▲36.40 | 54.92 ▲0.97 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.19 ▼0.08 | 94.86 ▼5.78 | 41.80 ▲0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: cart, checkout, upsell, edd, ecommerce...
edd-upsell-cross-sell-in-cart-and-popup/index.php 85% from 13 tests
"Upsell Cross-sell In Cart and Popup for EDD" version 0.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("edd-upsell-cross-sell-in-cart-and-popup.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin974 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 195 | 12 | 800 |
JavaScript | 5 | 15 | 1 | 88 |
CSS | 5 | 16 | 0 | 86 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/added-to-cart-small.png | 1.99KB | 1.67KB | ▼ 15.87% |
images/add-to-cart-small.png | 1.69KB | 1.43KB | ▼ 14.94% |
images/add-to-cart.png | 7.03KB | 5.09KB | ▼ 27.51% |
images/add-to-cart-white.png | 2.08KB | 1.76KB | ▼ 15.31% |
images/download_icon_default.png | 2.18KB | 1.29KB | ▼ 40.78% |