Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼1.11MB] [CPU: ▼36.24ms] Passed 4 tests
An overview of server-side resources used by Shipping Method Conditionally
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.64 | 18.61 ▼20.68 |
Dashboard /wp-admin | 2.92 ▼0.38 | 23.17 ▼24.77 |
Posts /wp-admin/edit.php | 2.92 ▼0.44 | 19.88 ▼27.08 |
Add New Post /wp-admin/post-new.php | 2.92 ▼2.97 | 19.04 ▼72.44 |
Media Library /wp-admin/upload.php | 2.92 ▼0.31 | 19.58 ▼14.87 |
Shipping Method Manage Conditionally /wp-admin/admin.php?page=woo-shipping-show-hide | 2.92 | 18.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
woo_same_installed |
theysaidso_admin_options |
db_upgraded |
woo_same_version |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Shipping Method Conditionally
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.76 ▲0.17 | 2.25 ▲0.56 | 43.14 ▲3.54 |
Dashboard /wp-admin | 2,210 ▲18 | 5.80 ▲0.87 | 97.60 ▼12.30 | 36.96 ▼5.20 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.04 | 35.06 ▲0.20 | 32.18 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,527 ▼7 | 23.16 ▲0.07 | 659.30 ▲21.28 | 59.52 ▲5.83 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▼0.02 | 97.44 ▼5.20 | 42.24 ▼4.07 |
Shipping Method Manage Conditionally /wp-admin/admin.php?page=woo-shipping-show-hide | 972 | 2.20 | 24.92 | 24.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/shipping-method-conditionally/includes/Functions.php+82
Undefined offset: 1
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- widget_recent-posts
- woo_same_installed
- widget_recent-comments
- can_compress_scripts
- woo_same_version
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=woo-shipping-show-hide
- > Notice in wp-content/plugins/shipping-method-conditionally/includes/Functions.php+92
Undefined offset: 1
- > GET request to /wp-admin/admin.php?page=woo-shipping-show-hide
- > Warning in wp-content/plugins/shipping-method-conditionally/includes/Admin/Settings.php+23
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=woo-shipping-show-hide
- > Warning in wp-content/plugins/shipping-method-conditionally/includes/Admin/Settings.php+24
Invalid argument supplied for foreach()
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== shipping-method-conditionally ===
)
shipping-method-conditionally/shipping-method-conditionally.php 92% from 13 tests
The main PHP script in "Shipping Method Conditionally" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected1,173 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 310 | 226 | 988 |
CSS | 1 | 2 | 7 | 61 |
JavaScript | 1 | 19 | 0 | 50 |
PO File | 1 | 14 | 14 | 47 |
JSON | 2 | 0 | 0 | 27 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 14.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 59 | |
▷ Static methods | 16 | 27.12% |
▷ Public methods | 56 | 94.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.08% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.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 are no PNG files in this plugin