Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.51ms] Passed 4 tests
Analyzing server-side resources used by WooCommerce - Shippings Payments Restrictions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.73 ▼5.00 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.55 ▼3.41 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.30 ▼4.00 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.17 ▲4.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.08 ▼1.64 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce - Shippings Payments Restrictions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▼0.18 | 1.74 ▲0.04 | 42.64 ▼6.21 |
Dashboard /wp-admin | 2,195 ▲18 | 5.52 ▼0.06 | 82.45 ▼15.61 | 38.59 ▼5.15 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.01 | 37.52 ▲0.83 | 31.66 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 18.07 ▼5.77 | 620.83 ▼65.50 | 79.17 ▲25.36 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▼0.08 | 94.50 ▼18.72 | 41.34 ▼7.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
4 plugin tags: shipping, payment gateways, woocommerce, payment gateway
woo-shippings-payments-restrictions/woocommerce-shippings-payments-restrictions.php 77% from 13 tests
The principal PHP file in "WooCommerce - Shippings Payments Restrictions" v. 1.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.4.0")
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-shippings-payments-restrictions.php" instead of "woocommerce-shippings-payments-restrictions.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin144 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 63 | 63 | 124 |
Markdown | 1 | 12 | 0 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin