Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.51MB] [CPU: ▲2.53ms] Passed 4 tests
An overview of server-side resources used by Pallet Packaging for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 44.08 ▲1.63 |
Dashboard /wp-admin | 3.85 ▲0.55 | 49.29 ▲1.06 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 52.20 ▲5.61 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 95.54 ▲1.80 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 44.05 ▲8.26 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_en_pallets |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
en_pallet_packaging_version |
Browser metrics Passed 4 tests
Pallet Packaging for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲85 | 13.25 ▼1.13 | 1.91 ▼0.07 | 38.59 ▼3.66 |
Dashboard /wp-admin | 2,226 ▲34 | 5.13 ▲0.15 | 114.84 ▲3.72 | 43.50 ▲1.19 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.07 ▲0.07 | 40.52 ▲0.53 | 33.59 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,540 ▲6 | 18.58 ▼4.58 | 616.43 ▼43.60 | 53.27 ▲9.38 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.29 ▲0.13 | 95.67 ▼4.06 | 41.83 ▼5.40 |
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
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_en_pallets
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- en_pallet_packaging_version
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pallet-packaging-for-woocommerce/adding-pallets/includes/pallets-per-product.php:20
- > 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 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: Add descriptions for screenshots #1, #2, #3 in pallet-packaging-for-woocommerce/assets to your readme.txt
pallet-packaging-for-woocommerce/pallet-packaging-for-woocommerce.php 77% from 13 tests
The main PHP file in "Pallet Packaging for WooCommerce" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Requires at least: The required version number did not match the one declared in readme.txt ("6.2" instead of "6.4")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,627 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 296 | 442 | 2,708 |
JavaScript | 2 | 81 | 126 | 489 |
CSS | 2 | 78 | 6 | 430 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 9 | 9.78% |
▷ Public methods | 92 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
adding-pallets/assets/images/delete.png | 3.49KB | 0.86KB | ▼ 75.41% |
adding-pallets/assets/images/edit.png | 3.09KB | 0.70KB | ▼ 77.43% |