Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.49MB] [CPU: ▲1.05ms] Passed 4 tests
A check of server-side resources used by All In One For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 43.80 ▲2.52 |
Dashboard /wp-admin | 3.83 ▲0.52 | 51.51 ▲0.96 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 55.87 ▲4.82 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 99.72 ▼3.83 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 41.69 ▲4.53 |
Server storage [IO: ▲2.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 484 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for All In One For Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.33 ▲0.06 | 1.74 ▼0.25 | 41.56 ▲1.81 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.23 | 105.51 ▼3.88 | 44.34 ▲1.12 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.01 ▼0.00 | 39.90 ▲1.99 | 35.95 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.17 ▲0.65 | 638.97 ▼61.67 | 55.87 ▲5.53 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.24 ▲0.10 | 96.91 ▼6.81 | 42.54 ▼4.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 6× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/all-in-one-wc/includes/Modules/Invoice/templates/aiow_invoice.php
- > /wp-content/plugins/all-in-one-wc/includes/Modules/Invoice/templates/custom_doc.php
- > /wp-content/plugins/all-in-one-wc/vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php
- > /wp-content/plugins/all-in-one-wc/includes/Modules/Invoice/templates/aiow_credit_note.php
- > /wp-content/plugins/all-in-one-wc/includes/Modules/Invoice/templates/aiow_packing_slip.php
- > /wp-content/plugins/all-in-one-wc/includes/Modules/Invoice/templates/aiow_proforma_invoice.php
- 117× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/all-in-one-wc/includes/Modules/custom-fields/shipping/order-custom-statuses.php:11
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\Tfpdf\\FpdfTpl' not found in wp-content/plugins/all-in-one-wc/vendor/setasign/fpdi/src/Tfpdf/Fpdi.php:24
- > PHP Fatal error
Uncaught Error: Class 'AIOW\\Modules\\Register_Modules' not found in wp-content/plugins/all-in-one-wc/includes/Modules/Shipping/Custom_Order_Statuses.php:16
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/all-in-one-wc/vendor/setasign/fpdi/src/PdfParser/Type/PdfName.php:19
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/all-in-one-wc/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php:18
- > PHP Fatal error
Uncaught Error: Class 'AIOW\\Modules\\Invoice\\Generate\\Invoice' not found in wp-content/plugins/all-in-one-wc/includes/Modules/Invoice/Generate/PDF.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function aiow_option() in wp-content/plugins/all-in-one-wc/includes/Modules/custom-fields/shipping/shipping-by-condition.php:9
- > PHP Fatal error
Uncaught Error: Class 'AIOW\\Modules\\Register_Modules' not found in wp-content/plugins/all-in-one-wc/includes/Modules/Invoice/Sub_Modules/Page.php:16
- > PHP Fatal error
Uncaught Error: Class 'AIOW\\Modules\\Register_Modules' not found in wp-content/plugins/all-in-one-wc/includes/Modules/Shipping/Order_Numbers.php:16
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/all-in-one-wc/vendor/setasign/fpdi/src/PdfParser/Type/PdfNull.php:16
- > 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 90% from 29 tests
readme.txt Passed 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
4 plugin tags: woocommerce, add to cart woocommerce, all in one for woocommerce, addtocart
all-in-one-wc/all-in-one-woocommerce.php 77% from 13 tests
The primary PHP file in "All In One For Woocommerce" version 1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "4 or higher")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("all-in-one-wc.php" instead of "all-in-one-woocommerce.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin65,030 lines of code in 215 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 201 | 3,587 | 18,394 | 64,387 |
JSON | 4 | 0 | 0 | 245 |
Markdown | 3 | 49 | 0 | 171 |
CSS | 4 | 1 | 2 | 170 |
JavaScript | 3 | 8 | 3 | 57 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,379)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 502)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 68.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,379.00 |
Average method complexity | 7.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 502.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 126 | |
▷ Abstract classes | 5 | 3.97% |
▷ Concrete classes | 121 | 96.03% |
▷ Final classes | 0 | 0.00% |
Methods | 1,430 | |
▷ Static methods | 153 | 10.70% |
▷ Public methods | 1,106 | 77.34% |
▷ Protected methods | 318 | 22.24% |
▷ Private methods | 6 | 0.42% |
Functions | 110 | |
▷ Named functions | 99 | 90.00% |
▷ Anonymous functions | 11 | 10.00% |
Constants | 189 | |
▷ Global constants | 152 | 80.42% |
▷ Class constants | 37 | 19.58% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
255 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/flag-icons/tj.png | 0.48KB | 0.58KB | 0.00% |
assets/images/flag-icons/as.png | 0.63KB | 0.73KB | 0.00% |
assets/images/flag-icons/um.png | 0.56KB | 0.63KB | 0.00% |
assets/images/flag-icons/hk.png | 0.51KB | 0.65KB | 0.00% |
assets/images/flag-icons/bt.png | 0.62KB | 0.70KB | 0.00% |