Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.69ms] Passed 4 tests
An overview of server-side resources used by Shipping Rate By Zipcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.32 ▼8.02 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.86 ▼0.31 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.83 ▼11.06 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.85 ▼20.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.62 ▼3.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_shiprate_zipcodes |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Shipping Rate By Zipcodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲84 | 13.46 ▼1.07 | 7.74 ▲5.43 | 39.26 ▼5.20 |
Dashboard /wp-admin | 2,200 ▲20 | 5.59 ▼0.01 | 87.90 ▼12.72 | 39.06 ▼7.17 |
Posts /wp-admin/edit.php | 2,105 ▼0 | 1.99 ▲0.02 | 38.59 ▲0.80 | 34.54 ▼8.50 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 24.36 ▲1.04 | 630.74 ▼64.28 | 70.06 ▲13.41 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.20 ▲0.02 | 101.98 ▼10.03 | 50.99 ▲2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_shiprate_zipcodes
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
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/shipping-rate-by-zipcodes/zipcoderate-method-class.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
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: zipcode shipping, custom rate, postalcode shipping, post code, shipping rate
shipping-rate-by-zipcodes/shipping_rate_by_zipcodes.php 92% from 13 tests
"Shipping Rate By Zipcodes" version 1.0.0'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:
- Main file name: Name the main plugin file the same as the plugin slug ("shipping-rate-by-zipcodes.php" instead of "shipping_rate_by_zipcodes.php")
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 plugin453 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 147 | 114 | 431 |
JavaScript | 1 | 7 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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
PNG images were not found in this plugin