Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.04ms] Passed 4 tests
Server-side resources used by Packages Configuration for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.73 ▼6.64 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.13 ▲2.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.98 ▲3.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.76 ▼10.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.04 ▲2.14 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Packages Configuration for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.19 | 1.73 ▼0.09 | 37.78 ▼10.09 |
Dashboard /wp-admin | 2,206 ▲21 | 5.91 ▲0.05 | 106.48 ▼12.12 | 39.44 ▼7.53 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.99 ▼0.07 | 39.63 ▲2.51 | 34.74 ▲2.85 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.27 ▲0.12 | 593.34 ▼62.81 | 50.22 ▼5.73 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▲0.06 | 99.06 ▲2.55 | 42.15 ▼0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/packages-configuration-for-woocommerce/views/shipping_class_method_restrictions.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/packages-configuration-for-woocommerce/multiple-packages-shipping.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/packages-configuration-for-woocommerce/1.2.5/multiple-packages-shipping.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/packages-configuration-for-woocommerce/views/admin_options.php:1
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/packages-configuration-for-woocommerce/1.2.5/classes/Academe_Multiple_Packages_Settings.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/packages-configuration-for-woocommerce/1.2.5/views/admin_options.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/packages-configuration-for-woocommerce/1.2.5/views/shipping_class_method_restrictions.php:9
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/packages-configuration-for-woocommerce/classes/Academe_Multiple_Packages_Settings.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
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== packages-configuration-for-woocommerce ===
) - Donate link: Please fix this invalid URI: ""
packages-configuration-for-woocommerce/multiple-packages-shipping.php 92% from 13 tests
The entry point to "Packages Configuration for WooCommerce" version 1.2.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("packages-configuration-for-woocommerce.php" instead of "multiple-packages-shipping.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
There were no executable files found in this plugin508 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 152 | 238 | 489 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 6 | 18.75% |
▷ Public methods | 30 | 93.75% |
▷ Protected methods | 2 | 6.25% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 12.17KB | 5.78KB | ▼ 52.56% |
1.2.5/assets/icon-128x128.png | 5.38KB | 2.93KB | ▼ 45.62% |
assets/icon-128x128.png | 5.38KB | 2.93KB | ▼ 45.62% |
1.2.5/assets/icon-256x256.png | 12.17KB | 5.78KB | ▼ 52.56% |