Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.76ms] Passed 4 tests
Server-side resources used by Midwest Logistics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.13 ▼3.39 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.19 ▼0.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 51.66 ▲7.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.36 ▼7.01 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.24 ▼0.35 |
Server storage [IO: ▲0.23MB] [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: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Midwest Logistics: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲46 | 13.17 ▼1.20 | 1.51 ▼0.53 | 38.32 ▼6.09 |
Dashboard /wp-admin | 2,226 ▲35 | 5.89 ▲0.00 | 109.10 ▲7.52 | 42.11 ▲4.29 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.05 ▲0.06 | 41.35 ▼0.41 | 35.14 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,526 ▼13 | 17.40 ▼0.88 | 659.89 ▲39.00 | 53.98 ▼5.41 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.23 ▲0.02 | 105.03 ▼6.15 | 46.21 ▲0.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/midwest-logistics/data/data-usps-flat-rate-boxes.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/midwest-logistics/classes/class-ml-settings.php:413
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/midwest-logistics/classes/class-ml-settings-orders.php:349
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/midwest-logistics/classes/class-ml-stock.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/midwest-logistics/classes/class-ml-order.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/midwest-logistics/data/data-usps-services.php:6
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/midwest-logistics/classes/class-wc-ml-shipping-method.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in midwest-logistics/assets to your readme.txt
midwest-logistics/midwest-wholesale.php 92% from 13 tests
The entry point to "Midwest Logistics" version 1.1.21 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("midwest-logistics.php" instead of "midwest-wholesale.php")
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
No dangerous file extensions were detected3,557 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 587 | 282 | 3,523 |
JavaScript | 1 | 8 | 12 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 30.44 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.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 | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 89.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.94% |
Functions | 39 | |
▷ Named functions | 38 | 97.44% |
▷ Anonymous functions | 1 | 2.56% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin