Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.92ms] Passed 4 tests
Analyzing server-side resources used by Product Expiry for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 24.90 ▼11.54 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.72 ▼5.35 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.25 ▼2.63 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.13 ▼8.15 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.29 ▲1.55 |
Expiry Settings /wp-admin/edit.php?post_type=product&page=products_expiry_settings | 3.04 | 23.57 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Product Expiry for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼270 | 13.19 ▼1.19 | 0.68 ▼0.89 | 16.61 ▼31.53 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼1.19 | 97.23 ▲0.70 | 39.05 ▼7.74 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 34.15 ▼7.34 | 30.10 ▼6.55 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.15 ▼5.24 | 604.15 ▼49.22 | 64.72 ▲11.56 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.00 | 94.01 ▼5.03 | 42.59 ▼1.35 |
Expiry Settings /wp-admin/edit.php?post_type=product&page=products_expiry_settings | 28 | 0.44 | 0.12 | 3.96 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/product-expiry-for-woocommerce/menu/settings.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=product&page=products_expiry_settings
- > Network (severe)
wp-admin/edit.php?post_type=product&page=products_expiry_settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: woocommerce, woo notifications, product, product expiry, woo
product-expiry-for-woocommerce/product-expiry-for-woocommerce.php Passed 13 tests
"Product Expiry for WooCommerce" version 2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Provide expiry date for your products and get notified before expire
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin696 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 98 | 45 | 597 |
PO File | 1 | 22 | 25 | 64 |
JavaScript | 3 | 1 | 0 | 35 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 67.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
No PNG images were found in this plugin