Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.90ms] Passed 4 tests
An overview of server-side resources used by ELEX WooCommerce Name Your Price
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 34.87 ▼0.81 |
Dashboard /wp-admin | 3.38 ▲0.07 | 50.29 ▲0.30 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 51.54 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.55 ▲10.42 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.16 ▲5.64 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
elex-woo-flexible-pricing/elex-woo-flexible-pricing.php_activation_date |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ELEX WooCommerce Name Your Price
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲222 | 14.34 ▲0.10 | 1.55 ▼0.29 | 39.50 ▲0.79 |
Dashboard /wp-admin | 2,417 ▲237 | 5.63 ▲0.02 | 90.03 ▼7.98 | 47.88 ▲4.18 |
Posts /wp-admin/edit.php | 2,323 ▲223 | 2.12 ▲0.17 | 39.64 ▼1.26 | 42.28 ▲3.92 |
Add New Post /wp-admin/post-new.php | 1,745 ▲214 | 23.87 ▲0.65 | 629.78 ▲36.81 | 53.74 ▲5.01 |
Media Library /wp-admin/upload.php | 1,613 ▲213 | 4.17 ▼0.02 | 97.02 ▼17.99 | 44.80 ▼4.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- elex-woo-flexible-pricing/elex-woo-flexible-pricing.php_activation_date
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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 0% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/elex-woo-flexible-pricing/review_and_troubleshoot_notify/resources/logo.php
- > /wp-content/plugins/elex-woo-flexible-pricing/elex-woo-flexible-pricing.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elex-woo-flexible-pricing/includes/elex-wfp-variable-product-flexible-pricing.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elex-woo-flexible-pricing/review_and_troubleshoot_notify/resources/troubleshoot.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elex-woo-flexible-pricing/includes/market.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/elex-woo-flexible-pricing/review_and_troubleshoot_notify/resources/review.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elex-woo-flexible-pricing/includes/scripts.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elex-woo-flexible-pricing/includes/elex-wfp-product-flexible-price.php:82
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #4, #5, #6, #7, #8 in elex-woo-flexible-pricing/assets to your readme.txt
elex-woo-flexible-pricing/elex-woo-flexible-pricing.php 85% from 13 tests
The main file in "ELEX WooCommerce Name Your Price" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 182 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")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,039 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 17 | 6 | 6,765 |
PHP | 9 | 147 | 66 | 1,384 |
PO File | 7 | 245 | 498 | 795 |
JavaScript | 3 | 27 | 1 | 86 |
XML | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.31 |
▷ 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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.61MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo/Dynamic Pricing & Discounts.png | 90.78KB | 22.92KB | ▼ 74.75% |
assets/logo/Product_price.png | 123.05KB | 32.59KB | ▼ 73.52% |
assets/logo/Request a Quote.png | 92.71KB | 24.02KB | ▼ 74.09% |
assets/logo/WSDesk_Helpdesk.png | 161.93KB | 43.90KB | ▼ 72.89% |
assets/logo/Role based pricing.png | 85.64KB | 21.17KB | ▼ 75.28% |