Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼4.77ms] Passed 4 tests
This is a short check of server-side resources used by Cities Shipping Zones for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 41.49 ▲4.53 |
Dashboard /wp-admin | 3.58 ▲0.23 | 51.99 ▼8.93 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 47.67 ▲3.51 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 85.33 ▼12.07 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 36.71 ▼1.60 |
Server storage [IO: ▲9.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Cities Shipping Zones for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.27 | 1.65 ▲0.02 | 44.09 ▲1.23 |
Dashboard /wp-admin | 2,192 ▲11 | 5.63 ▼0.05 | 94.96 ▼9.71 | 41.70 ▼2.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 36.47 ▼1.98 | 35.61 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.50 ▲0.54 | 681.55 ▲18.97 | 53.33 ▲0.13 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.17 ▼0.10 | 92.48 ▼16.76 | 43.56 ▼2.64 |
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 were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
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 a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in cities-shipping-zones-for-woocommerce/assets to your readme.txt
cities-shipping-zones-for-woocommerce/cities-shipping-zones-for-woocommerce.php Passed 13 tests
The primary PHP file in "Cities Shipping Zones for WooCommerce" version 1.2.4 is used by WordPress to initiate all plugin functionality
104 characters long description:
WooCommerce plugin for turning the state field into a dropdown city field. To be used as shipping zones.
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
Everything looks great! No dangerous files found in this plugin267,462 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 93 | 372 | 1,357 | 187,832 |
PO File | 3 | 26,493 | 27,186 | 79,630 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 261.00 |
▷ Minimum class complexity | 261.00 |
▷ Maximum class complexity | 261.00 |
Average method complexity | 6.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin