Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.84ms] Passed 4 tests
This is a short check of server-side resources used by Shipping Rates by City for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.17 ▼4.58 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.00 ▼3.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.89 ▼3.03 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.36 ▼4.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.49 ▼1.37 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wccfee_cities |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Shipping Rates by City for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲109 | 13.41 ▼0.94 | 7.31 ▲5.78 | 40.54 ▲1.17 |
Dashboard /wp-admin | 2,197 ▲20 | 5.60 ▲0.07 | 92.48 ▲7.66 | 44.28 ▲0.18 |
Posts /wp-admin/edit.php | 2,102 ▲5 | 2.01 ▲0.03 | 39.37 ▲3.17 | 34.13 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 22.91 ▼0.63 | 634.54 ▼33.40 | 51.51 ▼6.65 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.29 ▲0.06 | 103.07 ▼1.46 | 45.84 ▼1.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wccfee_cities
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/flat-shipping-rate-by-city-for-woocommerce/shipping-method-class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Invalid URI found ("")
flat-shipping-rate-by-city-for-woocommerce/flat-shipping-rate-by-city.php 77% from 13 tests
This is the main PHP file of "Shipping Rates by City for WooCommerce" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/lang")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("flat-shipping-rate-by-city-for-woocommerce.php" instead of "flat-shipping-rate-by-city.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected336 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 109 | 131 | 314 |
JavaScript | 1 | 5 | 0 | 22 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 21 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected