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: ▼7.30ms] Passed 4 tests
Server-side resources used by Weight zone shipping for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.45 ▼0.65 |
Dashboard /wp-admin | 3.32 ▼0.03 | 43.55 ▼10.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.27 ▼1.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.85 ▼16.94 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.25 ▲4.50 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Weight zone shipping for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.17 ▼0.14 | 1.91 ▲0.32 | 42.77 ▲5.19 |
Dashboard /wp-admin | 2,192 ▲14 | 5.51 ▼0.16 | 84.94 ▼30.02 | 39.93 ▼8.26 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.02 | 42.57 ▲0.14 | 36.30 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.44 ▲0.37 | 671.30 ▼17.06 | 59.18 ▲6.05 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.21 ▼0.02 | 96.24 ▼8.99 | 44.24 ▲1.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/oik-weight-zone-shipping/class-oik-weight-zone-shipping.php:10
- > PHP Fatal error
Uncaught Error: Class 'OIK_Weight_Zone_Shipping' not found in wp-content/plugins/oik-weight-zone-shipping/class-oik-weight-zone-shipping-multi-rate.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oik-weight-zone-shipping/oik-weight-zone-shipping.php:83
- > 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 90% 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:
- Screenshots: Add images for these screenshots: #1 (Add Shipping Method for Weight Zone), #2 (Weight Zone Settings - initial display), #3 (Weight Zone Settings - shipping rates defined), #4 (Cart totals), #5 (Checkout shipping rates)
- Tested up to: Version not formatted correctly
oik-weight-zone-shipping/oik-weight-zone-shipping.php 92% from 13 tests
"Weight zone shipping for WooCommerce" version 0.2.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "2.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,550 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 180 | 999 | 1,114 |
PO File | 4 | 174 | 202 | 436 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 84 | |
▷ Static methods | 1 | 1.19% |
▷ Public methods | 84 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin