Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.85ms] Passed 4 tests
A check of server-side resources used by ELEX WooCommerce Product Price Custom Text (Before & After Text) and Discount
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.55 ▼0.49 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.56 ▼13.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.00 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.80 ▼10.71 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.10 ▲1.51 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ELEX WooCommerce Product Price Custom Text (Before & After Text) and Discount
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.32 ▼0.04 | 1.80 ▲0.09 | 43.13 ▼0.70 |
Dashboard /wp-admin | 2,195 ▲18 | 5.55 ▼0.09 | 84.01 ▼12.17 | 40.50 ▼4.47 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.03 | 33.10 ▼2.05 | 34.45 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▲0.29 | 643.73 ▼17.76 | 55.51 ▲4.02 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▲0.01 | 93.00 ▼11.72 | 40.16 ▼8.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/elex-product-price-custom-text-before-after-text-and-discount-for-woocommerce/review_and_troubleshoot_notify/resources/logo.php
- > /wp-content/plugins/elex-product-price-custom-text-before-after-text-and-discount-for-woocommerce/includes/market.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/elex-product-price-custom-text-before-after-text-and-discount-for-woocommerce/includes/market.php:302
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-product-price-custom-text-before-after-text-and-discount-for-woocommerce/review_and_troubleshoot_notify/resources/review.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-product-price-custom-text-before-after-text-and-discount-for-woocommerce/review_and_troubleshoot_notify/resources/troubleshoot.php:59
- > PHP Fatal error
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 83% from 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
3 plugin tags: woocommerce dynamic pricing, before after text, woocommerce discounts
elex-product-price-custom-text-before-after-text-and-discount-for-woocommerce/elex-woocommerce-product-price-custom-text-discount.php 62% from 13 tests
The main file in "ELEX WooCommerce Product Price Custom Text (Before & After Text) and Discount" v. 3.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Plugin Name: Please shorten the plugin name (currently 77 characters long instead of max. 70)
- Main file name: Name the main plugin file the same as the plugin slug ("elex-product-price-custom-text-before-after-text-and-discount-for-woocommerce.php" instead of "elex-woocommerce-product-price-custom-text-discount.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 174 characters long)
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "2.6.0")
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
Everything looks great! No dangerous files found in this plugin2,849 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 209 | 87 | 1,953 |
PO File | 7 | 246 | 354 | 826 |
CSS | 1 | 6 | 6 | 60 |
XML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 27 | 96.43% |
▷ Anonymous functions | 1 | 3.57% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.39MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/gpf.png | 28.76KB | 9.54KB | ▼ 66.84% |
resources/Advanced Bulk Edit.png | 69.40KB | 15.94KB | ▼ 77.03% |
resources/Dynamic Pricing & Discounts.png | 90.78KB | 22.92KB | ▼ 74.75% |
resources/Catalog Mode.png | 85.64KB | 21.17KB | ▼ 75.28% |
resources/wschat.png | 27.57KB | 9.62KB | ▼ 65.10% |