Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.43ms] Passed 4 tests
Analyzing server-side resources used by Easy Up-Sell for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.82 ▲1.72 |
Dashboard /wp-admin | 3.38 ▲0.04 | 51.55 ▼19.03 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.14 ▲1.63 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 89.57 ▼4.80 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.38 ▲0.49 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Easy Up-Sell for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲155 | 13.65 ▼0.51 | 9.38 ▲7.63 | 41.38 ▼2.45 |
Dashboard /wp-admin | 2,202 ▲25 | 5.62 ▲0.09 | 86.14 ▼15.06 | 40.44 ▼2.61 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.04 ▲0.06 | 35.62 ▲0.44 | 33.60 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 22.96 ▼0.24 | 641.34 ▼6.94 | 53.27 ▼12.68 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.17 ▼0.00 | 98.63 ▼1.99 | 41.07 ▼4.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/easy-up-sell-for-woocommerce/public/partials/eus-for-woocommerce-public-display.php
- > /wp-content/plugins/easy-up-sell-for-woocommerce/admin/partials/eus-for-woocommerce-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Requires php: The plugin version is formatted incorrectly
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
easy-up-sell-for-woocommerce/eus-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Easy Up-Sell for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("easy-up-sell-for-woocommerce.php" instead of "eus-for-woocommerce.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
Good job! No executable or dangerous file extensions detected310 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 160 | 588 | 304 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 26 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 23.53% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin