Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.90ms] Passed 4 tests
A check of server-side resources used by Shopp Category Shipping Filters
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.77 ▲2.32 |
Dashboard /wp-admin | 3.39 ▲0.09 | 55.82 ▲4.21 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.75 ▼2.44 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.16 ▼5.75 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.46 ▲2.27 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 494 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Shopp Category Shipping Filters
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.71 ▼0.57 | 1.97 ▼0.29 | 44.79 ▲4.88 |
Dashboard /wp-admin | 2,206 ▲18 | 5.90 ▲0.05 | 99.30 ▼18.42 | 44.08 ▼5.00 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.05 ▼0.01 | 36.18 ▼0.93 | 35.93 ▲2.43 |
Add New Post /wp-admin/post-new.php | 1,536 ▼10 | 23.28 ▲4.93 | 717.30 ▲78.08 | 58.04 ▲6.14 |
Media Library /wp-admin/upload.php | 1,379 ▼9 | 4.26 ▲0.08 | 99.21 ▼3.21 | 45.14 ▲2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/shopp-category-shipping-filters/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin/inc/wordpress-simple-settings.php:176
- > PHP Fatal error
Uncaught Error: Call to undefined function ShoppCategoryShippingFilters\\plugins_url() in wp-content/plugins/shopp-category-shipping-filters/shopp-category-shipping-filters.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function the_nonce() on null in wp-content/plugins/shopp-category-shipping-filters/vendor/objectivco/wordpress-simple-settings/examples/awesome-plugin/awesome-plugin-admin.php:8
- > PHP Fatal error
Uncaught Error: Class 'WordPress_SimpleSettings' not found in wp-content/plugins/shopp-category-shipping-filters/app/class-main.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== shopp-category-shipping-filters ===
)
shopp-category-shipping-filters/shopp-category-shipping-filters.php Passed 13 tests
"Shopp Category Shipping Filters" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Allows filtering of shipping options based on the categories cart items belong to.
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
There were no executable files found in this plugin50,856 lines of code in 414 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 192 | 8,950 | 4,264 | 34,824 |
Sass | 116 | 1,540 | 1,648 | 8,438 |
HTML | 69 | 883 | 0 | 4,971 |
SVG | 2 | 0 | 0 | 672 |
CSS | 3 | 125 | 20 | 645 |
PHP | 14 | 162 | 323 | 630 |
Markdown | 7 | 140 | 0 | 406 |
JSON | 9 | 0 | 0 | 242 |
YAML | 1 | 5 | 0 | 17 |
XML | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 14.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 3 | 5.17% |
▷ Public methods | 57 | 98.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.72% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
64 PNG files occupy 0.44MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/select2/docs/vendor/images/flags/id.png | 7.15KB | 3.27KB | ▼ 54.24% |
assets/js/select2/docs/vendor/images/flags/de.png | 7.72KB | 3.41KB | ▼ 55.81% |
assets/js/select2/docs/vendor/images/flags/ct.png | 8.99KB | 3.88KB | ▼ 56.90% |
assets/js/select2/docs/images/apple-touch-icon-60x60.png | 1.91KB | 1.80KB | ▼ 5.48% |
assets/js/select2/docs/vendor/images/flags/ca.png | 6.99KB | 3.36KB | ▼ 51.92% |