Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.72ms] Passed 4 tests
An overview of server-side resources used by WooCommerce On Sale Information
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.76 ▲0.06 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.25 ▼2.30 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.72 ▼0.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.50 ▼19.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.22 ▲1.35 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce On Sale Information
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.38 | 2.01 ▲0.31 | 42.59 ▲0.93 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.96 | 105.18 ▲2.43 | 40.59 ▼11.55 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.00 ▲0.01 | 38.26 ▲1.66 | 33.33 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,514 ▼0 | 17.65 ▲0.15 | 663.81 ▲12.22 | 52.34 ▼3.77 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.18 ▼0.04 | 105.33 ▲2.38 | 49.96 ▲3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function VGY\\WcOnSaleInformation\\add_action() in wp-content/plugins/woo-on-sale-information/woocommerce-onsale-information.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tested up to: The plugin version is formatted incorrectly
woo-on-sale-information/woocommerce-onsale-information.php 77% from 13 tests
Analyzing the main PHP file in "WooCommerce On Sale Information" version 1.1.2
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "3.1")
- Main file name: Name the main plugin file the same as the plugin slug ("woo-on-sale-information.php" instead of "woocommerce-onsale-information.php")
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin97 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 1 | 19 | 0 | 49 |
PHP | 2 | 21 | 55 | 48 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 1 | |
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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 files were detected