Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5768
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲4.46MB] [CPU: ▼290.15ms] Passed 4 tests
A check of server-side resources used by Order and Inventory Manager for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.42 ▲4.91 | 75.33 ▲19.90 |
Dashboard /wp-admin | 8.44 ▲5.03 | 57.92 ▲24.10 |
Posts /wp-admin/edit.php | 8.44 ▲4.80 | 59.66 ▲21.92 |
Add New Post /wp-admin/post-new.php | 10.07 ▲3.09 | 114.22 ▼1,223.03 |
Media Library /wp-admin/upload.php | 8.44 ▲5.14 | 43.12 ▲20.60 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 8.44 | 41.19 |
Server storage [IO: ▲28.17MB] [DB: ▲0.01MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 28.17MB)
Filesystem: 863 new files
Database: 3 new tables, 5 new options
New tables |
---|
wp_order_inventory |
wp_additional_supplier_info |
wp_oim_product_stock |
New WordPress options |
---|
fs_accounts |
fs_active_plugins |
fs_debug_mode |
fs_gdpr |
oim_product_stock |
Browser metrics Passed 4 tests
Checking browser requirements for Order and Inventory Manager for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,866 ▲112 | 15.98 ▼0.08 | 7.08 ▲1.11 | 2.69 ▲0.12 |
Dashboard /wp-admin | 2,960 ▲109 | 6.12 ▼0.01 | 116.33 ▼21.35 | 177.14 ▲12.55 |
Posts /wp-admin/edit.php | 2,757 ▲66 | 3.36 ▲0.13 | 63.34 ▼3.50 | 157.33 ▲17.24 |
Add New Post /wp-admin/post-new.php | 1,697 ▲36 | 16.95 ▼5.35 | 411.75 ▼24.93 | 159.50 ▼0.92 |
Media Library /wp-admin/upload.php | 1,770 ▲69 | 5.50 ▲0.01 | 139.94 ▲2.07 | 204.41 ▲21.40 |
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius | 1,473 | 2.50 | 52.93 | 110.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/order-and-inventory-manager-for-woocommerce/freemius/includes/class-freemius.php+8552
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_additional_supplier_info
- wp_order_inventory
- wp_oim_product_stock
- This plugin does not fully uninstall, leaving 5 options in the database
- fs_gdpr
- fs_active_plugins
- fs_accounts
- fs_debug_mode
- oim_product_stock
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
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/order-and-inventory-manager-for-woocommerce/freemius/templates/ajax-loader.php
- > /wp-content/plugins/order-and-inventory-manager-for-woocommerce/js-templates/completed_po_tmpl.php
- 410× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/order-and-inventory-manager-for-woocommerce/includes/mPDF/vendor/mpdf/mpdf/src/Tag/Time.php:5
- > PHP Fatal error
Uncaught Error: Interface 'PhpOffice\\PhpSpreadsheet\\Writer\\IWriter' not found in wp-content/plugins/order-and-inventory-manager-for-woocommerce/includes/phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/BaseWriter.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/order-and-inventory-manager-for-woocommerce/classes/class.data_delivery_table.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\Word2007\\Part\\AbstractPart' not found in wp-content/plugins/order-and-inventory-manager-for-woocommerce/includes/PhpOffice/vendor/phpoffice/phpword/src/PhpWord/Writer/Word2007/Part/DocPropsCore.php:25
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\Word2007\\Part\\AbstractPart' not found in wp-content/plugins/order-and-inventory-manager-for-woocommerce/includes/PhpOffice/vendor/phpoffice/phpword/src/PhpWord/Writer/Word2007/Part/Numbering.php:30
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/order-and-inventory-manager-for-woocommerce/classes/class.order_status_list.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/order-and-inventory-manager-for-woocommerce/includes/mPDF/vendor/mpdf/mpdf/src/Tag/DotTab.php:5
- > PHP Warning
Use of undefined constant OIMWC_PLUGIN_DIR - assumed 'OIMWC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/order-and-inventory-manager-for-woocommerce/modules/wp-search/wp-search.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'PhpOffice\\PhpWord\\Writer\\Word2007\\Style\\Frame' not found in wp-content/plugins/order-and-inventory-manager-for-woocommerce/includes/PhpOffice/vendor/phpoffice/phpword/src/PhpWord/Writer/Word2007/Style/Image.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/order-and-inventory-manager-for-woocommerce/templates/display_product_stock.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: woocommerce, order management, inventory management
order-and-inventory-manager-for-woocommerce/order-and-inventory-manager-for-woocommerce.php 92% from 13 tests
The main PHP file in "Order and Inventory Manager for WooCommerce" ver. 1.3.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0.0")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected181,927 lines of code in 757 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 698 | 26,191 | 50,431 | 142,897 |
PO File | 15 | 8,150 | 10,330 | 18,085 |
SVG | 3 | 0 | 12 | 8,777 |
JavaScript | 11 | 904 | 431 | 5,996 |
CSS | 19 | 163 | 203 | 5,606 |
Markdown | 4 | 181 | 0 | 388 |
JSON | 4 | 3 | 0 | 146 |
XML | 1 | 0 | 0 | 19 |
YAML | 1 | 1 | 1 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 7,012)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 460)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 51.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7,012.00 |
Average method complexity | 6.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 460.00 |
Code structure | ||
---|---|---|
Namespaces | 74 | |
Interfaces | 16 | |
Traits | 6 | |
Classes | 508 | |
▷ Abstract classes | 28 | 5.51% |
▷ Concrete classes | 480 | 94.49% |
▷ Final classes | 19 | 3.96% |
Methods | 4,865 | |
▷ Static methods | 640 | 13.16% |
▷ Public methods | 3,996 | 82.14% |
▷ Protected methods | 194 | 3.99% |
▷ Private methods | 675 | 13.87% |
Functions | 221 | |
▷ Named functions | 190 | 85.97% |
▷ Anonymous functions | 31 | 14.03% |
Constants | 1,067 | |
▷ Global constants | 120 | 11.25% |
▷ Class constants | 947 | 88.75% |
▷ Public constants | 947 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/OIMWC_admin_menu_icon_grey.png | 3.25KB | 3.11KB | ▼ 4.24% |
images/OIMWC_admin_menu_icon_blue.png | 3.25KB | 3.11KB | ▼ 4.29% |
images/logo.png | 7.02KB | 7.01KB | 0.13% |
images/tooltip-corner1.png | 1.17KB | 0.19KB | ▼ 84.07% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |