Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.22ms] Passed 4 tests
A check of server-side resources used by Woocommerce check pincode/zipcode for shipping
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.56 ▲0.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.88 ▼21.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 54.05 ▼0.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.08 ▼10.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.73 ▼0.80 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 34 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_check_pincode_p |
wp_pincode_zipcode_setting_free |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce check pincode/zipcode for shipping
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.24 ▼1.44 | 1.87 ▲0.00 | 38.27 ▼9.18 |
Dashboard /wp-admin | 2,210 ▲4 | 4.85 ▼0.96 | 111.45 ▼1.95 | 44.21 ▲0.66 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.00 | 42.79 ▲7.91 | 41.02 ▲9.04 |
Add New Post /wp-admin/post-new.php | 1,527 ▼11 | 23.37 ▼0.18 | 671.14 ▲20.91 | 45.79 ▼9.14 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.00 | 99.80 ▼6.59 | 42.88 ▼5.27 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_check_pincode_p
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/partials/phoen-pincode-zipcode-public-display.php
- > /wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/enter-pincode.php
- > /wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/admin/partials/phoen-pincode-zipcode-admin-display.php
- > /wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/available-pincode.php
- 93× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/available-pincode.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/enter-pincode.php on line 13
- > PHP Fatal error
Trait 'Stored' not found in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/admin/class-phoen-pincode-zipcode-admin.php on line 23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/available-pincode.php on line 37
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/available-pincode.php on line 30
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/enter-pincode.php on line 13
- > PHP Notice
Undefined variable: available_pincode_data in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/available-pincode.php on line 15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/available-pincode.php on line 88
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/available-pincode.php on line 107
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woocommerce-check-pincode-zipcode-for-shipping/public/pages/available-pincode.php on line 7
- > PHP Notice
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 25 tag instead of maximum 10
woocommerce-check-pincode-zipcode-for-shipping/phoen-pincode-zipcode.php 85% from 13 tests
The main PHP file in "Woocommerce check pincode/zipcode for shipping" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-check-pincode-zipcode-for-shipping.php" instead of "phoen-pincode-zipcode.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,426 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 272 | 551 | 1,121 |
CSS | 2 | 56 | 5 | 251 |
JavaScript | 2 | 9 | 54 | 54 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 9 | 13.85% |
▷ Public methods | 45 | 69.23% |
▷ Protected methods | 2 | 3.08% |
▷ Private methods | 18 | 27.69% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/page_white_zip.png | 0.46KB | 0.43KB | ▼ 8.21% |