Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.73ms] Passed 4 tests
Analyzing server-side resources used by Pincode based product price woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.54 ▼10.16 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.75 ▼1.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.88 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.32 ▼10.80 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.21 ▼0.14 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Pincode based product price woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.12 | 1.80 ▼0.02 | 39.68 ▼3.16 |
Dashboard /wp-admin | 2,203 ▲15 | 4.84 ▼0.17 | 112.52 ▼1.38 | 40.60 ▼5.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 40.08 ▲3.13 | 35.76 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.03 ▼0.15 | 649.64 ▼62.34 | 62.82 ▲3.79 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.11 ▼0.15 | 99.90 ▼5.83 | 42.78 ▼1.45 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pincode-based-product-price-woocommerce/includes/class-pbdpw-hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/pincode-based-product-price-woocommerce/includes/admin/class-pbdpw-import.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3 in pincode-based-product-price-woocommerce/assets to your readme.txt
pincode-based-product-price-woocommerce/pbdpw.php 92% from 13 tests
"Pincode based product price woocommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pincode-based-product-price-woocommerce.php" instead of "pbdpw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,503 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 817 | 105 | 881 |
PO File | 10 | 140 | 0 | 300 |
JavaScript | 3 | 176 | 8 | 235 |
CSS | 2 | 82 | 0 | 87 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 35 | |
▷ Static methods | 9 | 25.71% |
▷ Public methods | 29 | 82.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.14% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/zip-code.png | 0.46KB | 0.53KB | 0.00% |
assets/images/postcode.png | 0.58KB | 0.47KB | ▼ 18.58% |