Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▲2.99ms] Passed 4 tests
Analyzing server-side resources used by Advanced Shipping Validation for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 42.84 ▼1.57 |
Dashboard /wp-admin | 3.87 ▲0.57 | 56.25 ▲12.06 |
Posts /wp-admin/edit.php | 3.98 ▲0.63 | 47.51 ▼1.31 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 97.45 ▲8.89 |
Media Library /wp-admin/upload.php | 3.79 ▲0.57 | 41.33 ▲5.96 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Shipping Validation for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.13 | 1.77 ▼0.18 | 42.82 ▲1.38 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▼0.05 | 99.37 ▼9.08 | 38.92 ▼4.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.05 | 35.68 ▼5.00 | 34.68 ▼2.97 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.33 ▲5.66 | 619.48 ▼62.41 | 51.13 ▼0.23 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▲0.04 | 95.33 ▼7.08 | 41.52 ▼3.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Screenshots: Please describe screenshot #4 in advanced-shipping-validation-for-woocommerce/assets to your readme.txt
advanced-shipping-validation-for-woocommerce/advanced-shipping-validation-for-woocommerce.php 92% from 13 tests
The main file in "Advanced Shipping Validation for WooCommerce" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- 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 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,226 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,210 | 741 | 2,685 |
Sass | 2 | 41 | 7 | 277 |
JavaScript | 7 | 57 | 42 | 200 |
YAML | 1 | 0 | 0 | 39 |
JSON | 1 | 0 | 0 | 23 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 1 | 1.96% |
▷ Concrete classes | 50 | 98.04% |
▷ Final classes | 0 | 0.00% |
Methods | 225 | |
▷ Static methods | 2 | 0.89% |
▷ Public methods | 221 | 98.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 1.78% |
Functions | 16 | |
▷ Named functions | 16 | 100.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
There were not PNG files found in your plugin