Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.24ms] Passed 4 tests
Analyzing server-side resources used by Supplier and Purchase Order Management for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.50 ▼3.80 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.22 ▼17.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.68 ▲4.12 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.62 ▼10.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.35 ▼0.30 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Supplier and Purchase Order Management for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.43 ▼0.21 | 1.76 ▼0.04 | 46.23 ▲7.11 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▲0.96 | 99.32 ▼6.39 | 39.86 ▼6.82 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▲0.01 | 48.45 ▲11.66 | 37.59 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,533 ▲20 | 23.41 ▲5.71 | 725.14 ▲84.62 | 59.02 ▲6.85 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.28 ▲0.04 | 93.94 ▼5.34 | 43.49 ▲0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 33× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/recibirentregapo.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/listpos.php:6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/listsuppliers.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/poview.php on line 7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/addsupplier.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/createpurchaseorder.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/recibirentregapo.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/editpurchaseorder.php on line 7
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/poview.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/supplier-and-purchase-order-management-for-woocommerce/views/listsuppliers.php:7
- > PHP Notice
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: purchase order, woocommerce, supplier, purchase, management
supplier-and-purchase-order-management-for-woocommerce/supplier-plugin.php 92% from 13 tests
The primary PHP file in "Supplier and Purchase Order Management for WooCommerce" version 1.1.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("supplier-and-purchase-order-management-for-woocommerce.php" instead of "supplier-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected6,664 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 14 | 1,792 | 2,030 | 4,528 |
PHP | 11 | 785 | 159 | 2,136 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 35.04KB | 10.95KB | ▼ 68.75% |
assets/icon-128x128.png | 14.30KB | 4.78KB | ▼ 66.60% |