Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.24ms] Passed 4 tests
A check of server-side resources used by Suppliers Manager for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.62 ▼4.93 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.29 ▼13.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.64 ▲0.30 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.95 ▼15.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.27 ▼3.60 |
Server storage [IO: ▲1.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Suppliers Manager for Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲63 | 13.61 ▼0.76 | 4.82 ▲2.65 | 40.36 ▼7.69 |
Dashboard /wp-admin | 2,209 ▲27 | 5.80 ▼0.05 | 98.64 ▼6.55 | 42.79 ▲0.31 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.02 ▼0.00 | 39.66 ▼1.73 | 35.51 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,551 ▲11 | 18.52 ▼4.99 | 652.54 ▼26.22 | 61.03 ▲4.82 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.29 ▲0.05 | 97.53 ▼14.53 | 43.82 ▼5.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/suppliers-manager-for-woocommerce/suppliers-manager-for-woocommerce.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/suppliers-manager-for-woocommerce/includes/supplier-post-type.class.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/suppliers-manager-for-woocommerce/includes/admin/menu.class.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/suppliers-manager-for-woocommerce/includes/admin/wc-products.class.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/suppliers-manager-for-woocommerce/includes/admin/settings.class.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/suppliers-manager-for-woocommerce/includes/admin/editor.class.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/suppliers-manager-for-woocommerce/includes/admin/wc-product.class.php:28
- > PHP Fatal error
Uncaught Error: Class 'FT_SMFW_Supplier' not found in wp-content/plugins/suppliers-manager-for-woocommerce/includes/views/supplier-products.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: stock, woocommerce, supplying, supplier, shop...
suppliers-manager-for-woocommerce/suppliers-manager-for-woocommerce.php 77% from 13 tests
The entry point to "Suppliers Manager for Woocommerce" version 0.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 202 characters long)
- Text Domain: Please use dashes and lowercase characters for text domains
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,480 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 213 | 274 | 1,262 |
Sass | 12 | 115 | 33 | 547 |
CSS | 2 | 27 | 42 | 408 |
PO File | 1 | 95 | 126 | 248 |
JavaScript | 1 | 1 | 0 | 10 |
SVG | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 4 | 3.70% |
▷ Public methods | 106 | 98.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.85% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
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 |
assets/images/no_supplier.png | 4.61KB | 2.51KB | ▼ 45.47% |