Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.14MB] [CPU: ▼8.24ms] Passed 4 tests
Analyzing server-side resources used by ZITICITY shipping extension for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 41.92 ▼2.23 |
Dashboard /wp-admin | 3.35 ▲0.04 | 46.10 ▼5.62 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.43 ▲5.70 |
Add New Post /wp-admin/post-new.php | 5.18 ▼0.71 | 62.15 ▼29.99 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.15 ▲4.87 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_ziticity_parcel_lockers |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
wc_shipping_ziticity_db_version |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
ZITICITY shipping extension for WooCommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲148 | 13.87 ▼0.42 | 9.59 ▲7.62 | 42.21 ▼1.00 |
Dashboard /wp-admin | 2,203 ▲15 | 6.01 ▲0.04 | 98.85 ▼13.48 | 39.63 ▼6.76 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.00 | 34.66 ▼2.05 | 30.12 ▼3.58 |
Add New Post /wp-admin/post-new.php | 45 ▼1,497 | 0.44 ▼22.67 | 0.08 ▼657.20 | 9.38 ▼42.83 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.17 ▼0.03 | 99.74 ▼11.90 | 74.09 ▲24.10 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- recovery_mode_email_last_sent
- widget_recent-posts
- wc_shipping_ziticity_db_version
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/ziticity-shipping-for-woocommerce/includes/class-wc-shipping-ziticity.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: ziticity, woocommerce, shipping, delivery, packages...
ziticity-shipping-for-woocommerce/woocommerce-shipping-ziticity.php 92% from 13 tests
The entry point to "ZITICITY shipping extension for WooCommerce" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ziticity-shipping-for-woocommerce.php" instead of "woocommerce-shipping-ziticity.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,671 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 388 | 636 | 1,427 |
PO File | 1 | 66 | 70 | 187 |
JavaScript | 2 | 11 | 27 | 36 |
CSS | 2 | 5 | 4 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 25.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 68 | |
▷ Static methods | 12 | 17.65% |
▷ Public methods | 48 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 29.41% |
Functions | 8 | |
▷ Named functions | 4 | 50.00% |
▷ Anonymous functions | 4 | 50.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin