Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/propeller-ecommerce/includes/PropellerInstall.php+92
opendir(wp-content/plugins/propeller-ecommerce/src/public/templates): failed to open dir: No such file or directory
Server metrics [RAM: ▲0.54MB] [CPU: ▲14.96ms] Passed 4 tests
A check of server-side resources used by Propeller Ecommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.95 ▲1.49 | 118.14 ▲76.14 |
Dashboard /wp-admin | 3.88 ▲0.58 | 73.55 ▲18.30 |
Posts /wp-admin/edit.php | 3.92 ▲0.57 | 63.43 ▲13.79 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 102.08 ▲5.87 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 58.21 ▲21.86 |
Server storage [IO: ▲14.58MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2,115 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_propel_settings |
wp_propel_behavior |
wp_propel_slugs |
wp_propel_pages |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
propel_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Propeller Ecommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,357 ▲571 | 13.92 ▼0.43 | 22.40 ▲20.52 | 57.24 ▲14.77 |
Dashboard /wp-admin | 2,211 ▲34 | 5.65 ▲0.11 | 84.59 ▼6.81 | 44.33 ▲2.31 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 1.96 ▼0.02 | 34.42 ▼0.54 | 40.69 ▲2.80 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.25 ▲0.19 | 661.97 ▼0.65 | 74.86 ▲17.77 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.20 ▲0.01 | 95.37 ▼10.74 | 45.96 ▼0.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_propel_behavior
- wp_propel_settings
- wp_propel_slugs
- wp_propel_pages
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- propel_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 18× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/propeller-ecommerce/public/partials/product/propeller-product-downloads.php
- > /wp-content/plugins/propeller-ecommerce/public/partials/category/propeller-gecommerce-listing.php
- > /wp-content/plugins/propeller-ecommerce/public/partials/category/propeller-machine-listing-machines.php
- > /wp-content/plugins/propeller-ecommerce/public/partials/other/propeller-product-slider.php
- > /wp-content/plugins/propeller-ecommerce/public/partials/checkout/propeller-checkout-paymethods.php
- > /wp-content/plugins/propeller-ecommerce/public/partials/checkout/propeller-order-thank-you-items.php
- > /wp-content/plugins/propeller-ecommerce/public/partials/checkout/regular/propeller-checkout-step-2.php
- > /wp-content/plugins/propeller-ecommerce/public/partials/checkout/propeller-checkout-thank-you.php
- > /wp-content/plugins/propeller-ecommerce/public/error/401.php
- > /wp-content/plugins/propeller-ecommerce/vendor/markbaker/matrix/buildPhar.php
- 1242× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/propeller-ecommerce/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Erf.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/propeller-ecommerce/public/partials/product/propeller-cluster-product-name.php:2
- > PHP Notice
Undefined variable: order in wp-content/plugins/propeller-ecommerce/public/partials/cart/propeller-shopping-cart-summary-totals.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'Gettext\\Languages\\Exporter\\Exporter' not found in wp-content/plugins/propeller-ecommerce/vendor/gettext/languages/src/Exporter/Xml.php:5
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Chart\\Properties' not found in wp-content/plugins/propeller-ecommerce/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Axis.php:11
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' not found in wp-content/plugins/propeller-ecommerce/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Alignment.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Scalar' not found in wp-content/plugins/propeller-ecommerce/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/String_.php:8
- > PHP Fatal error
Uncaught Error: Class 'HTMLPurifier_AttrDef' not found in wp-content/plugins/propeller-ecommerce/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Border.php:6
- > PHP Fatal error
Uncaught Error: Class 'Propeller\\Includes\\Controller\\BaseAjaxController' not found in wp-content/plugins/propeller-ecommerce/includes/Includes/Controller/AddressAjaxController.php:7
- > PHP Fatal error
Trait 'PhpOffice\\PhpSpreadsheet\\Calculation\\ArrayEnabled' not found in wp-content/plugins/propeller-ecommerce/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef/Address.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5 in propeller-ecommerce/assets to your readme.txt
propeller-ecommerce/propeller-ecommerce.php 92% from 13 tests
The entry point to "Propeller Ecommerce" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("/Custom/languages")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/propeller-ecommerce/vendor/bin/export-plural-rules.bat
- ☣ wp-content/plugins/propeller-ecommerce/vendor/gettext/languages/bin/export-plural-rules.bat
- ☣ wp-content/plugins/propeller-ecommerce/vendor/bin/minifycss.bat
- ☣ wp-content/plugins/propeller-ecommerce/vendor/bin/minifyjs.bat
- ☣ wp-content/plugins/propeller-ecommerce/vendor/bin/php-parse.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,673 | 32,882 | 66,410 | 167,579 |
JavaScript | 66 | 1,656 | 950 | 9,049 |
Markdown | 45 | 2,424 | 0 | 6,989 |
CSS | 21 | 188 | 138 | 6,325 |
JSON | 29 | 0 | 0 | 5,036 |
yacc | 3 | 336 | 12 | 2,048 |
PO File | 1 | 660 | 1,462 | 1,333 |
YAML | 6 | 74 | 3 | 344 |
XML | 6 | 17 | 2 | 123 |
reStructuredText | 9 | 115 | 236 | 122 |
DOS Batch | 5 | 0 | 0 | 17 |
Twig | 1 | 1 | 0 | 14 |
Dockerfile | 1 | 2 | 0 | 12 |
INI | 1 | 1 | 1 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,018)
- Method cyclomatic complexity should be reduced to less than 100 (currently 333)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,018.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 333.00 |
Code structure | ||
---|---|---|
Namespaces | 147 | |
Interfaces | 56 | |
Traits | 9 | |
Classes | 1,281 | |
▷ Abstract classes | 73 | 5.70% |
▷ Concrete classes | 1,208 | 94.30% |
▷ Final classes | 67 | 5.55% |
Methods | 9,264 | |
▷ Static methods | 2,097 | 22.64% |
▷ Public methods | 7,016 | 75.73% |
▷ Protected methods | 690 | 7.45% |
▷ Private methods | 1,558 | 16.82% |
Functions | 1,592 | |
▷ Named functions | 165 | 10.36% |
▷ Anonymous functions | 1,427 | 89.64% |
Constants | 2,071 | |
▷ Global constants | 136 | 6.57% |
▷ Class constants | 1,935 | 93.43% |
▷ Public constants | 1,742 | 90.03% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/dhl.png | 2.76KB | 1.59KB | ▼ 42.13% |