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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.52ms] Passed 4 tests
Analyzing server-side resources used by The Simplest: Optional Shipping by Products
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.35 ▼1.40 |
Dashboard /wp-admin | 3.31 ▲0.01 | 53.46 ▲4.69 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 54.11 ▲6.33 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.26 ▼17.19 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 39.94 ▲3.81 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for The Simplest: Optional Shipping by Products
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.32 ▼0.03 | 1.64 ▼0.27 | 43.18 ▼0.67 |
Dashboard /wp-admin | 2,195 ▲18 | 5.65 ▲0.07 | 86.27 ▼7.95 | 38.16 ▼3.66 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 35.31 ▼0.34 | 35.62 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▲0.07 | 681.88 ▼17.82 | 67.79 ▲12.46 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.03 | 102.57 ▼3.29 | 44.93 ▼1.85 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/the-simplest-optional-shipping-by-products/classes/class-ts-osp-shipping-methods.php
- > /wp-content/plugins/the-simplest-optional-shipping-by-products/views/shipping-methods-box.php
- > /wp-content/plugins/the-simplest-optional-shipping-by-products/classes/class-ts-osp-product-panel.php
- > /wp-content/plugins/the-simplest-optional-shipping-by-products/ts-optional-shipping-by-products.php
- > /wp-content/plugins/the-simplest-optional-shipping-by-products/classes/class-ts-osp-main.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/the-simplest-optional-shipping-by-products/views/shipping-methods-box.php on line 11
- > PHP Notice
Undefined variable: all_shipping_methods in wp-content/plugins/the-simplest-optional-shipping-by-products/views/shipping-methods-box.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/the-simplest-optional-shipping-by-products/constants.php:12
- > PHP Warning
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 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
5 plugin tags: disable shipping, products, woocommerce, optional shipping, shipping
the-simplest-optional-shipping-by-products/ts-optional-shipping-by-products.php 77% from 13 tests
"The Simplest: Optional Shipping by Products" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-simplest-optional-shipping-by-products.php" instead of "ts-optional-shipping-by-products.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin162 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 41 | 138 | 162 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 7 | 58.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin